test-easy-psql
Version:
Welcome to the test-easy-psql documentation! test-easy-psql is a simple intermediary for querying data in PostgreSQL databases. Whether you're a beginner or an experienced developer, this documentation will help you get started with test-easy-psql and lev
26 lines (25 loc) • 819 B
TypeScript
export = Model;
declare class Model extends DB {
constructor(table: any, connection?: any, schema?: any);
schema?: string;
table: string;
relations: Record<string, Relation>;
columns: Record<string, Column>;
context: Record<string, any>;
isAggregate: boolean;
getModelColumnsCommaSeperatedString(
alias: any,
select?: any,
extras?: { [key: string]: (x: string) => string }
): string;
_mergeRelationalWhere(where?: any, otherWhere?: any): any;
setContextValue(key: any, value: any): void;
getContextValue(key: any): any;
deleteContextValue(key: any): any;
clearContext(): void;
get columnsStrNoAlias(): string;
}
import Column from "./column";
import DB = require("./db");
import Relation from "./relation";
import Validation = require("./validation");