UNPKG

mysql-all-in-one

Version:

A package that allows you to have a complete interaction with a MYSQL database, allowing to connect to the database, retrieve data and create queries.

25 lines (24 loc) 917 B
export declare type SqlValues = string | Date | null | boolean | number | undefined; export interface PreparedStatement { statement: string; values: Array<SqlValues>; __is_prep_statement: boolean; } export declare const isSqlValues: (val: any) => val is SqlValues; export declare const isArrayOfStrings: (val: any) => val is string[]; export declare const emptyPrepStatement: PreparedStatement; export declare const isPreparedStatement: (val: any) => val is PreparedStatement; export declare class SqlColumn { column: string; constructor(column: string); } export declare class SqlExp { expression: string; constructor(expression: string); } export interface SqlExpressionPreparedStatement { statement: string; values: Array<SqlValues>; __is_prep_statement: boolean; } export declare const isSqlExpressionPreparedStatement: (val: any) => val is SqlExpressionPreparedStatement;