This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javax.sql.DataSource | |
| import org.flywaydb.core.Flyway | |
| import org.flywaydb.core.api.configuration.FluentConfiguration | |
| import org.flywaydb.core.api.output.MigrateResult | |
| import zio.ZIO | |
| import zio.test.TestAspect | |
| object FlywayTestAspect: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.sql.Connection | |
| import javax.sql.DataSource | |
| import org.postgresql.ds.PGSimpleDataSource | |
| import org.testcontainers.containers.PostgreSQLContainer as OriginalPostgreSQLContainer | |
| import zio.Scope | |
| import zio.ZIO | |
| import zio.ZLayer | |
| class PostgreSQLContainer(dockerImageName: String) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const identity = x => x | |
| const of = x => [x] | |
| const empty = () => [] | |
| const concat = (xs, ys) => [...xs, ...ys] | |
| const foldRight = f => acc => ([x, ...xs]) => x | |
| ? f(x, foldRight(f)(acc)(xs)) |