Struct indradb_postgres::PostgresDatastore [−][src]
pub struct PostgresDatastore { /* fields omitted */ }
A datastore that is backed by a postgres database.
Methods
impl PostgresDatastore
[src]
impl PostgresDatastore
pub 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 PostgresDatastore
fn clone(&self) -> PostgresDatastore
[src]
fn clone(&self) -> PostgresDatastore
Returns 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 PostgresDatastore
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Datastore<PostgresTransaction> for PostgresDatastore
[src]
impl Datastore<PostgresTransaction> for PostgresDatastore
fn transaction(&self) -> Result<PostgresTransaction>
[src]
fn transaction(&self) -> Result<PostgresTransaction>
Creates a new transaction.
Auto Trait Implementations
impl Send for PostgresDatastore
impl Send for PostgresDatastore
impl Sync for PostgresDatastore
impl Sync for PostgresDatastore