Type Definition rucash::mysql::MySQLBook [−][src]
type MySQLBook = Book<Pool<MySql>>;
Trait Implementations
impl BookT for MySQLBook
[src]
impl BookT for MySQLBook
[src]fn new(uri: &str) -> Result<Self, Box<dyn Error>>
[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
Parameter | Default | Description |
---|---|---|
ssl-mode | PREFERRED | Determines whether or with what priority a secure SSL TCP/IP connection will be negotiated. |
ssl-ca | None | Sets the name of a file containing a list of trusted SSL Certificate Authorities. |
statement-cache-capacity | 100 | The maximum number of prepared statements stored in the cache. Set to 0 to disable. |
socket | None | Path 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]
&self,
name: &str
) -> Result<Vec<Account>, Box<dyn Error>>
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]
&self,
name: &str
) -> Result<Option<Item<_Account, Self::DB>>, Box<dyn Error>>