Make database connection lazy and adjust config execution order
This commit is contained in:
parent
f4fefb3391
commit
d26587cfc3
8 changed files with 129 additions and 173 deletions
|
|
@ -12,7 +12,7 @@ import DataLiteCore
|
|||
init() throws {
|
||||
let connection = try Connection(location: .inMemory, options: .readwrite)
|
||||
self.connection = connection
|
||||
self.migrationService = .init(service: try .init(connection: connection), storage: .init())
|
||||
self.migrationService = .init(service: .init(connection: connection), storage: .init())
|
||||
}
|
||||
|
||||
@Test func addMigration() throws {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue