mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 15:37:33 +00:00
linting
This commit is contained in:
@@ -33,7 +33,7 @@ func (c *pgxConn) Begin(ctx context.Context, opts *database.TransactionOptions)
|
|||||||
// Query implements sql.Client.
|
// Query implements sql.Client.
|
||||||
// Subtle: this method shadows the method (*Conn).Query of pgxConn.Conn.
|
// Subtle: this method shadows the method (*Conn).Query of pgxConn.Conn.
|
||||||
func (c *pgxConn) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
func (c *pgxConn) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
||||||
//nolint:sqlclosecheck // Rows.Close is called by the caller
|
|
||||||
rows, err := c.Conn.Query(ctx, sql, args...)
|
rows, err := c.Conn.Query(ctx, sql, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, wrapError(err)
|
return nil, wrapError(err)
|
||||||
|
@@ -33,7 +33,6 @@ func (c *pgxPool) Acquire(ctx context.Context) (database.Client, error) {
|
|||||||
// Query implements [database.Pool].
|
// Query implements [database.Pool].
|
||||||
// Subtle: this method shadows the method (Pool).Query of pgxPool.Pool.
|
// Subtle: this method shadows the method (Pool).Query of pgxPool.Pool.
|
||||||
func (c *pgxPool) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
func (c *pgxPool) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
||||||
//nolint:sqlclosecheck // Rows.Close is called by the caller
|
|
||||||
rows, err := c.Pool.Query(ctx, sql, args...)
|
rows, err := c.Pool.Query(ctx, sql, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, wrapError(err)
|
return nil, wrapError(err)
|
||||||
|
@@ -40,7 +40,6 @@ func (tx *pgxTx) End(ctx context.Context, err error) error {
|
|||||||
// Query implements [database.Transaction].
|
// Query implements [database.Transaction].
|
||||||
// Subtle: this method shadows the method (Tx).Query of pgxTx.Tx.
|
// Subtle: this method shadows the method (Tx).Query of pgxTx.Tx.
|
||||||
func (tx *pgxTx) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
func (tx *pgxTx) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
||||||
//nolint:sqlclosecheck // Rows.Close is called by the caller
|
|
||||||
rows, err := tx.Tx.Query(ctx, sql, args...)
|
rows, err := tx.Tx.Query(ctx, sql, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, wrapError(err)
|
return nil, wrapError(err)
|
||||||
|
@@ -30,7 +30,7 @@ func (c *sqlConn) Begin(ctx context.Context, opts *database.TransactionOptions)
|
|||||||
// Query implements sql.Client.
|
// Query implements sql.Client.
|
||||||
// Subtle: this method shadows the method (*Conn).Query of pgxConn.Conn.
|
// Subtle: this method shadows the method (*Conn).Query of pgxConn.Conn.
|
||||||
func (c *sqlConn) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
func (c *sqlConn) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
||||||
//nolint:sqlclosecheck // Rows.Close is called by the caller
|
//nolint:rowserrcheck // Rows.Close is called by the caller
|
||||||
rows, err := c.QueryContext(ctx, sql, args...)
|
rows, err := c.QueryContext(ctx, sql, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, wrapError(err)
|
return nil, wrapError(err)
|
||||||
|
@@ -31,7 +31,7 @@ func (c *sqlPool) Acquire(ctx context.Context) (database.Client, error) {
|
|||||||
// Query implements [database.Pool].
|
// Query implements [database.Pool].
|
||||||
// Subtle: this method shadows the method (Pool).Query of pgxPool.Pool.
|
// Subtle: this method shadows the method (Pool).Query of pgxPool.Pool.
|
||||||
func (c *sqlPool) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
func (c *sqlPool) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
||||||
//nolint:sqlclosecheck // Rows.Close is called by the caller
|
//nolint:rowserrcheck // Rows.Close is called by the caller
|
||||||
rows, err := c.QueryContext(ctx, sql, args...)
|
rows, err := c.QueryContext(ctx, sql, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, wrapError(err)
|
return nil, wrapError(err)
|
||||||
|
@@ -43,7 +43,7 @@ func (tx *sqlTx) End(ctx context.Context, err error) error {
|
|||||||
// Query implements [database.Transaction].
|
// Query implements [database.Transaction].
|
||||||
// Subtle: this method shadows the method (Tx).Query of pgxTx.Tx.
|
// Subtle: this method shadows the method (Tx).Query of pgxTx.Tx.
|
||||||
func (tx *sqlTx) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
func (tx *sqlTx) Query(ctx context.Context, sql string, args ...any) (database.Rows, error) {
|
||||||
//nolint:sqlclosecheck // Rows.Close is called by the caller
|
//nolint:rowserrcheck // Rows.Close is called by the caller
|
||||||
rows, err := tx.QueryContext(ctx, sql, args...)
|
rows, err := tx.QueryContext(ctx, sql, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, wrapError(err)
|
return nil, wrapError(err)
|
||||||
|
Reference in New Issue
Block a user