@adonisjs/lucid
- Version 21.6.0
- Published
- 883 kB
- 14 dependencies
- MIT license
Install
npm i @adonisjs/lucid
yarn add @adonisjs/lucid
pnpm add @adonisjs/lucid
Overview
SQL ORM built on top of Active Record pattern
Index
Variables
Functions
Namespaces
Variables
variable stubsRoot
const stubsRoot: string;
Functions
function configure
configure: (command: Configure) => Promise<void>;
Configures the package
function defineConfig
defineConfig: (config: DatabaseConfig) => DatabaseConfig;
Namespaces
namespace errors
module 'build/src/errors.d.ts' {}
The "E_ROW_NOT_FOUND" exception is raised when no row is found in a database single query
The "error.model" can be used to know the model which raised the error. This will only be present when using Lucid models not Database queries
variable E_INCOMPLETE_REPLICAS_CONFIG
const E_INCOMPLETE_REPLICAS_CONFIG: new ( args?: any, options?: ErrorOptions) => Exception;
variable E_INVALID_DATE_COLUMN_VALUE
const E_INVALID_DATE_COLUMN_VALUE: new ( args: [string, string | null], options?: ErrorOptions) => Exception;
variable E_INVALID_REPLICAS_CONFIG
const E_INVALID_REPLICAS_CONFIG: new ( args?: any, options?: ErrorOptions) => Exception;
variable E_MISSING_MODEL_ATTRIBUTE
const E_MISSING_MODEL_ATTRIBUTE: new ( args: [string, string, string], options?: ErrorOptions) => Exception;
variable E_MISSING_SCHEMA_FILES
const E_MISSING_SCHEMA_FILES: new (args?: any, options?: ErrorOptions) => Exception;
variable E_MODEL_DELETED
const E_MODEL_DELETED: new (args?: any, options?: ErrorOptions) => Exception;
variable E_ROW_NOT_FOUND
const E_ROW_NOT_FOUND: { new (model?: LucidModel): { model?: LucidModel; name: string; help?: string; code?: string; status: number; toString(): string; message: string; stack?: string; cause?: unknown; readonly [Symbol.toStringTag]: string; }; readonly status: number; readonly code: string; readonly message: string; help?: string; captureStackTrace(targetObject: object, constructorOpt?: Function): void; prepareStackTrace?: (err: Error, stackTraces: NodeJS.CallSite[]) => any; stackTraceLimit: number;};
The "E_ROW_NOT_FOUND" exception is raised when no row is found in a database single query
The "error.model" can be used to know the model which raised the error. This will only be present when using Lucid models not Database queries
variable E_RUNTIME_EXCEPTION
const E_RUNTIME_EXCEPTION: new (args?: any, options?: ErrorOptions) => Exception;
variable E_UNABLE_ACQUIRE_LOCK
const E_UNABLE_ACQUIRE_LOCK: new (args?: any, options?: ErrorOptions) => Exception;
variable E_UNABLE_RELEASE_LOCK
const E_UNABLE_RELEASE_LOCK: new (args?: any, options?: ErrorOptions) => Exception;
variable E_UNDEFINED_RELATIONSHIP
const E_UNDEFINED_RELATIONSHIP: new ( args?: any, options?: ErrorOptions) => Exception;
variable E_UNMANAGED_DB_CONNECTION
const E_UNMANAGED_DB_CONNECTION: new ( args: [string], options?: ErrorOptions) => Exception;
variable E_UNSUPPORTED_CLIENT
const E_UNSUPPORTED_CLIENT: new ( args: [string], options?: ErrorOptions) => Exception;
The client is not supported by Lucid
Package Files (5)
Dependencies (14)
Dev Dependencies (36)
- @adonisjs/assembler
- @adonisjs/core
- @adonisjs/eslint-config
- @adonisjs/prettier-config
- @adonisjs/tsconfig
- @japa/assert
- @japa/file-system
- @japa/runner
- @libsql/sqlite3
- @release-it/conventional-changelog
- @swc/core
- @types/chance
- @types/luxon
- @types/node
- @types/pretty-hrtime
- @types/qs
- @vinejs/vine
- better-sqlite3
- c8
- chance
- copyfiles
- cross-env
- del-cli
- dotenv
- eslint
- fs-extra
- luxon
- mysql2
- pg
- prettier
- reflect-metadata
- release-it
- sqlite3
- tedious
- ts-node
- typescript
Peer Dependencies (4)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@adonisjs/lucid
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@adonisjs/lucid)
- HTML<a href="https://www.jsdocs.io/package/@adonisjs/lucid"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 5553 ms. - Missing or incorrect documentation? Open an issue for this package.