- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 132 for SQL (0.14 sec)
-
internal/s3select/simdj/record.go
} return sql.FromInt(v), nil case simdjson.TypeUint: v, err := iter.Int() if err != nil { // Can't fit into int, convert to float. v, err := iter.Float() return sql.FromFloat(v), err } return sql.FromInt(v), nil case simdjson.TypeBool: v, err := iter.Bool() if err != nil { return nil, err } return sql.FromBool(v), nil case simdjson.TypeNull: return sql.FromNull(), nil
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 5.4K bytes - Viewed (0) -
docs/em/docs/advanced/testing-database.md
``` ๐ ๐ ๐ค `main.py`, โ๏ธ โธ `main.py` โ๏ธ ๐ฝ ๐ `sql_app.db`, & ๐ฅ ๐ช โ ๐ญ ๐ฅ โ `test.db` ๐ฏ. ๐ฅ ๐ฎ ๐ โธ ๐ฅ, โฎ๏ธ ๐ ๐. ```Python hl_lines="16" {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!} ``` ## ๐ ๐ ๐ ๐ฅ โ ๐ ๐ & ๐ฎ โซ๏ธ ๐ ๐ ๐ฑ. ```Python hl_lines="19-24 27" {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!} ``` !!! tip
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 2.6K bytes - Viewed (0) -
migrator/column_type.go
import ( "database/sql" "reflect" ) // ColumnType column type implements ColumnType interface type ColumnType struct { SQLColumnType *sql.ColumnType NameValue sql.NullString DataTypeValue sql.NullString ColumnTypeValue sql.NullString PrimaryKeyValue sql.NullBool UniqueValue sql.NullBool AutoIncrementValue sql.NullBool LengthValue sql.NullInt64 DecimalSizeValue sql.NullInt64
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Mar 24 01:31:58 GMT 2022 - 3.3K bytes - Viewed (0) -
logger/logger.go
} else { l.Printf(l.traceWarnStr, utils.FileWithLineNum(), slowLog, float64(elapsed.Nanoseconds())/1e6, rows, sql) } case l.LogLevel == Info: sql, rows := fc() if rows == -1 { l.Printf(l.traceStr, utils.FileWithLineNum(), float64(elapsed.Nanoseconds())/1e6, "-", sql) } else { l.Printf(l.traceStr, utils.FileWithLineNum(), float64(elapsed.Nanoseconds())/1e6, rows, sql) } } }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Tue Nov 07 02:19:41 GMT 2023 - 5.8K bytes - Viewed (0) -
clause/joins_test.go
}, }, sql: "INNER JOIN `user` USING (`id`)", }, } for _, result := range results { t.Run(result.name, func(t *testing.T) { user, _ := schema.Parse(&tests.User{}, &sync.Map{}, db.NamingStrategy) stmt := &gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}} result.join.Build(stmt) if result.sql != stmt.SQL.String() {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Nov 03 13:03:13 GMT 2022 - 2.6K bytes - Viewed (0) -
interfaces.go
} // TxCommitter tx committer type TxCommitter interface { Commit() error Rollback() error } // Tx sql.Tx interface type Tx interface { ConnPool TxCommitter StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt } // Valuer gorm valuer interface type Valuer interface { GormValue(context.Context, *DB) clause.Expr } // GetDBConnector SQL db connector
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Sat Aug 19 13:33:31 GMT 2023 - 2.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/exception/ClSQLException.java
* ๅผๆฐใฎไธฆใณ * @param sqlState * SQLในใใผใ * @param vendorCode * ใใณใใผใณใผใ * @param sql * SQLๆๅญๅ */ public ClSQLException(final String messageCode, final Object[] args, final String sqlState, final int vendorCode, final String sql) { this(messageCode, args, sqlState, vendorCode, null, sql); } /** * {@link ClSQLException}ใไฝๆใใพใใ
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 5.5K bytes - Viewed (0) -
docs/en/docs/advanced/testing-database.md
{!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!} ``` !!! tip The code for `override_get_db()` is almost exactly the same as for `get_db()`, but in `override_get_db()` we use the `TestingSessionLocal` for the testing database instead. ## Test the app Then we can just test the app as normally. ```Python hl_lines="32-47" {!../../../docs_src/sql_databases/sql_app/tests/test_sql_app.py!} ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 3.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/sql/StatementUtil.java
*/ package org.codelibs.core.sql; import static org.codelibs.core.log.Logger.format; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotEmpty; import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import org.codelibs.core.exception.SQLRuntimeException;
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 5.2K bytes - Viewed (0) -
tests/main_test.go
t.Skip("skip sqlserver due to it will raise data race for invalid sql") } var columns []string if DB.Where("sdsd.zaaa = ?", "sd;;;aa").Pluck("aaa", &columns).Error == nil { t.Errorf("Should got error with invalid SQL") } if DB.Model(&User{}).Where("sdsd.zaaa = ?", "sd;;;aa").Pluck("aaa", &columns).Error == nil { t.Errorf("Should got error with invalid SQL") }
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Thu Mar 24 01:31:58 GMT 2022 - 1.4K bytes - Viewed (0)