Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for QueryRow (0.3 sec)

  1. doc/next/6-stdlib/99-minor/database/sql/64707.md

    Errors returned by [driver.Valuer] implementations are now wrapped for
    improved error handling during operations like [DB.Query], [DB.Exec],
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 20:57:18 UTC 2024
    - 160 bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    	}
    
    	err = db.QueryRow("SELECT|people|age,name|age=?", 2).Scan(&age, &name)
    	if err != nil {
    		t.Fatalf("age QueryRow+Scan: %v", err)
    	}
    	if name != "Bob" {
    		t.Errorf("expected name Bob, got %q", name)
    	}
    	if age != 2 {
    		t.Errorf("expected age 2, got %d", age)
    	}
    
    	err = db.QueryRow("SELECT|people|age,name|name=?", "Alice").Scan(&age, &name)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  3. src/database/sql/sql.go

    }
    
    // QueryRow executes a query that is expected to return at most one row.
    // QueryRow always returns a non-nil value. Errors are deferred until
    // [Row]'s Scan method is called.
    // If the query selects no rows, the [*Row.Scan] will return [ErrNoRows].
    // Otherwise, [*Row.Scan] scans the first selected row and discards
    // the rest.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  4. src/database/sql/driver/types.go

    // Errors returned by the [Value] method are wrapped by the database/sql package.
    // This allows callers to use [errors.Is] for precise error handling after operations
    // like [database/sql.Query], [database/sql.Exec], or [database/sql.QueryRow].
    //
    // Types implementing Valuer interface are able to convert
    // themselves to a driver [Value].
    type Valuer interface {
    	// Value returns a driver Value.
    	// Value must not panic.
    	Value() (Value, error)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 16:30:20 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Stmt).QueryContext", Method, 8},
    		{"(*Stmt).QueryRow", Method, 0},
    		{"(*Stmt).QueryRowContext", Method, 8},
    		{"(*Tx).Commit", Method, 0},
    		{"(*Tx).Exec", Method, 0},
    		{"(*Tx).ExecContext", Method, 8},
    		{"(*Tx).Prepare", Method, 0},
    		{"(*Tx).PrepareContext", Method, 8},
    		{"(*Tx).Query", Method, 0},
    		{"(*Tx).QueryContext", Method, 8},
    		{"(*Tx).QueryRow", Method, 0},
    		{"(*Tx).QueryRowContext", Method, 8},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  6. api/go1.txt

    pkg database/sql, method (*Stmt) QueryRow(...interface{}) *Row
    pkg database/sql, method (*Tx) Commit() error
    pkg database/sql, method (*Tx) Exec(string, ...interface{}) (Result, error)
    pkg database/sql, method (*Tx) Prepare(string) (*Stmt, error)
    pkg database/sql, method (*Tx) Query(string, ...interface{}) (*Rows, error)
    pkg database/sql, method (*Tx) QueryRow(string, ...interface{}) *Row
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  7. src/internal/trace/traceviewer/static/trace_viewer_full.html

    if((typeof queryLow!=='number')||(typeof queryHigh!=='number')){throw new Error('queryLow and queryHigh must be numbers');}},findIntersection(queryLow,queryHigh){this.validateFindArguments_(queryLow,queryHigh);if(this.root_===undefined)return[];const ret=[];this.root_.appendInterse...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top