tspace-mysql
Version:
Tspace MySQL is a promise-based ORM for Node.js, designed with modern TypeScript and providing type safety for schema databases.
25 lines (24 loc) • 808 B
TypeScript
import { Model } from "../Model";
import { Blueprint } from '../Blueprint';
import { T } from "../UtilityTypes";
declare const schema: {
id: Blueprint<number>;
uuid: Blueprint<string | null>;
model: Blueprint<string | null>;
query: Blueprint<string | null>;
action: Blueprint<string | null>;
data: Blueprint<string | Record<string, any> | null>;
changed: Blueprint<string | Record<string, any> | null>;
created_at: Blueprint<string | Date | null>;
updated_at: Blueprint<string | Date | null>;
};
type TS = T.Schema<typeof schema>;
declare class Logger extends Model<TS> {
protected boot(): void;
static tracking(instance: Model, { sql, fn, }: {
sql: string;
fn: () => Promise<any>;
}): Promise<any>;
}
export { Logger };
export default Logger;