16 lines
336 B
Go
16 lines
336 B
Go
package sqldb
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestCallChain(t *testing.T) {
|
|
ctx := context.Background()
|
|
mustT(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"),
|
|
)
|
|
}
|