MCPcopy Create free account
hub / github.com/go-pg/pg / CreateTable

Method CreateTable

orm/query.go:1249–1252  ·  view source on GitHub ↗
(opt *CreateTableOptions)

Source from the content-addressed store, hash-verified

1247}
1248
1249func (q *Query) CreateTable(opt *CreateTableOptions) error {
1250 _, err := q.db.ExecContext(q.ctx, NewCreateTableQuery(q, opt))
1251 return err
1252}
1253
1254func (q *Query) DropTable(opt *DropTableOptions) error {
1255 _, err := q.db.ExecContext(q.ctx, NewDropTableQuery(q, opt))

Callers 15

createManyToManyTablesFunction · 0.80
ExampleDB_jsonUseNumberFunction · 0.80
TestBigColumnFunction · 0.80
db_test.goFile · 0.80
createTestSchemaFunction · 0.80
initFunction · 0.80

Calls 2

NewCreateTableQueryFunction · 0.85
ExecContextMethod · 0.65

Tested by 13

createManyToManyTablesFunction · 0.64
ExampleDB_jsonUseNumberFunction · 0.64
TestBigColumnFunction · 0.64
createTestSchemaFunction · 0.64
initFunction · 0.64