DataSourceLayer

class Object
trait Matchable
class Any

Value members

Concrete methods

def fromConfig(config: => Config): ZLayer[Any, Throwable, Has[DataSource]]
def fromConfigClosable(config: => Config): ZLayer[Any, Throwable, Has[DataSource & Closeable]]
def fromDataSource(ds: => DataSource): ZLayer[Any, Throwable, Has[DataSource]]
def fromJdbcConfig(jdbcContextConfig: => JdbcContextConfig): ZLayer[Any, Throwable, Has[DataSource]]
def fromJdbcConfigClosable(jdbcContextConfig: => JdbcContextConfig): ZLayer[Any, Throwable, Has[DataSource & Closeable]]
def fromPrefix(prefix: String): ZLayer[Any, Throwable, Has[DataSource]]
def fromPrefixClosable(prefix: String): ZLayer[Any, Throwable, Has[DataSource & Closeable]]
def live: ZLayer[Has[DataSource], SQLException, Has[Connection]]