pub struct GeyserPluginPostgresConfig {Show 14 fields
pub host: Option<String>,
pub user: Option<String>,
pub port: Option<u16>,
pub connection_str: Option<String>,
pub threads: Option<usize>,
pub batch_size: Option<usize>,
pub panic_on_db_errors: Option<bool>,
pub store_account_historical_data: Option<bool>,
pub use_ssl: Option<bool>,
pub server_ca: Option<String>,
pub client_cert: Option<String>,
pub client_key: Option<String>,
pub index_token_owner: Option<bool>,
pub index_token_mint: Option<bool>,
}
Expand description
The Configuration for the PostgreSQL plugin
Fields§
§host: Option<String>
The host name or IP of the PostgreSQL server
user: Option<String>
The user name of the PostgreSQL server.
port: Option<u16>
The port number of the PostgreSQL database, the default is 5432
connection_str: Option<String>
The connection string of PostgreSQL database, if this is set
host
, user
and port
will be ignored.
threads: Option<usize>
Controls the number of threads establishing connections to the PostgreSQL server. The default is 10.
batch_size: Option<usize>
Controls the batch size when bulk loading accounts. The default is 10.
panic_on_db_errors: Option<bool>
Controls whether to panic the validator in case of errors writing to PostgreSQL server. The default is false
store_account_historical_data: Option<bool>
Indicates whether to store historical data for accounts
use_ssl: Option<bool>
Controls whether to use SSL based connection to the database server. The default is false
server_ca: Option<String>
Specify the path to PostgreSQL server’s certificate file
client_cert: Option<String>
Specify the path to the local client’s certificate file
client_key: Option<String>
Specify the path to the local client’s private PEM key file.
index_token_owner: Option<bool>
Controls whether to index the token owners. The default is false
index_token_mint: Option<bool>
Controls whetherf to index the token mints. The default is false
Trait Implementations§
Source§impl Clone for GeyserPluginPostgresConfig
impl Clone for GeyserPluginPostgresConfig
Source§fn clone(&self) -> GeyserPluginPostgresConfig
fn clone(&self) -> GeyserPluginPostgresConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GeyserPluginPostgresConfig
impl Debug for GeyserPluginPostgresConfig
Source§impl<'de> Deserialize<'de> for GeyserPluginPostgresConfig
impl<'de> Deserialize<'de> for GeyserPluginPostgresConfig
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>,
impl StructuralPartialEq for GeyserPluginPostgresConfig
Auto Trait Implementations§
impl Freeze for GeyserPluginPostgresConfig
impl RefUnwindSafe for GeyserPluginPostgresConfig
impl Send for GeyserPluginPostgresConfig
impl Sync for GeyserPluginPostgresConfig
impl Unpin for GeyserPluginPostgresConfig
impl UnwindSafe for GeyserPluginPostgresConfig
Blanket Implementations§
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more