- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 174 for migrate (0.04 seconds)
-
tests/hooks_test.go
} func TestRunCallbacks(t *testing.T) { DB.Migrator().DropTable(&Product{}) DB.AutoMigrate(&Product{}) p := Product{Code: "unique_code", Price: 100} DB.Save(&p) if !reflect.DeepEqual(p.GetCallTimes(), []int64{1, 1, 0, 1, 1, 0, 0, 0, 0}) {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jun 17 03:59:06 GMT 2024 - 16.7K bytes - Click Count (0) -
utils/tests/dummy_dialecter.go
LastInsertIDReversed: true, }) return nil } func (DummyDialector) DefaultValueOf(field *schema.Field) clause.Expression { return clause.Expr{SQL: "DEFAULT"} } func (DummyDialector) Migrator(*gorm.DB) gorm.Migrator { return nil } func (DummyDialector) BindVarTo(writer clause.Writer, stmt *gorm.Statement, v interface{}) { writer.WriteByte('?') }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Mar 06 06:03:31 GMT 2023 - 2.2K bytes - Click Count (0) -
interfaces.go
import ( "context" "database/sql" "gorm.io/gorm/clause" "gorm.io/gorm/schema" ) // Dialector GORM database dialector type Dialector interface { Name() string Initialize(*DB) error Migrator(db *DB) Migrator DataTypeOf(*schema.Field) string DefaultValueOf(*schema.Field) clause.Expression BindVarTo(writer clause.Writer, stmt *Statement, v interface{}) QuoteTo(clause.Writer, string)
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Aug 19 13:33:31 GMT 2023 - 2.2K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/collect/SetContainsBenchmark.java
@Param({"5", "30", "180", "1100", "6900", "43000", "260000"}) // "1600000", "9800000" private int size; // TODO(kevinb): look at exact (==) hits vs. equals() hits? @Param({"0.2", "0.8"}) private double hitRate; @Param("true") private boolean isUserTypeFast; // "" means no fixed seed @Param("") private SpecialRandom random; @Param({"HashSetImpl", "ImmutableSetImpl"}) private SetImpl impl;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.5K bytes - Click Count (0) -
ci/official/requirements_updater/BUILD.bazel
load("@python_version_repo//:py_version.bzl", "REQUIREMENTS") load("@rules_python//python:pip.bzl", "compile_pip_requirements") # TODO(ybaturina): Remove once TF is migrated to CUDA 12.9. genrule( name = "nvidia_constraints", srcs = ["nvidia-requirements.txt"], outs = ["nvidia-constraints.txt"], cmd = """sed -E "s/>=/==/" $(location nvidia-requirements.txt) > $@;""", )Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Mon Mar 23 11:18:56 GMT 2026 - 1.4K bytes - Click Count (0) -
guava/src/com/google/common/base/Supplier.java
* * <p>Historically, {@code Supplier} instances in this library have implemented this method to * recognize certain cases where distinct {@code Supplier} instances would in fact behave * identically. However, as code migrates to {@code java.util.function}, that behavior will * disappear. It is best not to depend on it. */ @Override boolean equals(@Nullable Object object);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jun 19 17:20:48 GMT 2025 - 2.5K bytes - Click Count (0) -
tests/preload_test.go
Preloads []*Preload Join Join ValueID uint } Value struct { ID uint Name string Nested Nested } ) DB.Migrator().DropTable(&Preload{}, &Join{}, &Nested{}, &Value{}) DB.Migrator().AutoMigrate(&Preload{}, &Join{}, &Nested{}, &Value{}) value1 := Value{ Name: "value", Nested: Nested{ Preloads: []*Preload{ {Value: "p1"}, {Value: "p2"},
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Wed Jun 12 10:00:47 GMT 2024 - 15.9K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/ReleaseToolsPlugin.java
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Fri Sep 24 10:57:02 GMT 2021 - 4.8K bytes - Click Count (0) -
migrator/table_type.go
package migrator import ( "database/sql" ) // TableType table type implements TableType interface type TableType struct { SchemaValue string NameValue string TypeValue string CommentValue sql.NullString } // Schema returns the schema of the table. func (ct TableType) Schema() string { return ct.SchemaValue } // Name returns the name of the table. func (ct TableType) Name() string {Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Fri May 05 07:58:27 GMT 2023 - 688 bytes - Click Count (0) -
migrator/index.go
package migrator import "database/sql" // Index implements gorm.Index interface type Index struct { TableName string NameValue string ColumnList []string PrimaryKeyValue sql.NullBool UniqueValue sql.NullBool OptionValue string } // Table return the table name of the index. func (idx Index) Table() string { return idx.TableName } // Name return the name of the index.Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Tue Apr 11 02:32:46 GMT 2023 - 1023 bytes - Click Count (0)