MySQLDatabaseSupport

works.iterative.sqldb.mysql.MySQLDatabaseSupport

Base trait for MySQL database modules that provides common infrastructure

This trait orchestrates the creation of database infrastructure components like datasource, transactor, and migration management. It's the foundation layer for database modules.

Classification: Infrastructure Configuration

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Types

Base database infrastructure type including data source and transactor

Base database infrastructure type including data source and transactor

Attributes

Value members

Concrete methods

def layerWithMigrations(additionalLocations: List[String] = ...): ZLayer[Scope, Throwable, BaseDatabaseInfrastructure & FlywayMigrationService]

Creates a ZLayer with the base database infrastructure and runs migrations first This layer forwards both the database infrastructure and migration service

Creates a ZLayer with the base database infrastructure and runs migrations first This layer forwards both the database infrastructure and migration service

Value parameters

additionalLocations

Additional classpath locations to scan for migrations

Attributes

def migrate(additionalLocations: List[String] = ...): ZIO[Scope, Throwable, Unit]

Runs flyway migrations with custom locations

Runs flyway migrations with custom locations

Value parameters

additionalLocations

Additional classpath locations to scan for migrations

Attributes

Concrete fields

val layer: ZLayer[Scope, Throwable, BaseDatabaseInfrastructure]

Creates a ZLayer with the base database infrastructure (DataSource & Transactor)

Creates a ZLayer with the base database infrastructure (DataSource & Transactor)

Attributes