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

Function getTableName

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

Source from the content-addressed store, hash-verified

141export type AnyTable<TPartial extends Partial<TableConfig>> = Table<UpdateTableConfig<TableConfig, TPartial>>;
142
143export function getTableName<T extends Table>(table: T): T['_']['name'] {
144 return table[TableName];
145}
146
147export function getTableUniqueName<T extends Table>(table: T): `${T['_']['schema']}.${T['_']['name']}` {
148 return `${table[Schema] ?? 'public'}.${table[TableName]}`;

Callers 15

onMutateMethod · 0.90
onMutateMethod · 0.90
onMutateMethod · 0.90
onMutateMethod · 0.90
onMutateMethod · 0.90
getPostgresInfoFunction · 0.90
getDbToTsColumnNamesMapFunction · 0.90
resetMySqlFunction · 0.90
getMySqlInfoFunction · 0.90
resetSqliteFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected