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) {
|
2018-07-08 22:48:38 +00:00
|
|
|
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"),
|
|
|
|
)
|
|
|
|
}
|