MCPcopy
hub / github.com/autobrr/qui / TxQuerier

Interface TxQuerier

internal/dbinterface/querier.go:19–25  ·  view source on GitHub ↗

TxQuerier is the interface for database transaction operations. It is implemented by *database.Tx and provides transaction-specific query methods with prepared statement caching, plus transaction control methods.

Source from the content-addressed store, hash-verified

17// It is implemented by *database.Tx and provides transaction-specific query
18// methods with prepared statement caching, plus transaction control methods.
19type TxQuerier interface {
20 ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
21 QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
22 QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
23 Commit() error
24 Rollback() error
25}
26
27// Querier is the centralized interface for database operations.
28// It is implemented by *database.DB and provides all database capabilities

Callers 16

FindCtxMethod · 0.65
CommitCtxMethod · 0.65
DeleteCtxMethod · 0.65
AllCtxMethod · 0.65
deleteExpiredMethod · 0.65
commitImportTxFunction · 0.65
CommitMethod · 0.65
applyAllMigrationsMethod · 0.65
FindCtxMethod · 0.65
CommitCtxMethod · 0.65
DeleteCtxMethod · 0.65
AllCtxMethod · 0.65

Implementers 5

Txinternal/database/db.go
testTxinternal/services/orphanscan/delete_te
testTxinternal/services/crossseed/service_co
mockTxinternal/models/testing_helpers_test.g
capturingTxinternal/models/postgres_bool_args_tes

Calls

no outgoing calls

Tested by

no test coverage detected