Struct controller::apis::postgres_parameters::PgConfig
source · pub struct PgConfig {
pub name: String,
pub value: ConfigValue,
}Expand description
PgConfig allows a user to define postgresql configuration settings in the postgres configuration file. This is a subset of the postgresql.conf configuration settings. The full list of settings that we currently DO NOT support can be found here.
Example: The following example shows how to set the max_connections,
shared_buffers and max_wal_size configuration settings.
apiVersion: coredb.io/v1alpha1
kind: CoreDB
metadata:
name: test-db
spec:
runtime_config:
- name: max_connections
value: 100
- name: shared_buffers
value: 2048MB
- name: max_wal_size
value: 2GB
Fields§
§name: StringThe name of the Postgres configuration parameter.
value: ConfigValueImplementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PgConfig
impl<'de> Deserialize<'de> for PgConfig
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for PgConfig
impl JsonSchema for PgConfig
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresource§impl Ord for PgConfig
impl Ord for PgConfig
source§impl PartialEq for PgConfig
impl PartialEq for PgConfig
source§impl PartialOrd for PgConfig
impl PartialOrd for PgConfig
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<'__s> ToSchema<'__s> for PgConfig
impl<'__s> ToSchema<'__s> for PgConfig
impl Eq for PgConfig
impl StructuralPartialEq for PgConfig
Auto Trait Implementations§
impl RefUnwindSafe for PgConfig
impl Send for PgConfig
impl Sync for PgConfig
impl Unpin for PgConfig
impl UnwindSafe for PgConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.