Struct migrant_lib::Config [] [src]

pub struct Config {
    pub path: PathBuf,
    // some fields omitted
}

Project configuration/settings

Fields

Methods

impl Config
[src]

Do a full reload of the configuration file

Load config file from the given path without querying the database to check for applied migrations

Load config file from the given path and query the database to load up applied migrations

Start a config initializer in the given directory

  • Confirm the database can be accessed
  • Setup the database migrations table if it doesn't exist yet

Return the absolute path to the directory containing migration folders

Return the database type

Return the absolute path to the database file. This is intended for sqlite3 databases only

Generate a database connection string. Not intended for file-based databases (sqlite)

Trait Implementations

impl Debug for Config
[src]

Formats the value using the given formatter.

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more