MCPcopy
hub / github.com/gocraft/dbr / Values

Method Values

insert.go:178–181  ·  view source on GitHub ↗

Values adds a tuple to be inserted. The order of the tuple should match Columns.

(value ...interface{})

Source from the content-addressed store, hash-verified

176// Values adds a tuple to be inserted.
177// The order of the tuple should match Columns.
178func (b *InsertStmt) Values(value ...interface{}) *InsertStmt {
179 b.Value = append(b.Value, value)
180 return b
181}
182
183// Record adds a tuple for columns from a struct.
184//

Callers 13

RecordMethod · 0.95
PairMethod · 0.95
TestTransactionCommitFunction · 0.80
TestTransactionRollbackFunction · 0.80
TestTimeoutFunction · 0.80
TestInsertStmtFunction · 0.80
BenchmarkInsertValuesSQLFunction · 0.80
BenchmarkLoadValuesFunction · 0.80
TestMapsFunction · 0.80
TestSelectRowsFunction · 0.80
TestInterfaceLoaderFunction · 0.80

Calls

no outgoing calls

Tested by 11

TestTransactionCommitFunction · 0.64
TestTransactionRollbackFunction · 0.64
TestTimeoutFunction · 0.64
TestInsertStmtFunction · 0.64
BenchmarkInsertValuesSQLFunction · 0.64
BenchmarkLoadValuesFunction · 0.64
TestMapsFunction · 0.64
TestSelectRowsFunction · 0.64
TestInterfaceLoaderFunction · 0.64
TestSelectWithCaseFunction · 0.64