1
0
Fork 0
gobelt/dbc/chain_test.go

17 lines
353 B
Go
Raw Normal View History

2018-07-07 12:11:23 +00:00
package dbc
2018-06-24 22:22:27 +00:00
import (
"context"
"testing"
)
func TestCallChain(t *testing.T) {
requireConn(t)
2018-06-24 22:22:27 +00:00
ctx := context.Background()
2018-07-07 12:11:23 +00:00
mustExec(t, conn.
2018-06-24 22:22:27 +00:00
Exec(ctx, "INSERT INTO sqldb_test (id, name) VALUES (3, 'Fred')").Then().
Exec(ctx, "UPDATE sqldb_test SET name = 'Wilson' WHERE id = 3").Then().
Exec(ctx, "DELETE FROM sqldb_test WHERE id = 3"),
)
}