Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Tr interface in sqlx/contract.go by missing methods #90

Merged
merged 2 commits into from
Nov 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions sqlx/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@
type Tr interface {
sqlx.ExtContext

sqlx.Preparer
Preparex(query string) (*sqlx.Stmt, error)
PreparexContext(ctx context.Context, query string) (*sqlx.Stmt, error)
PrepareNamedContext(ctx context.Context, query string) (*sqlx.NamedStmt, error)
PrepareNamed(query string) (*sqlx.NamedStmt, error)
PrepareNamedContext(ctx context.Context, query string) (*sqlx.NamedStmt, error)

sqlx.Execer
MustExec(query string, args ...interface{}) sql.Result
MustExecContext(ctx context.Context, query string, args ...interface{}) sql.Result
NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)
NamedExec(query string, arg interface{}) (sql.Result, error)
NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)

Queryx(query string, args ...interface{}) (*sqlx.Rows, error)
QueryRowx(query string, args ...interface{}) *sqlx.Row
sqlx.Queryer
QueryRow(query string, args ...any) *sql.Row

Check failure on line 31 in sqlx/contract.go

View workflow job for this annotation

GitHub Actions / lint

predeclared any requires go1.18 or later (-lang was set to go1.13; check go.mod)) (typecheck)

Check failure on line 31 in sqlx/contract.go

View workflow job for this annotation

GitHub Actions / lint

predeclared any requires go1.18 or later (-lang was set to go1.13; check go.mod) (typecheck)

Check failure on line 31 in sqlx/contract.go

View workflow job for this annotation

GitHub Actions / lint

predeclared any requires go1.18 or later (-lang was set to go1.13; check go.mod)) (typecheck)

Check failure on line 31 in sqlx/contract.go

View workflow job for this annotation

GitHub Actions / tests-integration (1.21, ubuntu-latest, 6.0)

predeclared any requires go1.18 or later (-lang was set to go1.13; check go.mod)

Check failure on line 31 in sqlx/contract.go

View workflow job for this annotation

GitHub Actions / tests-units (1.13, ubuntu-latest)

undefined: any

Check failure on line 31 in sqlx/contract.go

View workflow job for this annotation

GitHub Actions / tests-units (1.14, ubuntu-latest)

undefined: any

Check failure on line 31 in sqlx/contract.go

View workflow job for this annotation

GitHub Actions / tests-units (1.15, ubuntu-latest)

undefined: any

Check failure on line 31 in sqlx/contract.go

View workflow job for this annotation

GitHub Actions / tests-units (1.19, ubuntu-latest)

predeclared any requires go1.18 or later (-lang was set to go1.13; check go.mod)

Check failure on line 31 in sqlx/contract.go

View workflow job for this annotation

GitHub Actions / tests-units (1.20, ubuntu-latest)

predeclared any requires go1.18 or later (-lang was set to go1.13; check go.mod)
maranqz marked this conversation as resolved.
Show resolved Hide resolved
QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
NamedQuery(query string, arg interface{}) (*sqlx.Rows, error)

Expand Down
Loading