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.

15 lines (14 loc) 644 B
import { ConditionOptions } from '../conditionals/types'; export declare type SelectColumns = String | Array<string | SelectObject> | SelectObject; export interface SelectObject { [index: number]: never; /** * Key is the alias. If value type is String will escape the names with \`\`. Name escaping will be ignored if passing an object with expression key containing the query expression. */ [key: string]: string | Record<string, any> | undefined; } interface ColumnAliasObject { [key: string]: string | ConditionOptions; } export declare const isColumnAliasObject: (val: any) => val is ColumnAliasObject; export {};