Struct indradb_postgres::PostgresDatastore [−][src]
pub struct PostgresDatastore { /* fields omitted */ }A datastore that is backed by a postgres database.
Methods
impl PostgresDatastore[src]
impl PostgresDatastorepub fn new(
pool_size: Option<u32>,
connection_string: String
) -> Result<PostgresDatastore>[src]
pub fn new(
pool_size: Option<u32>,
connection_string: String
) -> Result<PostgresDatastore>Creates a new postgres-backed datastore.
Arguments
pool_size- The maximum number of connections to maintain to postgres. IfNone, it defaults to twice the number of CPUs.connetion_string- The postgres database connection string.
pub fn create_schema(connection_string: String) -> Result<()>[src]
pub fn create_schema(connection_string: String) -> Result<()>Creates a new postgres-backed datastore.
Arguments
connection_string- The postgres database connection string.
Trait Implementations
impl Clone for PostgresDatastore[src]
impl Clone for PostgresDatastorefn clone(&self) -> PostgresDatastore[src]
fn clone(&self) -> PostgresDatastoreReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for PostgresDatastore[src]
impl Debug for PostgresDatastorefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Datastore<PostgresTransaction> for PostgresDatastore[src]
impl Datastore<PostgresTransaction> for PostgresDatastorefn transaction(&self) -> Result<PostgresTransaction>[src]
fn transaction(&self) -> Result<PostgresTransaction>Creates a new transaction.
Auto Trait Implementations
impl Send for PostgresDatastore
impl Send for PostgresDatastoreimpl Sync for PostgresDatastore
impl Sync for PostgresDatastore