gobelt/dbc/chain_test.go
2018-07-07 14:11:23 +02:00

16 lines
337 B
Go

package dbc
import (
"context"
"testing"
)
func TestCallChain(t *testing.T) {
ctx := context.Background()
mustExec(t, conn.
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"),
)
}