UNPKG

@sqb/builder

Version:

Extensible multi-dialect SQL query builder written with TypeScript

37 lines (36 loc) 2.57 kB
import type { DeleteQuery } from './query/delete-query.js'; import type { InsertQuery } from './query/insert-query.js'; import type { SelectQuery } from './query/select-query.js'; import type { UpdateQuery } from './query/update-query.js'; import { Serializable } from './serializable.js'; import type { CaseStatement } from './sql-objects/case-statement.js'; import { CountStatement } from './sql-objects/count-statement.js'; import type { FieldExpression } from './sql-objects/field-expression.js'; import type { GroupColumn } from './sql-objects/group-column.js'; import type { JoinStatement } from './sql-objects/join-statement.js'; import type { CompOperator } from './sql-objects/operators/comp-operator.js'; import type { LogicalOperator } from './sql-objects/operators/logical-operator.js'; import type { OrderColumn } from './sql-objects/order-column.js'; import type { ParamExpression } from './sql-objects/param-expression.js'; import type { RawStatement } from './sql-objects/raw-statement.js'; import type { ReturningColumn } from './sql-objects/returning-column.js'; import type { TableName } from './sql-objects/table-name.js'; export declare function isSerializable(value: any): value is Serializable; export declare function isQuery(value: any): value is Serializable; export declare function isRawStatement(value: any): value is RawStatement; export declare function isSelectQuery(value: any): value is SelectQuery; export declare function isInsertQuery(value: any): value is InsertQuery; export declare function isIUpdateQuery(value: any): value is UpdateQuery; export declare function isDeleteQuery(value: any): value is DeleteQuery; export declare function isJoinStatement(value: any): value is JoinStatement; export declare function isCaseStatement(value: any): value is CaseStatement; export declare function isCountStatement(value: any): value is CountStatement; export declare function isParamExpression(value: any): value is ParamExpression; export declare function isLogicalOperator(value: any): value is LogicalOperator; export declare function isCompOperator(value: any): value is CompOperator; export declare function isNotOperator(value: any): value is CompOperator; export declare function isSelectColumn(value: any): value is FieldExpression; export declare function isOrderColumn(value: any): value is OrderColumn; export declare function isGroupColumn(value: any): value is GroupColumn; export declare function isReturningColumn(value: any): value is ReturningColumn; export declare function isTableName(value: any): value is TableName;