satellite/satellitedb,multinode/multinodedb: update to latest dbx
Change-Id: I500df6d0541706c3960d4560721c3783d0d049ff
This commit is contained in:
parent
8edb9c5f98
commit
487f64e164
@ -2,7 +2,7 @@
|
||||
set -e pipefail
|
||||
|
||||
dbx schema -d pgx -d sqlite3 multinodedb.dbx .
|
||||
dbx golang -d pgx -d sqlite3 --rx=false -p dbx -t templates multinodedb.dbx .
|
||||
dbx golang -d pgx -d sqlite3 -p dbx -t templates multinodedb.dbx .
|
||||
|
||||
( printf '%s\n' '//lint:file-ignore U1000,ST1012,SA1019 generated file'; cat multinodedb.dbx.go ) > multinodedb.dbx.go.tmp && mv multinodedb.dbx.go.tmp multinodedb.dbx.go
|
||||
gofmt -r "*sql.Tx -> tagsql.Tx" -w multinodedb.dbx.go
|
||||
|
@ -35,7 +35,7 @@ func main() {
|
||||
fmt.Println("schema out", string(schemaOut))
|
||||
log.Fatal(err)
|
||||
}
|
||||
gogenArgs := append([]string{"golang", "--rx=false", "-d=pgx", "-d=pgxcockroach", "-p=dbx", "-t=templates"}, files...)
|
||||
gogenArgs := append([]string{"golang", "-d=pgx", "-d=pgxcockroach", "-p=dbx", "-t=templates"}, files...)
|
||||
gogenOut, err := exec.Command("dbx", gogenArgs...).CombinedOutput()
|
||||
if err != nil {
|
||||
fmt.Println("gogen out", string(gogenOut))
|
||||
|
@ -205,7 +205,6 @@ func (obj *DB) Open(ctx context.Context) (*Tx, error) {
|
||||
txMethods: obj.wrapTx(tx),
|
||||
}, nil
|
||||
}
|
||||
|
||||
func DeleteAll(ctx context.Context, db *DB) (int64, error) {
|
||||
tx, err := db.Open(ctx)
|
||||
if err != nil {
|
||||
|
@ -207,11 +207,6 @@ func (obj *DB) Open(ctx context.Context) (*Tx, error) {
|
||||
txMethods: obj.wrapTx(tx),
|
||||
}, nil
|
||||
}
|
||||
{{ if $options.SupportRx }}
|
||||
func (obj *DB) NewRx() *Rx {
|
||||
return &Rx{db: obj}
|
||||
}
|
||||
{{ end }}
|
||||
func DeleteAll(ctx context.Context, db *DB) (int64, error) {
|
||||
tx, err := db.Open(ctx)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user