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

Function prepareRenameTableJson

drizzle-kit/src/jsonStatements.ts:1014–1025  ·  view source on GitHub ↗
(
	tableFrom: Table,
	tableTo: Table,
)

Source from the content-addressed store, hash-verified

1012};
1013
1014export const prepareRenameTableJson = (
1015 tableFrom: Table,
1016 tableTo: Table,
1017): JsonRenameTableStatement => {
1018 return {
1019 type: 'rename_table',
1020 fromSchema: tableTo.schema,
1021 toSchema: tableTo.schema,
1022 tableNameFrom: tableFrom.name,
1023 tableNameTo: tableTo.name,
1024 };
1025};
1026
1027export const prepareCreateEnumJson = (
1028 name: string,

Callers 5

applyPgSnapshotsDiffFunction · 0.90
applyMysqlSnapshotsDiffFunction · 0.90
applySqliteSnapshotsDiffFunction · 0.90
applyLibSQLSnapshotsDiffFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected