MCPcopy Create free account
hub / github.com/apecloud/myduckserver / CreateTable

Method CreateTable

catalog/database.go:283–287  ·  view source on GitHub ↗

CreateTable implements sql.TableCreator.

(ctx *sql.Context, name string, schema sql.PrimaryKeySchema, collation sql.CollationID, comment string)

Source from the content-addressed store, hash-verified

281 b.WriteString(";")
282 b.WriteString(s)
283 }
284
285 ddl := b.String()
286
287 if logger := ctx.GetLogger(); logger.Logger.GetLevel() >= logrus.DebugLevel {
288 logger.WithField("DuckSQL", ddl).Debug("Executing DDL")
289 }
290

Callers

nothing calls this directly

Calls 1

createAllTableMethod · 0.95

Tested by

no test coverage detected