Fly4s

fly4s.Fly4s
See theFly4s companion trait
object Fly4s

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Fly4s.type

Members list

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 parameters

F

Async effect type

Value parameters

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.

Attributes

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 parameters

F

Async effect type

Value parameters

acquireDataSource

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

Attributes

Returns

A resource that, once used, safely close the datasource

Implicits

Inherited implicits

Attributes

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

Attributes

Inherited from:
ValidateOutputInstances