Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for prepareContent (0.38 sec)

  1. src/database/sql/sql.go

    // when the statement is no longer needed.
    //
    // Prepare uses [context.Background] internally; to specify the context, use
    // [DB.PrepareContext].
    func (db *DB) Prepare(query string) (*Stmt, error) {
    	return db.PrepareContext(context.Background(), query)
    }
    
    func (db *DB) prepare(ctx context.Context, query string, strategy connReuseStrategy) (*Stmt, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    // must be defined for compatibility.
    func (c *ctxOnlyConn) Prepare(q string) (driver.Stmt, error) {
    	panic("not used")
    }
    
    func (c *ctxOnlyConn) PrepareContext(ctx context.Context, q string) (driver.Stmt, error) {
    	return c.fc.PrepareContext(ctx, q)
    }
    
    func (c *ctxOnlyConn) QueryContext(ctx context.Context, q string, args []driver.NamedValue) (driver.Rows, error) {
    	c.queryCtxCalled = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top