示例#1
0
func ExampleExec() {
	ID := 25
	if err := rebecca.Exec("UPDATE counters SET value = value + 1 WHERE id = $1", ID); err != nil {
		panic(err)
	}
}
示例#2
0
func execQuery(t *testing.T, query string) {
	if err := rebecca.Exec(query); err != nil {
		t.Fatal(err)
	}
}