- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for DryRun (0.05 sec)
-
operator/cmd/mesh/root.go
) type RootArgs struct { // DryRun performs all steps except actually applying the manifests or creating output dirs/files. DryRun bool } func addFlags(cmd *cobra.Command, rootArgs *RootArgs) { cmd.PersistentFlags().BoolVarP(&rootArgs.DryRun, "dry-run", "", false, "Console/log output only, make no changes.")
Registered: 2025-05-28 22:53 - Last Modified: 2024-08-15 16:31 - 2.2K bytes - Viewed (0) -
tests/sql_builder_test.go
t.Errorf("The first join condition is over written instead of combining") } } func TestToSQL(t *testing.T) { // By default DB.DryRun should false if DB.DryRun { t.Fatal("Failed expect DB.DryRun to be false") } if DB.Dialector.Name() == "sqlserver" { t.Skip("Skip SQL Server for this test, because it too difference with other dialects.") }
Registered: 2025-05-25 09:35 - Last Modified: 2024-01-12 08:42 - 16.7K bytes - Viewed (0) -
gorm.go
FullSaveAssociations bool // Logger Logger logger.Interface // NowFunc the function to be used when creating a new timestamp NowFunc func() time.Time // DryRun generate sql without execute DryRun bool // PrepareStmt executes the given query in cached statement PrepareStmt bool // PrepareStmt cache support LRU expired, // default maxsize=int64 Max value and ttl=1h PrepareStmtMaxSize int
Registered: 2025-05-25 09:35 - Last Modified: 2025-05-25 07:40 - 12.6K bytes - Viewed (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
Registered: 2025-05-25 09:35 - Last Modified: 2025-05-25 07:40 - 468 bytes - Viewed (0) -
tests/query_test.go
result := DB.Session(&gorm.Session{DryRun: true}).Model(&User{}).Find(&simpleUsers, user.ID) if !regexp.MustCompile("SELECT .*id.*name.*updated_at.*created_at.* FROM .*users").MatchString(result.Statement.SQL.String()) { t.Fatalf("SQL should include selected names, but got %v", result.Statement.SQL.String()) } result = DB.Session(&gorm.Session{DryRun: true}).Model(&User{}).Find(&User{}, user.ID)
Registered: 2025-05-25 09:35 - Last Modified: 2024-06-24 09:42 - 50.4K bytes - Viewed (0) -
cmd/erasure-healing.go
func (er *erasureObjects) healObject(ctx context.Context, bucket string, object string, versionID string, opts madmin.HealOpts) (result madmin.HealResultItem, err error) { dryRun := opts.DryRun scanMode := opts.ScanMode storageDisks := er.getDisks() storageEndpoints := er.getEndpoints() defer func() { er.auditHealObject(ctx, bucket, object, versionID, result, err) }()
Registered: 2025-05-25 19:28 - Last Modified: 2025-04-04 13:49 - 34.6K bytes - Viewed (0) -
callbacks/row.go
package callbacks import ( "gorm.io/gorm" ) func RowQuery(db *gorm.DB) { if db.Error == nil { BuildQuerySQL(db) if db.DryRun || db.Error != nil { return } if isRows, ok := db.Get("rows"); ok && isRows.(bool) { db.Statement.Settings.Delete("rows") db.Statement.Dest, db.Error = db.Statement.ConnPool.QueryContext(db.Statement.Context, db.Statement.SQL.String(), db.Statement.Vars...) } else {
Registered: 2025-05-25 09:35 - Last Modified: 2023-02-08 05:40 - 581 bytes - Viewed (0) -
cmd/admin-handlers.go
if err != nil { writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL) return } updateStatus := madmin.ServerUpdateStatusV2{ DryRun: dryRun, Results: make([]madmin.ServerPeerUpdateStatus, 0, len(globalNotificationSys.allPeerClients)), } peerResults := make(map[string]madmin.ServerPeerUpdateStatus, len(globalNotificationSys.allPeerClients))
Registered: 2025-05-25 19:28 - Last Modified: 2025-04-01 15:21 - 99.6K bytes - Viewed (0) -
operator/cmd/mesh/install.go
if !rootArgs.DryRun && !iArgs.SkipConfirmation { prompt := fmt.Sprintf("This will install the Istio %s profile %q into the cluster. Proceed? (y/N)", tag, profile) if !Confirm(prompt, stdOut) { p.Println("Cancelled.") os.Exit(1) } } i := install.Installer{ Force: iArgs.Force, DryRun: rootArgs.DryRun, SkipWait: false,
Registered: 2025-05-28 22:53 - Last Modified: 2024-08-15 16:31 - 9.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/job/PingSearchEngineJob.java
})); } else { postcard.addTo(fessConfig.getMailFromAddress()); postcard.dryrun(); } postcard.setHostname(systemHelper.getHostname()); postcard.setClustername(ping.getClusterName());
Registered: 2025-05-26 08:04 - Last Modified: 2025-03-15 06:53 - 4.1K bytes - Viewed (0)