Kysoql
ReferenceAPI referenceClasses

Kysoql

Generated API reference for Kysoql in @kysoql/core.

@kysoql/core / Kysoql

Configured query creator for building, compiling, and optionally executing typed SOQL.

Extends

Type Parameters

Type Parameter
DB

Constructors

Constructor

new Kysoql<DB>(configOrQueryCompiler?): Kysoql<DB>;

Creates a query entry point from compiler, executor, schema metadata, and plugin configuration.

Parameters

ParameterType
configOrQueryCompiler| QueryCompiler | QueryCreatorConfig

Returns

Kysoql<DB>

Inherited from

QueryCreator.constructor

Methods

withPlugin()

withPlugin(plugin): this;

Returns a QueryCreator with the plugin appended to the execution pipeline.

Parameters

ParameterType
pluginKysoqlPlugin

Returns

this

Inherited from

QueryCreator.withPlugin


withoutPlugins()

withoutPlugins(): this;

Returns a QueryCreator with all plugins removed.

Returns

this

Inherited from

QueryCreator.withoutPlugins


selectFrom()

selectFrom<TB>(from): SelectQueryBuilder<DB, TB, unknown, "plain">;

Starts a typed query for the specified Salesforce object.

Type Parameters

Type Parameter
TB extends string

Parameters

ParameterType
fromTB

Returns

SelectQueryBuilder<DB, TB, unknown, "plain">

Inherited from

QueryCreator.selectFrom


executeQuery()

Executes a supplied operation tree through this creator's compiler, plugins, and executor.

Call Signature

executeQuery(compiledQuery, options?): Promise<number>;

Executes a supplied operation tree through this creator's compiler, plugins, and executor.

Parameters
ParameterType
compiledQueryCompiledQuery<number>
options?AbortableQueryOptions
Returns

Promise<number>

Inherited from

QueryCreator.executeQuery

Call Signature

executeQuery<O>(compiledQuery, options?): Promise<readonly O[]>;

Executes a supplied operation tree through this creator's compiler, plugins, and executor.

Type Parameters
Type Parameter
O
Parameters
ParameterType
compiledQueryCompiledQuery<O>
options?AbortableQueryOptions
Returns

Promise<readonly O[]>

Inherited from

QueryCreator.executeQuery

On this page