mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-06-18 09:20:14 +00:00
📝 Add docstrings to feat/pgsql-driver
Docstrings generation was requested by @scottmckendry. * https://github.com/tinyauthapp/tinyauth/pull/892#issuecomment-4524261246 The following files were modified: * `internal/repository/postgres/db.go` * `internal/repository/postgres/store.go`
This commit is contained in:
committed by
GitHub
parent
40540ce133
commit
f5b9d83360
@@ -16,6 +16,8 @@ type DBTX interface {
|
||||
QueryRowContext(context.Context, string, ...interface{}) *sql.Row
|
||||
}
|
||||
|
||||
// New returns a *Queries configured to use the provided DBTX for executing database operations.
|
||||
// The returned *Queries will use db as its database handle for all query method calls.
|
||||
func New(db DBTX) *Queries {
|
||||
return &Queries{db: db}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user