Powerful & expressive ORM/query-builder/static checker for raw queries/Fully Automated migration tooling , designed to offer an intuitive API, strict type-checking, novel features, & full specification support. It provides a fresh perspective in data management. Currently supports SurrealDB engine. RDMSs(PG, MYSQL etc) and others coming soon
Core Functionality: This update implements a DEFINE MODEL statement which allows defining ML models in the database, offering an intuitive way to specify model names, versions, and flexible permission settings for CRUD operations, catering to various security requirements.
Technical Enhancements:
New Type: LiteralLike: simplifies the representation of string literals and parameters.
User-Friendly Syntax: Craft DEFINE MODEL and REMOVE MODEL statements with minimal hassle.
Customizable Permissions: From no access to full control, set permissions as needed.
Make generation migration statements' ordering deterministic and add automated tests for those.
Example Usage:
let statement = define_model(model_name)
.version("1.2.3")
.permissions(for_permission(Select).where_(age.greater_than_or_equal(18))) // Single works
.permissions(for_permission([Create, Update]).where_(name.is("Oyelowo"))) //Multiple
// even supports more complex permission nested in an array
.permissions([
for_permission([Create, Delete]).where_(name.is("admin su")),
for_permission(Update).where_(age.less_than_or_equal(130)),
]);
Core Functionality: This update implements a
DEFINE MODEL
statement which allows defining ML models in the database, offering an intuitive way to specify model names, versions, and flexible permission settings for CRUD operations, catering to various security requirements.Technical Enhancements:
LiteralLike
: simplifies the representation of string literals and parameters.DEFINE MODEL
andREMOVE MODEL
statements with minimal hassle.Example Usage: