Skip to content

monolayer / schema / PgIndex

Class: PgIndex<T>

Type Parameters

Type Parameter
T extends string | string & Record<string, never>

Methods

expression()

expression(expression): PgIndex<T>

Parameters

ParameterType
expressionExpression<SqlBool>

Returns

PgIndex<T>


external()

external(): PgIndex<T>

Returns

PgIndex<T>


ifNotExists()

ifNotExists(): PgIndex<T>

Returns

PgIndex<T>


nullsNotDistinct()

nullsNotDistinct(): PgIndex<T>

Returns

PgIndex<T>


unique()

unique(): PgIndex<T>

Returns

PgIndex<T>


using()

using(indexType): PgIndex<T>

Parameters

ParameterType
indexTypestring

Returns

PgIndex<T>


where()

where(lhs, op, rhs)

where(lhs, op, rhs): this

Parameters
ParameterType
lhsExpression<any> | T
opComparisonOperatorExpression
rhsunknown
Returns

this

where(factory)

where(factory): this

Parameters
ParameterType
factory(qb) => Expression<SqlBool>
Returns

this

where(expression)

where(expression): this

Parameters
ParameterType
expressionExpression<SqlBool>
Returns

this