MCPcopy
hub / github.com/jmoiron/sqlx / TestMultiInsert

Function TestMultiInsert

sqlx_test.go:900–909  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

898}
899
900func TestMultiInsert(t *testing.T) {
901 RunWithSchema(defaultSchema, t, func(db *DB, t *testing.T, now string) {
902 loadDefaultFixture(db, t)
903 q := db.Rebind(`INSERT INTO employees (name, id) VALUES (?, ?), (?, ?);`)
904 db.MustExec(q,
905 "Name1", 400,
906 "name2", 500,
907 )
908 })
909}
910
911// FIXME: this function is kinda big but it slows things down to be constantly
912// loading and reloading the schema..

Callers

nothing calls this directly

Calls 4

RunWithSchemaFunction · 0.85
loadDefaultFixtureFunction · 0.85
RebindMethod · 0.65
MustExecMethod · 0.45

Tested by

no test coverage detected