mysql

package
v7.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateBackupOption

type CreateBackupOption func(*CreateBackupOptions)

type CreateBackupOptions

type CreateBackupOptions struct {
	Type string
	// contains filtered or unexported fields
}

func (CreateBackupOptions) New

type CreateBackupPolicyOption

type CreateBackupPolicyOption func(*CreateBackupPolicyOptions)

type CreateBackupPolicyOptions

type CreateBackupPolicyOptions struct {
	Type    string
	Enabled bool
	// contains filtered or unexported fields
}

func (CreateBackupPolicyOptions) New

type CreateBranchOption

type CreateBranchOption func(*CreateBranchOptions)

type CreateBranchOptions

type CreateBranchOptions struct {
	BranchId string
	Ttl      int
	// contains filtered or unexported fields
}

func (CreateBranchOptions) New

type CreateExecutionOption

type CreateExecutionOption func(*CreateExecutionOptions)

type CreateExecutionOptions

type CreateExecutionOptions struct {
	Bindings       interface{}
	TimeoutSeconds int
	// contains filtered or unexported fields
}

func (CreateExecutionOptions) New

type CreateFailoverOption

type CreateFailoverOption func(*CreateFailoverOptions)

type CreateFailoverOptions

type CreateFailoverOptions struct {
	TargetReplicaId string
	// contains filtered or unexported fields
}

func (CreateFailoverOptions) New

type CreateMigrationOption

type CreateMigrationOption func(*CreateMigrationOptions)

type CreateMigrationOptions

type CreateMigrationOptions struct {
	Specification string
	// contains filtered or unexported fields
}

func (CreateMigrationOptions) New

type CreateOption

type CreateOption func(*CreateOptions)

type CreateOptions

type CreateOptions struct {
	Version                            string
	Specification                      string
	Replicas                           int
	SyncMode                           string
	NetworkIdleTimeoutSeconds          int
	NetworkIPAllowlist                 []string
	IdleTimeoutMinutes                 int
	Pitr                               bool
	PitrRetentionDays                  int
	StorageAutoscaling                 bool
	StorageAutoscalingThresholdPercent int
	StorageAutoscalingMaxGb            int
	// contains filtered or unexported fields
}

func (CreateOptions) New

func (options CreateOptions) New() *CreateOptions

type CreateRestorationOption

type CreateRestorationOption func(*CreateRestorationOptions)

type CreateRestorationOptions

type CreateRestorationOptions struct {
	Type             string
	BackupId         string
	TargetDatabaseId string
	TargetTime       string
	// contains filtered or unexported fields
}

func (CreateRestorationOptions) New

type ListBackupPoliciesOption

type ListBackupPoliciesOption func(*ListBackupPoliciesOptions)

type ListBackupPoliciesOptions

type ListBackupPoliciesOptions struct {
	Queries []string
	// contains filtered or unexported fields
}

func (ListBackupPoliciesOptions) New

type ListBackupsOption

type ListBackupsOption func(*ListBackupsOptions)

type ListBackupsOptions

type ListBackupsOptions struct {
	Queries []string
	// contains filtered or unexported fields
}

func (ListBackupsOptions) New

func (options ListBackupsOptions) New() *ListBackupsOptions

type ListOperationsOption

type ListOperationsOption func(*ListOperationsOptions)

type ListOperationsOptions

type ListOperationsOptions struct {
	Status string
	Limit  int
	Offset int
	// contains filtered or unexported fields
}

func (ListOperationsOptions) New

type ListOption

type ListOption func(*ListOptions)

type ListOptions

type ListOptions struct {
	Queries []string
	// contains filtered or unexported fields
}

func (ListOptions) New

func (options ListOptions) New() *ListOptions

type ListRestorationsOption

type ListRestorationsOption func(*ListRestorationsOptions)

type ListRestorationsOptions

type ListRestorationsOptions struct {
	Status string
	Type   string
	Limit  int
	Offset int
	// contains filtered or unexported fields
}

func (ListRestorationsOptions) New

type Mysql

type Mysql struct {
	// contains filtered or unexported fields
}

Mysql service

func New

func New(clt client.Client) *Mysql

func (*Mysql) Create

func (srv *Mysql) Create(DatabaseId string, Name string, optionalSetters ...CreateOption) (*models.DedicatedDatabase, error)

Create create a new dedicated database with the chosen engine and configuration. Status will be 'provisioning' until the database is ready.

func (*Mysql) CreateBackup

func (srv *Mysql) CreateBackup(DatabaseId string, optionalSetters ...CreateBackupOption) (*models.DedicatedDatabaseBackup, error)

CreateBackup create a manual backup of a dedicated database. The backup will be created asynchronously and its status can be checked via the get backup endpoint.

func (*Mysql) CreateBackupPolicy

func (srv *Mysql) CreateBackupPolicy(DatabaseId string, PolicyId string, Name string, Schedule string, Retention int, optionalSetters ...CreateBackupPolicyOption) (*models.BackupPolicy, error)

CreateBackupPolicy create a scheduled backup policy for a dedicated database.

func (*Mysql) CreateBranch

func (srv *Mysql) CreateBranch(DatabaseId string, optionalSetters ...CreateBranchOption) (*models.DedicatedDatabase, error)

CreateBranch create an ephemeral database branch from the primary via PVC snapshot. The branch is a full copy of the database at the current point in time, useful for testing schema migrations or running experiments without affecting production data. Branches expire after the configured TTL (default 24 hours). The branch is created asynchronously.

func (*Mysql) CreateExecution

func (srv *Mysql) CreateExecution(DatabaseId string, Sql string, optionalSetters ...CreateExecutionOption) (*models.DedicatedDatabaseExecution, error)

CreateExecution execute SQL through the console-facing Cloud endpoint. Cloud proxies through the edge platform to the per-database SQL API sidecar. Application traffic should bypass cloud entirely and POST directly to the per-database hostname: `https://db-{project}-{db}.{region}.appwrite.center/v1/sql/executions` with an `X-Appwrite-Key` header — that path scales to the whole DB fleet without a per-query cloud round-trip. The statement type must be on the database's configured allow-list. Use bound parameters for any user-supplied values — the API does not interpolate raw strings.

func (*Mysql) CreateFailover

func (srv *Mysql) CreateFailover(DatabaseId string, optionalSetters ...CreateFailoverOption) (*models.DedicatedDatabase, error)

CreateFailover trigger a manual failover for a dedicated database with high availability enabled. Promotes a replica to primary. The failover runs asynchronously; poll the database document for status updates. A database left mid-operation also accepts this call as a repair once nothing is driving the operation it is stuck in. Repairing a failover that did not finish, a `failed` database, a stranded upgrade or migrate, or a stranded compute resize additionally requires `targetReplicaId` to name the member to promote, because the default target may be the member that operation already promoted.

func (*Mysql) CreateMigration

func (srv *Mysql) CreateMigration(DatabaseId string, TargetType string, optionalSetters ...CreateMigrationOption) (*models.DedicatedDatabase, error)

CreateMigration migrate a database between shared and dedicated types. Shared to dedicated provisions an always-on dedicated instance; dedicated to shared converts to a serverless instance that scales to zero when idle. Data is copied to the target with a brief read-only window during cutover.

func (*Mysql) CreateRestoration

func (srv *Mysql) CreateRestoration(DatabaseId string, optionalSetters ...CreateRestorationOption) (*models.DedicatedDatabaseRestoration, error)

CreateRestoration restore a database from a backup or to a specific point in time (PITR). For backup restoration, provide a backupId. For PITR, provide a targetTime as an ISO 8601 datetime. PITR requires the database to have PITR enabled and is only available for enterprise databases.

func (*Mysql) CreateUpgrade

func (srv *Mysql) CreateUpgrade(DatabaseId string, TargetVersion string) (*models.DedicatedDatabase, error)

CreateUpgrade upgrade a dedicated database to a new engine version. Uses blue-green deployment for zero-downtime cutover.

func (*Mysql) Delete

func (srv *Mysql) Delete(DatabaseId string) (*interface{}, error)

Delete delete a dedicated database. This action is irreversible. The database status will be set to 'deleting' and all resources will be cleaned up. Deletion is allowed from any state, and repeating the call re-dispatches the cleanup.

func (*Mysql) DeleteBackup

func (srv *Mysql) DeleteBackup(DatabaseId string, BackupId string) (*interface{}, error)

DeleteBackup delete a database backup. This will permanently remove the backup from storage and cannot be undone.

func (*Mysql) DeleteBackupPolicy

func (srv *Mysql) DeleteBackupPolicy(DatabaseId string, PolicyId string) (*interface{}, error)

DeleteBackupPolicy delete a scheduled backup policy for a dedicated database. Backups already taken by the policy are kept until their retention expires.

func (*Mysql) DeleteBranch

func (srv *Mysql) DeleteBranch(DatabaseId string, BranchId string) (*models.DedicatedDatabase, error)

DeleteBranch delete an ephemeral database branch. This removes the branch namespace, its PVC, and the associated VolumeSnapshot. The deletion runs asynchronously and is irreversible.

func (*Mysql) Get

func (srv *Mysql) Get(DatabaseId string) (*models.DedicatedDatabase, error)

Get get a dedicated database by its unique ID. Returns the database configuration and current status.

func (*Mysql) GetBackup

func (srv *Mysql) GetBackup(DatabaseId string, BackupId string) (*models.DedicatedDatabaseBackup, error)

GetBackup get details of a specific database backup including its status, size, and timestamps.

func (*Mysql) GetBackupPolicy

func (srv *Mysql) GetBackupPolicy(DatabaseId string, PolicyId string) (*models.BackupPolicy, error)

GetBackupPolicy get a scheduled backup policy for a dedicated database.

func (*Mysql) GetPitr

func (srv *Mysql) GetPitr(DatabaseId string) (*models.DedicatedDatabasePITRWindows, error)

GetPitr get available point-in-time recovery windows for a dedicated database. Returns the earliest and latest recovery points.

func (*Mysql) GetPooler

func (srv *Mysql) GetPooler(DatabaseId string) (*models.DedicatedDatabasePooler, error)

GetPooler get the connection pooler configuration for a dedicated database. Returns pooler mode, max connections, and pool size settings.

func (*Mysql) GetReplicas

func (srv *Mysql) GetReplicas(DatabaseId string) (*models.DedicatedDatabaseReplicas, error)

GetReplicas get high availability status for a dedicated database. Returns replica statuses, replication lag, and sync mode.

func (*Mysql) GetRestoration

func (srv *Mysql) GetRestoration(DatabaseId string, RestorationId string) (*models.DedicatedDatabaseRestoration, error)

GetRestoration get details of a specific database restoration including its status, type, and timestamps.

func (*Mysql) GetStatus

func (srv *Mysql) GetStatus(DatabaseId string) (*models.DatabaseStatus, error)

GetStatus get real-time health and status information for a dedicated database. Returns health status, readiness, uptime, connection info, replica status, and volume information.

func (*Mysql) List

func (srv *Mysql) List(optionalSetters ...ListOption) (*models.DedicatedDatabaseList, error)

List list all dedicated databases. Results support pagination.

func (*Mysql) ListBackupPolicies

func (srv *Mysql) ListBackupPolicies(DatabaseId string, optionalSetters ...ListBackupPoliciesOption) (*models.BackupPolicyList, error)

ListBackupPolicies list scheduled backup policies for a dedicated database.

func (*Mysql) ListBackups

func (srv *Mysql) ListBackups(DatabaseId string, optionalSetters ...ListBackupsOption) (*models.DedicatedDatabaseBackupList, error)

ListBackups list all backups for a dedicated database. Results can be filtered by status and type.

func (*Mysql) ListBranches

func (srv *Mysql) ListBranches(DatabaseId string) (*models.DedicatedDatabaseBranchList, error)

ListBranches list all ephemeral branches for a dedicated database. Returns branch metadata including ID, name, namespace, and expiration time.

func (*Mysql) ListOperations

func (srv *Mysql) ListOperations(DatabaseId string, optionalSetters ...ListOperationsOption) (*models.DedicatedDatabaseOperationList, error)

ListOperations list the lifecycle operations recorded for a dedicated database, newest first. Every provision, update, restore, backup and replication action is recorded here with its outcome, including an attempt that was abandoned because another worker took over the database.

func (*Mysql) ListRestorations

func (srv *Mysql) ListRestorations(DatabaseId string, optionalSetters ...ListRestorationsOption) (*models.DedicatedDatabaseRestorationList, error)

ListRestorations list all restorations for a dedicated database. Results can be filtered by status and type.

func (*Mysql) ListSpecifications

func (srv *Mysql) ListSpecifications() (*models.DedicatedDatabaseSpecificationList, error)

ListSpecifications list the dedicated database specifications available on the current plan. Each specification reports its resource limits, pricing, and whether it is enabled for the organization.

func (*Mysql) Update

func (srv *Mysql) Update(DatabaseId string, optionalSetters ...UpdateOption) (*models.DedicatedDatabase, error)

Update update a dedicated database configuration. All changes are applied with zero downtime. Specification changes (cpu, memory, storage) are handled via rolling cutover. Storage expansion is done online. All other settings are applied in-place.

func (*Mysql) UpdateBackupPolicy

func (srv *Mysql) UpdateBackupPolicy(DatabaseId string, PolicyId string, optionalSetters ...UpdateBackupPolicyOption) (*models.BackupPolicy, error)

UpdateBackupPolicy update a scheduled backup policy for a dedicated database.

func (*Mysql) UpdateBackupStorage

func (srv *Mysql) UpdateBackupStorage(DatabaseId string, Provider string, Bucket string, AccessKey string, SecretKey string, optionalSetters ...UpdateBackupStorageOption) (*models.DedicatedDatabaseBackupStorage, error)

UpdateBackupStorage configure off-cluster backup storage for a dedicated database. Supports S3, GCS, and Azure Blob Storage destinations. Backups will be stored to the configured destination in addition to on-cluster storage.

func (*Mysql) UpdateCredentials

func (srv *Mysql) UpdateCredentials(DatabaseId string) (*models.DedicatedDatabaseOperation, error)

UpdateCredentials queue a rotation of the primary connection credentials for a dedicated database. A hibernated database is woken by the worker before rotation. List database operations until the returned operation reaches a terminal status, then fetch the database again for the refreshed connection string.

func (*Mysql) UpdateMaintenance

func (srv *Mysql) UpdateMaintenance(DatabaseId string, Day string, HourUtc int) (*models.DedicatedDatabase, error)

UpdateMaintenance update the maintenance window for a dedicated database. Maintenance operations like minor version upgrades will be performed during this window.

func (*Mysql) UpdatePooler

func (srv *Mysql) UpdatePooler(DatabaseId string, optionalSetters ...UpdatePoolerOption) (*models.DedicatedDatabasePooler, error)

UpdatePooler update the connection pooler configuration for a dedicated database. Configure pool mode, max connections, and pool sizes.

func (*Mysql) WithCreateBackupPolicyEnabled

func (srv *Mysql) WithCreateBackupPolicyEnabled(v bool) CreateBackupPolicyOption

func (*Mysql) WithCreateBackupPolicyType

func (srv *Mysql) WithCreateBackupPolicyType(v string) CreateBackupPolicyOption

func (*Mysql) WithCreateBackupType

func (srv *Mysql) WithCreateBackupType(v string) CreateBackupOption

func (*Mysql) WithCreateBranchBranchId

func (srv *Mysql) WithCreateBranchBranchId(v string) CreateBranchOption

func (*Mysql) WithCreateBranchTtl

func (srv *Mysql) WithCreateBranchTtl(v int) CreateBranchOption

func (*Mysql) WithCreateExecutionBindings

func (srv *Mysql) WithCreateExecutionBindings(v interface{}) CreateExecutionOption

func (*Mysql) WithCreateExecutionTimeoutSeconds

func (srv *Mysql) WithCreateExecutionTimeoutSeconds(v int) CreateExecutionOption

func (*Mysql) WithCreateFailoverTargetReplicaId

func (srv *Mysql) WithCreateFailoverTargetReplicaId(v string) CreateFailoverOption

func (*Mysql) WithCreateIdleTimeoutMinutes

func (srv *Mysql) WithCreateIdleTimeoutMinutes(v int) CreateOption

func (*Mysql) WithCreateMigrationSpecification

func (srv *Mysql) WithCreateMigrationSpecification(v string) CreateMigrationOption

func (*Mysql) WithCreateNetworkIPAllowlist

func (srv *Mysql) WithCreateNetworkIPAllowlist(v []string) CreateOption

func (*Mysql) WithCreateNetworkIdleTimeoutSeconds

func (srv *Mysql) WithCreateNetworkIdleTimeoutSeconds(v int) CreateOption

func (*Mysql) WithCreatePitr

func (srv *Mysql) WithCreatePitr(v bool) CreateOption

func (*Mysql) WithCreatePitrRetentionDays

func (srv *Mysql) WithCreatePitrRetentionDays(v int) CreateOption

func (*Mysql) WithCreateReplicas

func (srv *Mysql) WithCreateReplicas(v int) CreateOption

func (*Mysql) WithCreateRestorationBackupId

func (srv *Mysql) WithCreateRestorationBackupId(v string) CreateRestorationOption

func (*Mysql) WithCreateRestorationTargetDatabaseId

func (srv *Mysql) WithCreateRestorationTargetDatabaseId(v string) CreateRestorationOption

func (*Mysql) WithCreateRestorationTargetTime

func (srv *Mysql) WithCreateRestorationTargetTime(v string) CreateRestorationOption

func (*Mysql) WithCreateRestorationType

func (srv *Mysql) WithCreateRestorationType(v string) CreateRestorationOption

func (*Mysql) WithCreateSpecification

func (srv *Mysql) WithCreateSpecification(v string) CreateOption

func (*Mysql) WithCreateStorageAutoscaling

func (srv *Mysql) WithCreateStorageAutoscaling(v bool) CreateOption

func (*Mysql) WithCreateStorageAutoscalingMaxGb

func (srv *Mysql) WithCreateStorageAutoscalingMaxGb(v int) CreateOption

func (*Mysql) WithCreateStorageAutoscalingThresholdPercent

func (srv *Mysql) WithCreateStorageAutoscalingThresholdPercent(v int) CreateOption

func (*Mysql) WithCreateSyncMode

func (srv *Mysql) WithCreateSyncMode(v string) CreateOption

func (*Mysql) WithCreateVersion

func (srv *Mysql) WithCreateVersion(v string) CreateOption

func (*Mysql) WithListBackupPoliciesQueries

func (srv *Mysql) WithListBackupPoliciesQueries(v []string) ListBackupPoliciesOption

func (*Mysql) WithListBackupsQueries

func (srv *Mysql) WithListBackupsQueries(v []string) ListBackupsOption

func (*Mysql) WithListOperationsLimit

func (srv *Mysql) WithListOperationsLimit(v int) ListOperationsOption

func (*Mysql) WithListOperationsOffset

func (srv *Mysql) WithListOperationsOffset(v int) ListOperationsOption

func (*Mysql) WithListOperationsStatus

func (srv *Mysql) WithListOperationsStatus(v string) ListOperationsOption

func (*Mysql) WithListQueries

func (srv *Mysql) WithListQueries(v []string) ListOption

func (*Mysql) WithListRestorationsLimit

func (srv *Mysql) WithListRestorationsLimit(v int) ListRestorationsOption

func (*Mysql) WithListRestorationsOffset

func (srv *Mysql) WithListRestorationsOffset(v int) ListRestorationsOption

func (*Mysql) WithListRestorationsStatus

func (srv *Mysql) WithListRestorationsStatus(v string) ListRestorationsOption

func (*Mysql) WithListRestorationsType

func (srv *Mysql) WithListRestorationsType(v string) ListRestorationsOption

func (*Mysql) WithUpdateBackupPolicyEnabled

func (srv *Mysql) WithUpdateBackupPolicyEnabled(v bool) UpdateBackupPolicyOption

func (*Mysql) WithUpdateBackupPolicyName

func (srv *Mysql) WithUpdateBackupPolicyName(v string) UpdateBackupPolicyOption

func (*Mysql) WithUpdateBackupPolicyRetention

func (srv *Mysql) WithUpdateBackupPolicyRetention(v int) UpdateBackupPolicyOption

func (*Mysql) WithUpdateBackupPolicySchedule

func (srv *Mysql) WithUpdateBackupPolicySchedule(v string) UpdateBackupPolicyOption

func (*Mysql) WithUpdateBackupStorageEndpoint

func (srv *Mysql) WithUpdateBackupStorageEndpoint(v string) UpdateBackupStorageOption

func (*Mysql) WithUpdateBackupStoragePrefix

func (srv *Mysql) WithUpdateBackupStoragePrefix(v string) UpdateBackupStorageOption

func (*Mysql) WithUpdateBackupStorageRegion

func (srv *Mysql) WithUpdateBackupStorageRegion(v string) UpdateBackupStorageOption

func (*Mysql) WithUpdateIdleTimeoutMinutes

func (srv *Mysql) WithUpdateIdleTimeoutMinutes(v int) UpdateOption

func (*Mysql) WithUpdateMetricsSlowQueryLogThresholdMs

func (srv *Mysql) WithUpdateMetricsSlowQueryLogThresholdMs(v int) UpdateOption

func (*Mysql) WithUpdateMetricsTraceSampleRate

func (srv *Mysql) WithUpdateMetricsTraceSampleRate(v float64) UpdateOption

func (*Mysql) WithUpdateName

func (srv *Mysql) WithUpdateName(v string) UpdateOption

func (*Mysql) WithUpdateNetworkIPAllowlist

func (srv *Mysql) WithUpdateNetworkIPAllowlist(v []string) UpdateOption

func (*Mysql) WithUpdateNetworkIdleTimeoutSeconds

func (srv *Mysql) WithUpdateNetworkIdleTimeoutSeconds(v int) UpdateOption

func (*Mysql) WithUpdatePitr

func (srv *Mysql) WithUpdatePitr(v bool) UpdateOption

func (*Mysql) WithUpdatePitrRetentionDays

func (srv *Mysql) WithUpdatePitrRetentionDays(v int) UpdateOption

func (*Mysql) WithUpdatePoolerDefaultPoolSize

func (srv *Mysql) WithUpdatePoolerDefaultPoolSize(v int) UpdatePoolerOption

func (*Mysql) WithUpdatePoolerMaxConnections

func (srv *Mysql) WithUpdatePoolerMaxConnections(v int) UpdatePoolerOption

func (*Mysql) WithUpdatePoolerMode

func (srv *Mysql) WithUpdatePoolerMode(v string) UpdatePoolerOption

func (*Mysql) WithUpdatePoolerPoolerCpuLimit

func (srv *Mysql) WithUpdatePoolerPoolerCpuLimit(v string) UpdatePoolerOption

func (*Mysql) WithUpdatePoolerPoolerCpuRequest

func (srv *Mysql) WithUpdatePoolerPoolerCpuRequest(v string) UpdatePoolerOption

func (*Mysql) WithUpdatePoolerPoolerMemoryLimit

func (srv *Mysql) WithUpdatePoolerPoolerMemoryLimit(v string) UpdatePoolerOption

func (*Mysql) WithUpdatePoolerPoolerMemoryRequest

func (srv *Mysql) WithUpdatePoolerPoolerMemoryRequest(v string) UpdatePoolerOption

func (*Mysql) WithUpdatePoolerReadWriteSplitting

func (srv *Mysql) WithUpdatePoolerReadWriteSplitting(v bool) UpdatePoolerOption

func (*Mysql) WithUpdateReplicas

func (srv *Mysql) WithUpdateReplicas(v int) UpdateOption

func (*Mysql) WithUpdateSpecification

func (srv *Mysql) WithUpdateSpecification(v string) UpdateOption

func (*Mysql) WithUpdateSqlApiAllowedStatements

func (srv *Mysql) WithUpdateSqlApiAllowedStatements(v []string) UpdateOption

func (*Mysql) WithUpdateSqlApiEnabled

func (srv *Mysql) WithUpdateSqlApiEnabled(v bool) UpdateOption

func (*Mysql) WithUpdateSqlApiMaxBytes

func (srv *Mysql) WithUpdateSqlApiMaxBytes(v int) UpdateOption

func (*Mysql) WithUpdateSqlApiMaxRows

func (srv *Mysql) WithUpdateSqlApiMaxRows(v int) UpdateOption

func (*Mysql) WithUpdateSqlApiTimeoutSeconds

func (srv *Mysql) WithUpdateSqlApiTimeoutSeconds(v int) UpdateOption

func (*Mysql) WithUpdateStatus

func (srv *Mysql) WithUpdateStatus(v string) UpdateOption

func (*Mysql) WithUpdateStorageAutoscaling

func (srv *Mysql) WithUpdateStorageAutoscaling(v bool) UpdateOption

func (*Mysql) WithUpdateStorageAutoscalingMaxGb

func (srv *Mysql) WithUpdateStorageAutoscalingMaxGb(v int) UpdateOption

func (*Mysql) WithUpdateStorageAutoscalingThresholdPercent

func (srv *Mysql) WithUpdateStorageAutoscalingThresholdPercent(v int) UpdateOption

func (*Mysql) WithUpdateSyncMode

func (srv *Mysql) WithUpdateSyncMode(v string) UpdateOption

type UpdateBackupPolicyOption

type UpdateBackupPolicyOption func(*UpdateBackupPolicyOptions)

type UpdateBackupPolicyOptions

type UpdateBackupPolicyOptions struct {
	Name      string
	Schedule  string
	Retention int
	Enabled   bool
	// contains filtered or unexported fields
}

func (UpdateBackupPolicyOptions) New

type UpdateBackupStorageOption

type UpdateBackupStorageOption func(*UpdateBackupStorageOptions)

type UpdateBackupStorageOptions

type UpdateBackupStorageOptions struct {
	Region   string
	Prefix   string
	Endpoint string
	// contains filtered or unexported fields
}

func (UpdateBackupStorageOptions) New

type UpdateOption

type UpdateOption func(*UpdateOptions)

type UpdateOptions

type UpdateOptions struct {
	Name                               string
	Status                             string
	Specification                      string
	Replicas                           int
	SyncMode                           string
	NetworkIdleTimeoutSeconds          int
	NetworkIPAllowlist                 []string
	IdleTimeoutMinutes                 int
	Pitr                               bool
	PitrRetentionDays                  int
	StorageAutoscaling                 bool
	StorageAutoscalingThresholdPercent int
	StorageAutoscalingMaxGb            int
	MetricsTraceSampleRate             float64
	MetricsSlowQueryLogThresholdMs     int
	SqlApiEnabled                      bool
	SqlApiAllowedStatements            []string
	SqlApiMaxRows                      int
	SqlApiMaxBytes                     int
	SqlApiTimeoutSeconds               int
	// contains filtered or unexported fields
}

func (UpdateOptions) New

func (options UpdateOptions) New() *UpdateOptions

type UpdatePoolerOption

type UpdatePoolerOption func(*UpdatePoolerOptions)

type UpdatePoolerOptions

type UpdatePoolerOptions struct {
	Mode                string
	MaxConnections      int
	DefaultPoolSize     int
	ReadWriteSplitting  bool
	PoolerCpuRequest    string
	PoolerCpuLimit      string
	PoolerMemoryRequest string
	PoolerMemoryLimit   string
	// contains filtered or unexported fields
}

func (UpdatePoolerOptions) New

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL