Fly4s

object Fly4s extends AllCoreInstances
Companion
class
trait AllCoreInstances
class Object
trait Matchable
class Any

Value members

Concrete methods

def make[F[_] : Async](url: String, user: Option[String], password: Option[Array[Char]], config: Fly4sConfig, classLoader: ClassLoader): Resource[F, Fly4s[F]]

Creates a Resource to properly handle the connection with the datasource Create a new javax.sql using fly4s DriverDataSource with the specified parameters.

Creates a Resource to properly handle the connection with the datasource Create a new javax.sql using fly4s DriverDataSource with the specified parameters.

Type Params
F

Async effect type

Value Params
classLoader

The ClassLoader to use for loading migrations, resolvers, etc from the classpath. (default: Thread.currentThread().getContextClassLoader())

password

The password of the database.

url

The JDBC URL of the database.

user

The user of the database.

Returns

A resource that, once used, safely close the datasource

def makeFor[F[_] : Async](acquireDataSource: F[DataSource], config: Fly4sConfig, classLoader: ClassLoader): Resource[F, Fly4s[F]]

Creates a new Fly4s Resource to properly handle the connection with the datasource. Sets the datasource to use. Must have the necessary privileges to execute DDL.

Creates a new Fly4s Resource to properly handle the connection with the datasource. Sets the datasource to use. Must have the necessary privileges to execute DDL.

Type Params
F

Async effect type

Value Params
acquireDataSource

The datasource to use. Must have the necessary privileges to execute DDL.

Returns

A resource that, once used, safely close the datasource

Implicits

Inherited implicits

implicit
def showInstanceForValidateOutputList(implicit S: Show[ValidateOutput]): Show[Iterable[ValidateOutput]]