Type Definition rucash::mysql::MySQLBook[][src]

type MySQLBook = Book<Pool<MySql>>;

Trait Implementations

impl BookT for MySQLBook[src]

fn new(uri: &str) -> Result<Self, Box<dyn Error>>[src]

Options and flags which can be used to configure a MySQL connection. Described by MySQL.

The generic format of the connection URL:

mysql://[host][/database][?properties]

Properties

ParameterDefaultDescription
ssl-modePREFERREDDetermines whether or with what priority a secure SSL TCP/IP connection will be negotiated.
ssl-caNoneSets the name of a file containing a list of trusted SSL Certificate Authorities.
statement-cache-capacity100The maximum number of prepared statements stored in the cache. Set to 0 to disable.
socketNonePath to the unix domain socket, which will be used instead of TCP if set.
mysql://root:password@localhost/db

type DB = Pool<MySql>

fn accounts(&self) -> Result<Vec<Account>, Box<dyn Error>>[src]

fn accounts_contains_name(
    &self,
    name: &str
) -> Result<Vec<Account>, Box<dyn Error>>
[src]

fn splits(&self) -> Result<Vec<Split>, Box<dyn Error>>[src]

fn transactions(&self) -> Result<Vec<Transaction>, Box<dyn Error>>[src]

fn prices(&self) -> Result<Vec<Price>, Box<dyn Error>>[src]

fn currencies(&self) -> Result<Vec<Commodity>, Box<dyn Error>>[src]

fn commodities(&self) -> Result<Vec<Commodity>, Box<dyn Error>>[src]

fn account_by_name(
    &self,
    name: &str
) -> Result<Option<Item<_Account, Self::DB>>, Box<dyn Error>>
[src]