@vulcan-sql/core
Version:
Core package of VulcanSQL
24 lines (23 loc) • 785 B
TypeScript
import { RequestParameter } from '../../models/index';
declare type PrepareParameterFuncWithoutProfile = {
(param: Omit<RequestParameter, 'profileName'>): Promise<string>;
};
export interface IParameterizer {
generateIdentifier(value: any): Promise<string>;
reset(): void;
getBinding(): Map<string, any>;
clone(): IParameterizer;
}
export declare class Parameterizer implements IParameterizer {
private startedIndex;
private parameterIndex;
private idToValueMapping;
private valueToIdMapping;
private prepare;
constructor(prepare: PrepareParameterFuncWithoutProfile, startedIndex?: number);
generateIdentifier(value: any): Promise<string>;
getBinding(): Map<string, any>;
clone(): IParameterizer;
reset(): void;
}
export {};