parrot/config

Types

pub type Config {
  Config(
    json_file_path: String,
    gleam_module_out_path: String,
    driver: Option(Driver),
  )
}

Constructors

  • Config(
      json_file_path: String,
      gleam_module_out_path: String,
      driver: Option(Driver),
    )

    json_file_path: relative to project root directory gleam_module_out_path: relative to project src directory driver: support for existing database libraries (mysql, postgresql, sqlite)

pub type Driver {
  LpilSqlight
  LpilPog
  Gmysql
}

Constructors

  • LpilSqlight

    https://github.com/lpil/sqlight

  • LpilPog

    https://github.com/lpil/pog

  • Gmysql

    https://github.com/VioletBuse/gmysql

Functions

pub fn get_json_file(config: Config) -> Result(String, FileError)
pub fn get_module_directory(config: Config) -> String
pub fn get_module_path(config: Config) -> String
Search Document