UNPKG

stackpress

Version:

Incept is a content management framework.

36 lines (35 loc) 1.21 kB
import type Engine from '@stackpress/inquire/Engine'; import type Model from '../schema/spec/Model.js'; import type Column from '../schema/spec/Column.js'; export type { Field, Relation, ForeignKey, AlterFields, AlterKeys, AlterUnqiues, AlterPrimaries, AlterForeignKeys, StrictValue, StrictOptValue, FlatValue, Value, Resolve, Reject, Order, Join, Dialect, QueryObject, Transaction, Connection } from '@stackpress/inquire/types'; export type SearchParams = { q?: string; columns?: string[]; include?: string[]; filter?: Record<string, string | number | boolean>; span?: Record<string, (string | number | null | undefined)[]>; sort?: Record<string, any>; skip?: number; take?: number; total?: boolean; }; export type SearchJoin = { table: string; from: string; to: string; alias: string; }; export type SearchJoinMap = Record<string, SearchJoin>; export type SearchPath = { model: Model; column: Column; }; export type DatabaseConfig = { seed: string; migrations?: string; schema?: { onDelete?: 'CASCADE' | 'SET NULL' | 'RESTRICT'; onUpdate?: 'CASCADE' | 'SET NULL' | 'RESTRICT'; }; }; export type DatabasePlugin = Engine;