Oyelowo / oyestack

Foundation for highly scalable distributed web application with `Rustlang` for apps, `Typescript` and Kubernetes for Infra
https://codebreather.com
Apache License 2.0
0 stars 0 forks source link

414 surreal orm book document define table #415

Closed Oyelowo closed 1 year ago

Oyelowo commented 1 year ago

Title: Document define_table statement and support owned const for PermissionType

Description:

This PR includes several changes to improve the usability of surrealdb-orm and its documentation. Here's a brief overview of what has been done:

  1. Documentation for the define_table statement has been added in the table.md file. The document provides a thorough explanation of the statement's usage, syntax, and several examples.

  2. CanOrder trait has been exported at the root level to improve ease of access.

  3. The From<Fors> and From<Raw> implementations for PermissionType have been expanded to support owned const values, leading to more flexible and convenient usage of permissions.

Changes:

Testing:

All the unit tests have been updated to reflect these changes and all are passing. Further testing might be required in the form of integration tests to ensure the new implementations do not affect existing functionality.

Please review and let me know if any changes are required.

Contributors:

@Oyelowo