MCPcopy
hub / github.com/go-gorp/gorp / AddTableWithName

Method AddTableWithName

db.go:218–220  ·  view source on GitHub ↗

AddTableWithName has the same behavior as AddTable, but sets table.TableName to name.

(i interface{}, name string)

Source from the content-addressed store, hash-verified

216// AddTableWithName has the same behavior as AddTable, but sets
217// table.TableName to name.
218func (m *DbMap) AddTableWithName(i interface{}, name string) *TableMap {
219 return m.AddTableWithNameAndSchema(i, "", name)
220}
221
222// AddTableWithNameAndSchema has the same behavior as AddTable, but sets
223// table.TableName to name.

Calls 1