- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for addColumn (0.43 sec)
-
migrator.go
HasTable(dst interface{}) bool RenameTable(oldName, newName interface{}) error GetTables() (tableList []string, err error) TableType(dst interface{}) (TableType, error) // Columns AddColumn(dst interface{}, field string) error DropColumn(dst interface{}, field string) error AlterColumn(dst interface{}, field string) error MigrateColumn(dst interface{}, field *schema.Field, columnType ColumnType) error
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Oct 30 09:15:49 UTC 2023 - 3.1K bytes - Viewed (0) -
src/internal/trace/traceviewer/mmu.go
curve = plotData.curve; var data = new google.visualization.DataTable(); data.addColumn('number', 'Window duration'); data.addColumn('number', 'Minimum mutator utilization'); if (plotData.quantiles) { for (var i = 1; i < plotData.quantiles.length; i++) { data.addColumn('number', niceQuantile(1 - plotData.quantiles[i]) + ' MU'); } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 21:29:53 UTC 2023 - 13K bytes - Viewed (0) -
migrator/migrator.go
newTable = m.CurrentTable(stmt) } else { return err } } return m.DB.Exec("ALTER TABLE ? RENAME TO ?", oldTable, newTable).Error } // AddColumn create `name` column for value func (m Migrator) AddColumn(value interface{}, name string) error { return m.RunWithValue(value, func(stmt *gorm.Statement) error { // avoid using the same name field if stmt.Schema == nil {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Apr 26 07:15:49 UTC 2024 - 29K bytes - Viewed (0) -
tests/migrate_test.go
columnType) } } } } type NewColumnStruct struct { gorm.Model Name string NewName string } if err := DB.Table("column_structs").Migrator().AddColumn(&NewColumnStruct{}, "NewName"); err != nil { t.Fatalf("Failed to add column, got %v", err) } if !DB.Table("column_structs").Migrator().HasColumn(&NewColumnStruct{}, "NewName") {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Mar 18 11:24:16 UTC 2024 - 56.2K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/provision_test.go
volume := newVolume("pvc-uid11-7", "1Gi", "uid11-7", "claim11-7", v1.VolumeBound, v1.PersistentVolumeReclaimDelete, classGold, volume.AnnBoundByController, volume.AnnDynamicallyProvisioned) reactor.AddVolume(volume) }), }, { // Provision success - cannot save provisioned PV once, // second retry succeeds name: "11-8 - cannot save provisioned volume", initialVolumes: novolumes,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 35.3K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter.go
} if len(table.Rows) > 0 { h.printedHeaders = true } if err := decorateTable(table, localOptions); err != nil { return err } if len(eventType) > 0 { if err := addColumns(beginning, table, []metav1.TableColumnDefinition{{Name: "Event", Type: "string"}}, []cellValueFunc{func(metav1.TableRow) (interface{}, error) { return formatEventType(eventType), nil }}, ); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Oct 30 15:08:43 UTC 2022 - 16.7K bytes - Viewed (0) -
pkg/kubelet/volumemanager/cache/actual_state_of_world.go
pluginIsAttachable = volumeAttachabilityTrue } return asw.addVolume(volumeName, volumeSpec, devicePath, pluginIsAttachable) } func (asw *actualStateOfWorld) AddAttachUncertainReconstructedVolume( volumeName v1.UniqueVolumeName, volumeSpec *volume.Spec, _ types.NodeName, devicePath string) error { return asw.addVolume(volumeName, volumeSpec, devicePath, volumeAttachabilityUncertain) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 09 07:34:33 UTC 2024 - 45.8K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/testing/testing.go
func (r *VolumeReactor) AddClaim(claim *v1.PersistentVolumeClaim) { r.lock.Lock() defer r.lock.Unlock() r.claims[claim.Name] = claim } // AddVolume adds a PV into VolumeReactor. func (r *VolumeReactor) AddVolume(volume *v1.PersistentVolume) { r.lock.Lock() defer r.lock.Unlock() r.volumes[volume.Name] = volume } // DeleteVolume deletes a PV by name.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 20.1K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/pv_controller_base.go
return controller, nil } // initializeCaches fills all controller caches with initial data from etcd in // order to have the caches already filled when first addClaim/addVolume to // perform initial synchronization of the controller.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 08:42:31 UTC 2024 - 29.5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/binder_test.go
for _, pv := range cachedPVs { assumecache.AddTestObject(env.internalBinder.pvCache.AssumeCache, pv) if apiPVs == nil { env.reactor.AddVolume(pv) } } for _, pv := range apiPVs { env.reactor.AddVolume(pv) } } func (env *testEnv) updateVolumes(ctx context.Context, pvs []*v1.PersistentVolume) error { for i, pv := range pvs {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 82.8K bytes - Viewed (0)