MCPcopy
hub / github.com/drizzle-team/drizzle-orm / query

Function query

drizzle-kit/src/cli/connections.ts:79–88  ·  view source on GitHub ↗
(sql: string, params: any[])

Source from the content-addressed store, hash-verified

77 };
78
79 const query = async (sql: string, params: any[]) => {
80 const prepared = session.prepareQuery(
81 { sql, params: params ?? [] },
82 undefined,
83 undefined,
84 false,
85 );
86 const result = await prepared.all();
87 return result as any[];
88 };
89 const proxy = async (params: ProxyParams) => {
90 const prepared = session.prepareQuery<
91 PreparedQueryConfig & {

Callers

nothing calls this directly

Calls 4

prepareQueryMethod · 0.45
allMethod · 0.45
queryMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected