MCPcopy Create free account
hub / github.com/corestoreio/pkg / WithCreateTable

Function WithCreateTable

sql/ddl/tables.go:193–245  ·  view source on GitHub ↗

WithCreateTable upserts tables to the current `Tables` object. Either it adds a new table/view or overwrites existing entries. Argument `identifierCreateSyntax` must be balanced slice where index i is the table/view name and i+1 can be either empty or contain the SQL CREATE statement. In case a SQL

(ctx context.Context, identifierCreateSyntax ...string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestWithTableDBFunction · 0.85
WithCreateTableFromFileFunction · 0.85

Calls 8

updateMethod · 0.95
NewTableFunction · 0.85
isCreateStmtFunction · 0.85
LoadColumnsFunction · 0.85
LockMethod · 0.80
ErrorfMethod · 0.65
ExecContextMethod · 0.65
ContainsMethod · 0.45

Tested by 1

TestWithTableDBFunction · 0.68