pub struct Extension {
pub description: Option<Option<String>>,
pub locations: Vec<ExtensionInstallLocation>,
pub name: String,
}Expand description
Extension : Extension lets you define a list of extensions to enable on the instance. To enable extensions, you must specify the name of the extension and the database, schema, and version to enable it on. If the version is not specified, the latest version will be used. The extension must also be installed on the instance. To install extensions, please refer to the TrunkInstall resource. This example will enable the pg_stat_statements extension on the Postgres database in the public schema. ```yaml apiVersion: coredb.io/v1alpha1 kind: CoreDB metadata: name: test-db spec: extensions: - name: pg_stat_statements locations: - database: postgres enabled: true schema: public version: 1.10.0 ````
Fields§
§description: Option<Option<String>>A description of the extension. (Optional) Default: "No description provided"
locations: Vec<ExtensionInstallLocation>A list of locations (databases) to enabled the extension on.
name: StringThe name of the extension to enable.
Implementations§
Source§impl Extension
impl Extension
Sourcepub fn new(locations: Vec<ExtensionInstallLocation>, name: String) -> Extension
pub fn new(locations: Vec<ExtensionInstallLocation>, name: String) -> Extension
Extension lets you define a list of extensions to enable on the instance. To enable extensions, you must specify the name of the extension and the database, schema, and version to enable it on. If the version is not specified, the latest version will be used. The extension must also be installed on the instance. To install extensions, please refer to the TrunkInstall resource. This example will enable the pg_stat_statements extension on the Postgres database in the public schema. ```yaml apiVersion: coredb.io/v1alpha1 kind: CoreDB metadata: name: test-db spec: extensions: - name: pg_stat_statements locations: - database: postgres enabled: true schema: public version: 1.10.0 ````