db-sql-toolkit
Version:
Helps with SQL statements, database migration, and bulk execution.
13 lines (12 loc) • 462 B
TypeScript
import type { DefaultParamType } from "./sql";
interface Database<TParam = DefaultParamType> {
MaxVariableNumber: number;
executeSqlCommand: (statement: string, parameters: TParam[]) => Promise<void>;
getRows: <TData>(statement: string, parameters: TParam[]) => Promise<TData[]>;
}
declare const countPropertyName = "COUNT(*)";
interface CountRow {
[countPropertyName]: number;
}
export type { CountRow, Database };
export { countPropertyName };