Home | History | Annotate | Download | only in sql

Lines Matching refs:Row

205 // row. In such a case, QueryRow returns a placeholder *Row value that
1024 // QueryRow executes a query that is expected to return at most one row.
1026 // Row's Scan method is called.
1027 func (db *DB) QueryRow(query string, args ...interface{}) *Row {
1029 return &Row{rows: rows, err: err}
1298 // QueryRow executes a query that is expected to return at most one row.
1300 // Row's Scan method is called.
1301 func (tx *Tx) QueryRow(query string, args ...interface{}) *Row {
1303 return &Row{rows: rows, err: err}
1546 // be returned by a call to Scan on the returned *Row, which is always non-nil.
1547 // If the query selects no rows, the *Row's Scan will return ErrNoRows.
1548 // Otherwise, the *Row's Scan scans the first selected row and discards
1555 func (s *Stmt) QueryRow(args ...interface{}) *Row {
1558 return &Row{err: err}
1560 return &Row{rows: rows}
1601 // Rows is the result of a query. Its cursor starts before the first row
1626 // Next prepares the next result row for reading with the Scan method. It
1627 // returns true on success, or false if there is no next result row or an error
1669 // Scan copies the columns in the current row into the values pointed
1721 // Row is the result of calling QueryRow to select a single row.
1722 type Row struct {
1728 // Scan copies the columns from the matched row into the values
1729 // pointed at by dest. If more than one row matches the query,
1730 // Scan uses the first row and discards the rest. If no row matches
1732 func (r *Row) Scan(dest ...interface{}) error {
1753 return errors.New("sql: RawBytes isn't allowed on Row.Scan")
1779 // "auto increment" column when inserting a new row. Not all