MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / IsDefault

Method IsDefault

pkg/sql/sem/tree/backup.go:369–379  ·  view source on GitHub ↗

IsDefault returns true if this backup options struct has default value.

()

Source from the content-addressed store, hash-verified

367
368// IsDefault returns true if this backup options struct has default value.
369func (o BackupOptions) IsDefault() bool {
370 options := BackupOptions{}
371 return o.CaptureRevisionHistory == options.CaptureRevisionHistory &&
372 (o.Detached == nil || o.Detached == DBoolFalse) &&
373 cmp.Equal(o.EncryptionKMSURI, options.EncryptionKMSURI) &&
374 o.EncryptionPassphrase == options.EncryptionPassphrase &&
375 cmp.Equal(o.IncrementalStorage, options.IncrementalStorage) &&
376 o.ExecutionLocality == options.ExecutionLocality &&
377 o.IncludeAllSecondaryTenants == options.IncludeAllSecondaryTenants &&
378 o.UpdatesClusterMonitoringMetrics == options.UpdatesClusterMonitoringMetrics
379}
380
381// Format implements the NodeFormatter interface.
382func (o *RestoreOptions) Format(ctx *FmtCtx) {

Callers 2

FormatMethod · 0.45
FormatMethod · 0.45

Calls 1

EqualMethod · 0.45

Tested by

no test coverage detected