scalingo_addonscalingo_alertscalingo_appscalingo_app_eventscalingo_autoscalerscalingo_collaboratorscalingo_containerscalingo_container_typescalingo_cronscalingo_databasescalingo_database_backupscalingo_database_maintenancescalingo_database_type_versionscalingo_database_userscalingo_deploymentscalingo_domainscalingo_environmentscalingo_event_typescalingo_invoicescalingo_keyscalingo_log_drainscalingo_log_drain_addonscalingo_notification_platformscalingo_notifierscalingo_regionscalingo_scm_integrationscalingo_scm_repo_linkscalingo_stackscalingo_tokenscalingo_user_eventscalingo_user_scm_repo_link
Table: scalingo_database
List databases associated to an app.
The scalingo_database
table can be used to query information about a addon database, and you must specify which application in the where or join clause using the app_name
column and the addon_id
.
Examples
Get Database info
select *from scalingo_databasewhere app_name = 'caresteouvert-api' and addon_id = 'ad-0c33a92f-000-000-000-0000000';
List database from all addons of an application
select db.app_name, db.status, db.encryption_at_restfrom scalingo_addon ad inner join scalingo_database db on ad.id = db.addon_id and ad.app_name = db.app_namewhere ad.app_name = 'caresteouvert-api';
Schema for scalingo_database
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
addon_id | text | = | ID of the addon. |
app_name | text | = | Name of the app. |
created_at | timestamp with time zone | Creation date of the database. | |
encryption_at_rest | boolean | Is encryption at rest enabled on this database. | |
force_ssl | boolean | Is SSL encryption is required. | |
id | text | Unique ID identifying the database. | |
instances | text | List of all database instances | |
maintenance_window_duration_in_hour | bigint | Duration in hour of the maintenance window. | |
maintenance_window_starting_hour_utc | bigint | Hour of the maintenance window. | |
maintenance_window_weekday_utc | bigint | Week day of the maintenance window. | |
periodic_backups_enabled | boolean | True if periodic backups are enabled. | |
periodic_backups_scheduled_at | text | Hours of the day of the periodic backup (UTC). | |
plan | text | Name of the application plan. | |
publicly_available | boolean | Is the instance publicly available. | |
readable_version | text | Human readable database version | |
resource_id | text | Resource reference. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
status | text | Status of the current database. | |
type_id | text | Database type ID. | |
type_name | text | Database type Name. | |
version_id | text | Database version ID. |