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

Function getTableUniqueName

drizzle-orm/src/table.ts:147–149  ·  view source on GitHub ↗
(table: T)

Source from the content-addressed store, hash-verified

145}
146
147export function getTableUniqueName<T extends Table>(table: T): `${T['_']['schema']}.${T['_']['name']}` {
148 return `${table[Schema] ?? 'public'}.${table[TableName]}`;
149}
150
151export type MapColumnName<TName extends string, TColumn extends Column, TDBColumNames extends boolean> =
152 TDBColumNames extends true ? TColumn['_']['name']

Calls

no outgoing calls

Tested by

no test coverage detected