- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 28 for row (0.03 seconds)
-
prepare_stmt.go
} } return rows, err } func (db *PreparedStmtDB) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row { stmt, err := db.prepare(ctx, db.ConnPool, false, query) if err == nil { return stmt.QueryRowContext(ctx, args...) } return &sql.Row{} } func (db *PreparedStmtDB) Ping() error { conn, err := db.GetDBConn() if err != nil { return err }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Apr 25 08:22:26 GMT 2025 - 5.7K bytes - Click Count (0) -
tests/sql_builder_test.go
user3 := User{Name: "RowUser3", Age: 20} DB.Save(&user1).Save(&user2).Save(&user3) row := DB.Table("users").Where("name = ?", user2.Name).Select("age").Row() var age int64 if err := row.Scan(&age); err != nil { t.Fatalf("Failed to scan age, got %v", err) } if age != 10 { t.Errorf("Scan with Row, age expects: %v, got %v", user2.Age, age) } table := "gorm.users"Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Jul 21 02:46:58 GMT 2025 - 16.7K bytes - Click Count (0) -
internal/s3select/sql/analysis.go
// rows in some manner. Requires all input rows to be processed, // before a result is returned. // // Row function - An expression that depends on a value in the // row. They have an output for each input row. // // Some types of a queries are not valid. For example, an aggregation // function combined with a row function is meaningless ("AVG(s.Age) + // s.Salary"). Analysis determines if such a scenario exists so an
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 8.6K bytes - Click Count (0) -
finisher_api.go
*count = tx.RowsAffected } return } func (db *DB) Row() *sql.Row { tx := db.getInstance().Set("rows", false) tx = tx.callbacks.Row().Execute(tx) row, ok := tx.Statement.Dest.(*sql.Row) if !ok && tx.DryRun { db.Logger.Error(tx.Statement.Context, ErrDryRunModeUnsupported.Error()) } return row } func (db *DB) Rows() (*sql.Rows, error) { tx := db.getInstance().Set("rows", true)Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 19 01:49:06 GMT 2025 - 22.9K bytes - Click Count (0) -
internal/hash/crc.go
odd := make([]uint64, 32) // odd-power-of-two zeros operator // put operator for one zero bit in odd odd[0] = uint64(poly) // CRC-32 polynomial row := uint64(1) for n := 1; n < 32; n++ { odd[n] = row row <<= 1 } // put operator for two zero bits in even gf2MatrixSquare(even, odd) // put operator for four zero bits in odd gf2MatrixSquare(odd, even)
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Jan 20 14:49:07 GMT 2025 - 5.8K bytes - Click Count (0) -
tests/association_generics_test.go
} AssertAssociationCount(t, user, "Languages", 1, "after delete one") // language row remains var count int64 if err := DB.Model(&Language{}).Where("code = ?", "es").Count(&count).Error; err != nil { t.Fatalf("count lang: %v", err) } if count != 1 { t.Fatalf("expected language row still exists, got %d", count) } } // Multi-owners: HasMany update and delete
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Sep 12 05:42:26 GMT 2025 - 37.9K bytes - Click Count (0) -
callbacks.go
} func (cs *callbacks) Update() *processor { return cs.processors["update"] } func (cs *callbacks) Delete() *processor { return cs.processors["delete"] } func (cs *callbacks) Row() *processor { return cs.processors["row"] } func (cs *callbacks) Raw() *processor { return cs.processors["raw"] } func (p *processor) Execute(db *DB) *DB { // call scopes for len(db.Statement.scopes) > 0 {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Aug 26 06:24:29 GMT 2025 - 8.8K bytes - Click Count (0) -
tests/connpool_test.go
c.conn.got = append(c.conn.got, query) return c.Tx.QueryContext(ctx, query, args...) } func (c *wrapperTx) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row { c.conn.got = append(c.conn.got, query) return c.Tx.QueryRowContext(ctx, query, args...) } type wrapperConnPool struct { db *sql.DB got []string expect []string }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 5.5K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java
} /** * Moves the cursor to row n, column m. The values are 1-based. * Any values less than 1 are mapped to 1. * * @param row row (1-based) from top * @param column column (1 based) from left * @return this Ansi instance */ public Ansi cursor(final int row, final int column) { return appendEscapeSequence('H', Math.max(1, row), Math.max(1, column)); } /**Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat Apr 05 11:52:05 GMT 2025 - 23.1K bytes - Click Count (0) -
generics.go
var data []T return g.g.apply(ctx).FindInBatches(&data, batchSize, func(tx *DB, batch int) error { return fc(data, batch) }).Error } func (g execG[T]) Row(ctx context.Context) *sql.Row { return g.g.apply(ctx).Row() } func (g execG[T]) Rows(ctx context.Context) (*sql.Rows, error) { return g.g.apply(ctx).Rows() }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun Nov 02 14:09:18 GMT 2025 - 25.9K bytes - Click Count (0)