MCPcopy
hub / github.com/dosco/graphjin / DDLDialect

Interface DDLDialect

core/schema_ddl.go:11–25  ·  view source on GitHub ↗

DDLDialect defines how to generate DDL for a specific database

Source from the content-addressed store, hash-verified

9
10// DDLDialect defines how to generate DDL for a specific database
11type DDLDialect interface {
12 Name() string
13 QuoteIdentifier(s string) string
14 MapType(graphqlType string, notNull bool, primaryKey bool) string
15 MapDefault(defaultVal string) string
16 CreateTable(table sdata.DBTable) string
17 AddColumn(tableName string, col sdata.DBColumn) string
18 DropColumn(tableName, colName string) string
19 DropTable(tableName string) string
20 AddForeignKey(tableName string, col sdata.DBColumn) string
21 CreateSearchIndex(tableName string, col sdata.DBColumn) string
22 CreateUniqueIndex(tableName string, col sdata.DBColumn) string
23 CreateIndex(tableName string, col sdata.DBColumn) string
24 AlterClusteringKey(tableName string, keys []string) string
25}
26
27// SupportsSchemaDDL reports whether GraphJin supports live schema DDL sync for dbType.
28func SupportsSchemaDDL(dbType string) bool {

Callers 20

NameMethod · 0.65
NameMethod · 0.65
ListMethod · 0.65
TestQuoteIdentifierFunction · 0.65
sourceSeedFilesFunction · 0.65
verifyDemoWorkflowsFunction · 0.65
runDemoSQLFilesFunction · 0.65
TestQuoteIdentifierFunction · 0.65
MapTypeMethod · 0.65
computeDiffFunction · 0.65
addCodeSQLVirtualColumnsFunction · 0.65

Implementers 9

postgresDialectcore/schema_ddl.go
mysqlDialectcore/schema_ddl.go
snowflakeDDLDialectcore/schema_ddl.go
bigqueryDDLDialectcore/schema_ddl.go
redshiftDDLDialectcore/schema_ddl.go
cassandraDDLDialectcore/schema_ddl.go
sqliteDialectcore/schema_ddl.go
mssqlDialectcore/schema_ddl.go
oracleDialectcore/schema_ddl.go

Calls

no outgoing calls

Tested by

no test coverage detected