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

Method as

drizzle-orm/src/sql/sql.ts:340–347  ·  view source on GitHub ↗
(alias?: string)

Source from the content-addressed store, hash-verified

338 */
339 as<TData>(alias: string): SQL.Aliased<TData>;
340 as(alias?: string): SQL<T> | SQL.Aliased<T> {
341 // TODO: remove with deprecated overloads
342 if (alias === undefined) {
343 return this;
344 }
345
346 return new SQL.Aliased(this, alias);
347 }
348
349 mapWith<
350 TDecoder extends

Callers 15

mysql.test.tsFile · 0.45
mainFunction · 0.45
pg.test.tsFile · 0.45
turso.test.tsFile · 0.45
vercel.test.tsFile · 0.45
testsFunction · 0.45
testsFunction · 0.45
testsFunction · 0.45

Calls

no outgoing calls

Tested by 2

countFunction · 0.36
countFunction · 0.36