BeechCMS / @beechcms/core / SchemaQueryExecutor
Interface: SchemaQueryExecutor
The one capability the introspection primitive needs from a database connection.
Implementations MUST: execute the statement as-is, return one object per row with column names as keys, and reject/throw on failure. They MUST NOT cache, batch, rewrite or retry — a stale answer here becomes a wrong fingerprint, which becomes a false "your types are stale" error in someone else's production client.
Methods
all()
all<
T>(sql):Promise<T[]>
Type Parameters
T
T extends Record<string, unknown>
Parameters
sql
string
Returns
Promise<T[]>