mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 20:42:25 -05:00
[chore] update dependencies (#4422)
- github.com/jackc/pgx/v5 v5.7.5 -> v5.7.6 - github.com/ncruces/go-sqlite3 v0.28.0 -> v0.29.0 - github.com/tdewolff/minify/v2 v2.24.2 -> v2.24.3 - golang.org/x/oauth2 v0.30.0 -> v0.31.0 - golang.org/x/sys v0.35.0 -> v0.36.0 - golang.org/x/text v0.28.0 -> v0.29.0 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4422 Co-authored-by: kim <grufwub@gmail.com> Co-committed-by: kim <grufwub@gmail.com>
This commit is contained in:
parent
9b7db51436
commit
a6429b5410
78 changed files with 1439 additions and 1189 deletions
23
vendor/github.com/jackc/pgx/v5/rows.go
generated
vendored
23
vendor/github.com/jackc/pgx/v5/rows.go
generated
vendored
|
|
@ -41,22 +41,19 @@ type Rows interface {
|
|||
// when there was an error executing the query.
|
||||
FieldDescriptions() []pgconn.FieldDescription
|
||||
|
||||
// Next prepares the next row for reading. It returns true if there is another
|
||||
// row and false if no more rows are available or a fatal error has occurred.
|
||||
// It automatically closes rows when all rows are read.
|
||||
// Next prepares the next row for reading. It returns true if there is another row and false if no more rows are
|
||||
// available or a fatal error has occurred. It automatically closes rows upon returning false (whether due to all rows
|
||||
// having been read or due to an error).
|
||||
//
|
||||
// Callers should check rows.Err() after rows.Next() returns false to detect
|
||||
// whether result-set reading ended prematurely due to an error. See
|
||||
// Conn.Query for details.
|
||||
// Callers should check rows.Err() after rows.Next() returns false to detect whether result-set reading ended
|
||||
// prematurely due to an error. See Conn.Query for details.
|
||||
//
|
||||
// For simpler error handling, consider using the higher-level pgx v5
|
||||
// CollectRows() and ForEachRow() helpers instead.
|
||||
// For simpler error handling, consider using the higher-level pgx v5 CollectRows() and ForEachRow() helpers instead.
|
||||
Next() bool
|
||||
|
||||
// Scan reads the values from the current row into dest values positionally.
|
||||
// dest can include pointers to core types, values implementing the Scanner
|
||||
// interface, and nil. nil will skip the value entirely. It is an error to
|
||||
// call Scan without first calling Next() and checking that it returned true.
|
||||
// Scan reads the values from the current row into dest values positionally. dest can include pointers to core types,
|
||||
// values implementing the Scanner interface, and nil. nil will skip the value entirely. It is an error to call Scan
|
||||
// without first calling Next() and checking that it returned true. Rows is automatically closed upon error.
|
||||
Scan(dest ...any) error
|
||||
|
||||
// Values returns the decoded row values. As with Scan(), it is an error to
|
||||
|
|
@ -563,7 +560,7 @@ func (rs *mapRowScanner) ScanRow(rows Rows) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// RowToStructByPos returns a T scanned from row. T must be a struct. T must have the same number a public fields as row
|
||||
// RowToStructByPos returns a T scanned from row. T must be a struct. T must have the same number of public fields as row
|
||||
// has fields. The row and T fields will be matched by position. If the "db" struct tag is "-" then the field will be
|
||||
// ignored.
|
||||
func RowToStructByPos[T any](row CollectableRow) (T, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue