Skip to content

Latest commit

 

History

History
98 lines (57 loc) · 2.5 KB

File metadata and controls

98 lines (57 loc) · 2.5 KB

@onzag/itemize / Modules / database/base

Module: database/base

Contains the base query builder and a conditional one

Table of contents

Classes

Interfaces

Type Aliases

Type Aliases

BasicBindingType

Ƭ BasicBindingType: string | number | boolean | BasicBindingType[]

Represents a binding type, that binds to $1, $2, $3 etc... in the query itself supports string, number, boolean or an array of those

Defined in

database/base.ts:17


ConditionalBuilderFn

Ƭ ConditionalBuilderFn<T>: (builder: T) => void

Type parameters

Name
T

Type declaration

▸ (builder): void

The conditional builder function that is used to build conditions that are nested

Parameters
Name Type
builder T
Returns

void

Defined in

database/base.ts:218


ExtendedBindingType

Ƭ ExtendedBindingType: BasicBindingType | QueryBuilder

An extended way to represent bindings as a tree, represents the basic bindings plus the query builder itself that can act as a compounded binding element [binding, binding, binding, [binding, binding, binding]...]

Defined in

database/base.ts:24


ValueType

Ƭ ValueType: string | number | boolean | [string, (string | number)[]]

Represents a value that can be used to insert or update by, whatever needs to be assigned a value, we support string, number, booleans and raw values represented by an array and its bindings

Defined in

database/base.ts:11