MCPcopy
hub / github.com/knex/knex / createTable

Function createTable

test/integration/schema/index.js:1348–1354  ·  view source on GitHub ↗
(schema, tableName)

Source from the content-addressed store, hash-verified

1346 }
1347
1348 function createTable(schema, tableName) {
1349 return knex.schema
1350 .withSchema(schema)
1351 .createTable(tableName, (table) => {
1352 table.string(columnName);
1353 });
1354 }
1355
1356 function checkColumn(schema, tableName) {
1357 return knex.schema

Callers 1

index.jsFile · 0.85

Calls 3

createTableMethod · 0.80
stringMethod · 0.80
withSchemaMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…