activerecord / kales.migrations / KalesDatabaseConfig

KalesDatabaseConfig

data class KalesDatabaseConfig

Represents a Kales database config as defined in a database.yml file

Constructors

<init>

KalesDatabaseConfig(environment: String, adapter: String, host: String, database: String, username: String, password: String)

Represents a Kales database config as defined in a database.yml file

Properties

adapter

val adapter: String

database

val database: String

environment

val environment: String

host

val host: String

password

val password: String

username

val username: String

Functions

toConnectionString

fun toConnectionString(): String

toString

fun toString(): String

Companion Object Functions

fromDatabaseYml

fun fromDatabaseYml(fileStream: InputStream): KalesDatabaseConfig