import { default } from "https://dotland.deno.dev/x/justaos_orm@v9.1.2/src/ORM.ts";
JUSTAOS's ORM (Object Document Mapper) is built for Deno and provides transparent persistence for JavaScript objects to Postgres database.
- Supports all primitive data types (string, integer, float, boolean, date, object, array, etc).
- Supports custom data types.
- Supports table with multi-level inheritance.
- Also supports interception on operations (create, read, update and delete).
Constructors
new
default(config: DatabaseConfiguration, logger?: Logger)Methods
addInterceptor(operationInterceptor: DatabaseOperationInterceptor): void
Adds a new operation interceptor to the service.
connect(createDatabaseIfNotExists?: boolean): Promise<ORMConnection>
Establishes a connection to the database.
deleteInterceptor(operationInterceptorName: string): void
Deletes an operation interceptor from the service.