- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 174 for SQL (0.01 seconds)
-
tests/upsert_test.go
if err := tx.Error; err != nil { t.Fatalf("failed to update user,missing where condition,err=%+v", err) } if !regexp.MustCompile("WHERE .id. = [^ ]+$").MatchString(tx.Statement.SQL.String()) { t.Fatalf("invalid updating SQL, got %v", tx.Statement.SQL.String()) }Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Jul 29 11:06:13 GMT 2025 - 13.1K bytes - Click Count (0) -
tests/prepared_stmt_test.go
} } func isUsingClosedConnError(err error) bool { // https://github.com/golang/go/blob/e705a2d16e4ece77e08e80c168382cdb02890f5b/src/database/sql/sql.go#L2717 return err.Error() == "sql: statement is closed" } // TestPreparedStmtConcurrentClose test calling close and executing SQL concurrently // this test making sure that the gorm would not get a Segmentation Fault, and the only error cause by this is using a closed Stmt
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Fri Apr 25 08:22:26 GMT 2025 - 8K bytes - Click Count (0) -
tests/count_test.go
t.Fatalf("Build count with select, but got %v", result.Statement.SQL.String()) } result = dryDB.Table("users").Distinct("name").Count(&count) if !regexp.MustCompile(`SELECT COUNT\(DISTINCT\(.name.\)\) FROM .*users.*`).MatchString(result.Statement.SQL.String()) { t.Fatalf("Build count with select, but got %v", result.Statement.SQL.String()) } var count4 int64
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Mon Sep 08 09:19:22 GMT 2025 - 6.8K bytes - Click Count (0) -
clause/select.go
} } else { builder.WriteByte('*') } } func (s Select) MergeClause(clause *Clause) { if s.Expression != nil { if s.Distinct { if expr, ok := s.Expression.(Expr); ok { expr.SQL = "DISTINCT " + expr.SQL clause.Expression = expr return } } clause.Expression = s.Expression } else { clause.Expression = s } }Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Wed Jul 14 07:51:24 GMT 2021 - 1.1K bytes - Click Count (0) -
callbacks/create.go
} } if len(fromColumns) > 0 { db.Statement.AddClause(clause.Returning{Columns: fromColumns}) } } } } if db.Statement.SQL.Len() == 0 { db.Statement.SQL.Grow(180) db.Statement.AddClauseIfNotExists(clause.Insert{}) db.Statement.AddClause(ConvertToCreateValues(db.Statement)) db.Statement.Build(db.Statement.BuildClauses...) }
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Jul 29 11:06:13 GMT 2025 - 13K bytes - Click Count (0) -
api/go1.11.txt
pkg database/sql, method (IsolationLevel) String() string pkg database/sql, type DBStats struct, Idle int pkg database/sql, type DBStats struct, InUse int pkg database/sql, type DBStats struct, MaxIdleClosed int64 pkg database/sql, type DBStats struct, MaxLifetimeClosed int64 pkg database/sql, type DBStats struct, MaxOpenConnections int pkg database/sql, type DBStats struct, WaitCount int64
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Aug 22 03:48:56 GMT 2018 - 25K bytes - Click Count (0) -
api/go1.22.txt
pkg crypto/x509, type OID struct #60665 pkg database/sql, method (*Null[$0]) Scan(interface{}) error #60370 pkg database/sql, method (Null[$0]) Value() (driver.Value, error) #60370 pkg database/sql, type Null[$0 interface{}] struct #60370 pkg database/sql, type Null[$0 interface{}] struct, V $0 #60370 pkg database/sql, type Null[$0 interface{}] struct, Valid bool #60370 pkg debug/elf, const R_LARCH_64_PCREL = 109 #63725
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Jan 24 20:54:27 GMT 2024 - 7.7K bytes - Click Count (0) -
docs/ko/docs/project-generation.md
- β‘ [**FastAPI**](https://fastapi.tiangolo.com): Python λ°±μλ API. - π§° [SQLModel](https://sqlmodel.tiangolo.com): Python SQL λ°μ΄ν° μνΈμμ©μ μν (ORM). - π [Pydantic](https://docs.pydantic.dev): FastAPIμ μν΄ μ¬μ©λλ, λ°μ΄ν° κ²μ¦κ³Ό μ€μ κ΄λ¦¬. - πΎ [PostgreSQL](https://www.postgresql.org): SQL λ°μ΄ν°λ² μ΄μ€. - π [React](https://react.dev): νλ‘ νΈμλ. - π TypeScript, hooks, [Vite](https://vitejs.dev) λ° κΈ°ν νλμ μΈ νλ‘ νΈμλ μ€νμ μ¬μ©.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Fri Oct 04 11:16:34 GMT 2024 - 2.1K bytes - Click Count (0) -
callbacks/raw.go
package callbacks import ( "gorm.io/gorm" ) func RawExec(db *gorm.DB) { if db.Error == nil && !db.DryRun { result, err := db.Statement.ConnPool.ExecContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...) if err != nil { db.AddError(err) return } db.RowsAffected, _ = result.RowsAffected() if db.Statement.Result != nil { db.Statement.Result.Result = result
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 468 bytes - Click Count (0) -
internal/s3select/sql/parser_test.go
func TestParseSelectStatement(t *testing.T) { exp, err := ParseSelectStatement("select _3,_1,_2 as 'mytest' from S3object") if err != nil { t.Fatalf("parse alias sql error: %v", err) } if exp.selectAST.Expression.Expressions[2].As != "mytest" { t.Fatalf("parse alias sql error: %s not equal %s", exp.selectAST.Expression.Expressions[2].As, err) }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 9.2K bytes - Click Count (0)