Struct indradb_postgres::PostgresDatastore[][src]

pub struct PostgresDatastore { /* fields omitted */ }

A datastore that is backed by a postgres database.

Methods

impl PostgresDatastore
[src]

Creates a new postgres-backed datastore.

Arguments

  • pool_size - The maximum number of connections to maintain to postgres. If None, it defaults to twice the number of CPUs.
  • connetion_string - The postgres database connection string.

Creates a new postgres-backed datastore.

Arguments

  • connection_string - The postgres database connection string.

Trait Implementations

impl Clone for PostgresDatastore
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PostgresDatastore
[src]

Formats the value using the given formatter. Read more

impl Datastore<PostgresTransaction> for PostgresDatastore
[src]

Creates a new transaction.

Auto Trait Implementations