Kysoql
ReferenceAPI referenceClasses

QueryCreator

Generated API reference for QueryCreator in @kysoql/core.

@kysoql/core / QueryCreator

Entry point for creating typed queries from a Salesforce schema.

Extended by

Type Parameters

Type Parameter
DB

Constructors

Constructor

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

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

Parameters

ParameterType
configOrQueryCompiler| QueryCompiler | QueryCreatorConfig

Returns

QueryCreator<DB>

Methods

withPlugin()

withPlugin(plugin): this;

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

Parameters

ParameterType
pluginKysoqlPlugin

Returns

this


withoutPlugins()

withoutPlugins(): this;

Returns a QueryCreator with all plugins removed.

Returns

this


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">


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>

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[]>

On this page