RawQueryFragment <Alias>
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Parameters
sql: string
params: unknown[] = []
Returns RawQueryFragment<Alias>
Properties
readonlyparams
readonlysql
Accessors
[toStringTag]
Returns string
key
Returns a unique symbol key for this fragment, creating and caching it on first access.
Returns RawQueryFragmentSymbol
Methods
[toPrimitive]
Parameters
hint: string
Returns RawQueryFragmentSymbol
as
Creates a new fragment with an alias appended via
as ??.Parameters
alias: A
Returns RawQueryFragment<A>
clone
Returns this
toJSON
Returns string
staticgetKnownFragment
Retrieves the RawQueryFragment associated with the given key (instance or symbol).
Parameters
key: unknown
Returns undefined | RawQueryFragment<string>
statichasObjectFragments
Checks whether an object has any symbol keys that are known raw query fragments.
Parameters
object: unknown
Returns boolean
staticisKnownFragment
Checks whether the given value is a RawQueryFragment instance or a known fragment symbol.
Parameters
key: unknown
Returns key is symbol | RawQueryFragment<string>
staticisKnownFragmentSymbol
Checks whether the given value is a symbol that maps to a known raw query fragment.
Parameters
key: unknown
Returns key is RawQueryFragmentSymbol
Represents a raw SQL fragment with optional parameters, usable as both a value and an object key via Symbol coercion.