Struct migrant_lib::Config [] [src]

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

Project configuration/settings

Fields

Methods

impl Config
[src]

[src]

[src]

Migrations are explicitly defined

[src]

Do a full reload of the configuration file, keeping track of manually specified migrations

[src]

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

[src]

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

[src]

Start a config initializer in the given directory

[src]

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

[src]

Return the absolute path to the directory containing migration folders

[src]

Return the database type

[src]

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

[src]

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

Trait Implementations

impl Debug for Config
[src]

[src]

Formats the value using the given formatter.

impl Clone for Config
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more