Skip to main content

mysql_pitr_restorable_windows

Creates, updates, deletes, gets or lists a mysql_pitr_restorable_windows resource.

Overview​

Namemysql_pitr_restorable_windows
TypeResource
Idrailway.storage.mysql_pitr_restorable_windows

Fields​

The following fields are returned by SELECT queries:

One MysqlPitrRestorableWindow row.

NameDatatypeDescription
archive_configuredboolean
ceiling_atstring
fetched_atstring
floor_atstring
full_backup_countinteger
full_backups_taken_atarray
lineage_countinteger
listing_truncatedboolean

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectenvironment_id, service_idThe point-in-time window a MySQL service's binlog archive can restore to, resolved from the archive bucket: the oldest full backup (floor), the newest shipped binlog (ceiling) and every full backup's timestamp. archiveConfigured is false when the service carries no complete BINLOG_ARCHIVE_* contract. Backed by the Railway GraphQL query mysqlPitrRestorableWindow.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
environment_idstring
service_idstring

SELECT examples​

The point-in-time window a MySQL service's binlog archive can restore to, resolved from the archive bucket: the oldest full backup (floor), the newest shipped binlog (ceiling) and every full backup's timestamp. archiveConfigured is false when the service carries no complete BINLOG_ARCHIVE_* contract. Backed by the Railway GraphQL query mysqlPitrRestorableWindow.

SELECT
archive_configured,
ceiling_at,
fetched_at,
floor_at,
full_backup_count,
full_backups_taken_at,
lineage_count,
listing_truncated
FROM railway.storage.mysql_pitr_restorable_windows
WHERE environment_id = '{{ environment_id }}' -- required
AND service_id = '{{ service_id }}' -- required
;