sedk-mysql
Version:
Simple SQL builder and validator for MySQL
29 lines (28 loc) • 910 B
TypeScript
import { ExpressionType, IStatementGiver, PrimitiveType } from './models';
export declare class BinderStore {
private readonly offset;
private store;
constructor(offset: number);
add(binder: Binder): void;
getBinder(value: PrimitiveType): Binder;
getValues(): PrimitiveType[];
}
export declare class Binder implements IStatementGiver {
readonly value: PrimitiveType;
private mNo?;
readonly type: ExpressionType;
constructor(value: PrimitiveType);
constructor(value: PrimitiveType, no: number);
set no(no: number | undefined);
get no(): number | undefined;
toString(): string;
getStmt(): string;
private static getType;
}
export declare class BinderArray implements IStatementGiver {
readonly binders: Binder[];
type: ExpressionType;
constructor(binders: Binder[]);
getStmt(): string;
private static throwIfBindersIsInvalid;
}