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
| Parameter | Type |
|---|---|
configOrQueryCompiler | | QueryCompiler | QueryCreatorConfig |
Returns
QueryCreator<DB>
Methods
withPlugin()
withPlugin(plugin): this;Returns a QueryCreator with the plugin appended to the execution pipeline.
Parameters
| Parameter | Type |
|---|---|
plugin | KysoqlPlugin |
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
| Parameter | Type |
|---|---|
from | TB |
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
| Parameter | Type |
|---|---|
compiledQuery | CompiledQuery<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
| Parameter | Type |
|---|---|
compiledQuery | CompiledQuery<O> |
options? | AbortableQueryOptions |
Returns
Promise<readonly O[]>