diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-05-13 01:11:30 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-05-13 01:13:17 +0200 |
| commit | a561ebb42148c72638f943e44191da07c16df7f6 (patch) | |
| tree | fb2ecc409fa3c0d39ac8408da95820db8ebebed0 /select.go | |
| parent | 2fe6a5a42ccb663211f4f4804b78fff3bd9ebdc0 (diff) | |
| download | go-oblast-a561ebb42148c72638f943e44191da07c16df7f6.tar.gz | |
return a concrete type from Wrap() to enable non-Oblast DB operations
Diffstat (limited to 'select.go')
| -rw-r--r-- | select.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -105,7 +105,7 @@ func (s Store[R]) SelectWhere(ctx context.Context, db Handle, partialQuery strin } func startSelectQuery(ctx context.Context, db Handle, plan plan, query string, args ...any) (handle.Rows, [][]int, error) { - rows, err := db.Query(ctx, query, args) + rows, err := db.OblastQuery(ctx, query, args) if err != nil { return nil, nil, fmt.Errorf("during Query(): %w", err) } @@ -136,7 +136,7 @@ func startSelectWhereQuery(ctx context.Context, db Handle, plan plan, partialQue return nil, nil, errors.New("cannot execute SelectWhere() because query could not be autogenerated") } query := plan.Select.Query + partialQuery - rows, err = db.Query(ctx, query, args) + rows, err = db.OblastQuery(ctx, query, args) if err != nil { err = fmt.Errorf("during Query(): %w", err) } @@ -240,7 +240,7 @@ func selectOne(ctx context.Context, db Handle, plan plan, v reflect.Value, query for idx, index := range plan.Select.ScanIndexes { slots[idx] = v.FieldByIndex(index).Addr().Interface() } - stmt, err := db.Prepare(ctx, query, false) + stmt, err := db.OblastPrepare(ctx, query, false) if err != nil { return err } |
