Home / Type/ JsonRecreateTableStatement Type — drizzle-orm Architecture

JsonRecreateTableStatement Type — drizzle-orm Architecture

Architecture documentation for the JsonRecreateTableStatement type/interface in jsonStatements.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  41c049cb_dc6c_3fb1_cc0e_cef649a10052["JsonRecreateTableStatement"]
  6139f734_8ada_c641_9fec_9a55cfdf376f["jsonStatements.ts"]
  41c049cb_dc6c_3fb1_cc0e_cef649a10052 -->|defined in| 6139f734_8ada_c641_9fec_9a55cfdf376f
  style 41c049cb_dc6c_3fb1_cc0e_cef649a10052 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/jsonStatements.ts lines 59–75

export interface JsonRecreateTableStatement {
	type: 'recreate_table';
	tableName: string;
	columns: Column[];
	referenceData: {
		name: string;
		tableFrom: string;
		columnsFrom: string[];
		tableTo: string;
		columnsTo: string[];
		onUpdate?: string | undefined;
		onDelete?: string | undefined;
	}[];
	compositePKs: string[][];
	uniqueConstraints?: string[];
	checkConstraints: string[];
}

Frequently Asked Questions

What is the JsonRecreateTableStatement type?
JsonRecreateTableStatement is a type/interface in the drizzle-orm codebase, defined in drizzle-kit/src/jsonStatements.ts.
Where is JsonRecreateTableStatement defined?
JsonRecreateTableStatement is defined in drizzle-kit/src/jsonStatements.ts at line 59.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free