Skip to main content

createSqlSchema

@retinue/monorepo


@retinue/monorepo / backend/src / createSqlSchema

Function: createSqlSchema()

createSqlSchema(config): () => Promise<SchemaResult>

Defined in: backend/src/toolkit/data.ts:268

What the model may query.

Without this, sql_query is a tool whose first five calls are guesses at table names. Restricted to the schemas the deployment names -- not current_schema(), because a connection's search path is not a statement about what a model should be shown.

Parameters​

config​

query​

ReadOnlyQuery

schemas​

readonly string[]

Returns​

() => Promise<SchemaResult>