pub struct PostgresWriterConfig {
pub max_buffer_size_bytes: u64,
pub max_records_in_buffer: Option<u64>,
pub ssl_ca_pem: Option<String>,
pub ssl_client_key: Option<String>,
pub ssl_client_pem: Option<String>,
pub table: String,
pub uri: String,
pub verify_hostname: Option<bool>,
}Expand description
Postgres output connector configuration.
JSON schema
{
"description": "Postgres output connector configuration.",
"type": "object",
"required": [
"table",
"uri"
],
"properties": {
"max_buffer_size_bytes": {
"description": "The maximum buffer size in for a single operation.\nNote that the buffers of `INSERT`, `UPDATE` and `DELETE` queries are\nseparate.\nDefault: 1 MiB",
"default": 1048576,
"type": "integer",
"minimum": 0.0
},
"max_records_in_buffer": {
"description": "The maximum number of records in a single buffer.",
"type": [
"integer",
"null"
],
"minimum": 0.0
},
"ssl_ca_pem": {
"description": "The CA certificate in PEM format.",
"type": [
"string",
"null"
]
},
"ssl_client_key": {
"description": "The client certificate key in PEM format.",
"type": [
"string",
"null"
]
},
"ssl_client_pem": {
"description": "The client certificate in PEM format.",
"type": [
"string",
"null"
]
},
"table": {
"description": "The table to write the output to.",
"type": "string"
},
"uri": {
"description": "Postgres URI.\nSee: <https://docs.rs/tokio-postgres/0.7.12/tokio_postgres/config/struct.Config.html>",
"type": "string"
},
"verify_hostname": {
"description": "True to enable hostname verification when using TLS. True by default.",
"type": [
"boolean",
"null"
]
}
}
}Fields§
§max_buffer_size_bytes: u64The maximum buffer size in for a single operation.
Note that the buffers of INSERT, UPDATE and DELETE queries are
separate.
Default: 1 MiB
max_records_in_buffer: Option<u64>The maximum number of records in a single buffer.
ssl_ca_pem: Option<String>The CA certificate in PEM format.
ssl_client_key: Option<String>The client certificate key in PEM format.
ssl_client_pem: Option<String>The client certificate in PEM format.
table: StringThe table to write the output to.
uri: String§verify_hostname: Option<bool>True to enable hostname verification when using TLS. True by default.
Implementations§
Source§impl PostgresWriterConfig
impl PostgresWriterConfig
pub fn builder() -> PostgresWriterConfig
Trait Implementations§
Source§impl Clone for PostgresWriterConfig
impl Clone for PostgresWriterConfig
Source§fn clone(&self) -> PostgresWriterConfig
fn clone(&self) -> PostgresWriterConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostgresWriterConfig
impl Debug for PostgresWriterConfig
Source§impl<'de> Deserialize<'de> for PostgresWriterConfig
impl<'de> Deserialize<'de> for PostgresWriterConfig
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 From<&PostgresWriterConfig> for PostgresWriterConfig
impl From<&PostgresWriterConfig> for PostgresWriterConfig
Source§fn from(value: &PostgresWriterConfig) -> Self
fn from(value: &PostgresWriterConfig) -> Self
Converts to this type from the input type.
Source§impl From<PostgresWriterConfig> for PostgresWriterConfig
impl From<PostgresWriterConfig> for PostgresWriterConfig
Source§fn from(value: PostgresWriterConfig) -> Self
fn from(value: PostgresWriterConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for PostgresWriterConfig
impl Serialize for PostgresWriterConfig
Source§impl TryFrom<PostgresWriterConfig> for PostgresWriterConfig
impl TryFrom<PostgresWriterConfig> for PostgresWriterConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PostgresWriterConfig) -> Result<Self, ConversionError>
fn try_from(value: PostgresWriterConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PostgresWriterConfig
impl RefUnwindSafe for PostgresWriterConfig
impl Send for PostgresWriterConfig
impl Sync for PostgresWriterConfig
impl Unpin for PostgresWriterConfig
impl UnwindSafe for PostgresWriterConfig
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