- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 218 for SQL (0.02 sec)
-
tests/update_has_one_test.go
package tests_test import ( "database/sql" "testing" "time" "gorm.io/gorm" . "gorm.io/gorm/utils/tests" ) func TestUpdateHasOne(t *testing.T) { user := *GetUser("update-has-one", Config{}) if err := DB.Create(&user).Error; err != nil { t.Fatalf("errors happened when create: %v", err) } user.Account = Account{Number: "account-has-one-association"} if err := DB.Save(&user).Error; err != nil {
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 3.6K bytes - Viewed (0) -
tests/non_std_test.go
package tests_test import ( "testing" "time" ) type Animal struct { Counter uint64 `gorm:"primary_key:yes"` Name string `gorm:"DEFAULT:'galeone'"` From string // test reserved sql keyword as field name Age *time.Time unexported string // unexported value CreatedAt time.Time UpdatedAt time.Time } func TestNonStdPrimaryKeyAndDefaultValues(t *testing.T) { DB.Migrator().DropTable(&Animal{})
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Wed May 08 04:07:58 UTC 2024 - 1.9K bytes - Viewed (0) -
internal/s3select/sql/timestampfuncs_test.go
// GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package sql import ( "testing" "time" ) func TestParseAndDisplaySQLTimestamp(t *testing.T) { beijing := time.FixedZone("", int((8 * time.Hour).Seconds()))
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 2.2K bytes - Viewed (0) -
tests/preload_test.go
query := make([]string, 0) sess := DB.Session(&gorm.Session{Logger: Tracer{ Logger: DB.Config.Logger, Test: func(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) { sql, _ := fc() query = append(query, sql) }, }}) var result []User err := sess. Joins("Manager"). Preload("Manager.Tools").
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Wed Jun 12 10:00:47 UTC 2024 - 15.9K bytes - Viewed (0) -
clause/order_by_test.go
}, }, "SELECT * FROM `users` ORDER BY `name`", nil, }, { []clause.Interface{ clause.Select{}, clause.From{}, clause.OrderBy{ Expression: clause.Expr{SQL: "FIELD(id, ?)", Vars: []interface{}{[]int{1, 2, 3}}, WithoutParentheses: true}, }, }, "SELECT * FROM `users` ORDER BY FIELD(id, ?,?,?)", []interface{}{1, 2, 3}, }, }Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Jan 06 07:02:53 UTC 2022 - 1.6K bytes - Viewed (0) -
internal/s3select/sql/analysis.go
// GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package sql import ( "errors" "fmt" "strings" ) // Query analysis - The query is analyzed to determine if it involves // aggregation. // // Aggregation functions - An expression that involves aggregation of
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 8.6K bytes - Viewed (0) -
internal/s3select/sql/statement.go
// GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package sql import ( "errors" "fmt" "strings" "github.com/minio/minio/internal/s3select/jstream" "github.com/minio/simdjson-go" )
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 9K bytes - Viewed (0) -
schema/relationship.go
func (constraint *Constraint) GetName() string { return constraint.Name } func (constraint *Constraint) Build() (sql string, vars []interface{}) { sql = "CONSTRAINT ? FOREIGN KEY ? REFERENCES ??" if constraint.OnDelete != "" { sql += " ON DELETE " + constraint.OnDelete } if constraint.OnUpdate != "" { sql += " ON UPDATE " + constraint.OnUpdate } foreignKeys := make([]interface{}, 0, len(constraint.ForeignKeys))
Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Sun Nov 16 04:11:05 UTC 2025 - 23.1K bytes - Viewed (1) -
internal/s3select/sql/funceval.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package sql import ( "errors" "fmt" "strconv" "strings" "time" ) // FuncName - SQL function name. type FuncName string // SQL Function name constants const ( // Conditionals sqlFnCoalesce FuncName = "COALESCE" sqlFnNullIf FuncName = "NULLIF" // Conversion
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 13.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/converter/DateConverterTest.java
*/ package org.codelibs.core.beans.converter; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.not; import static org.junit.Assert.assertThat; import java.sql.Timestamp; import java.util.Date; import org.junit.Test; /** * @author higa * */ public class DateConverterTest { /** * @throws Exception */ @TestRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 1.6K bytes - Viewed (0)