// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved. import Foundation import GRDB public extension Database { func create( table: T.Type, options: TableOptions = [], body: (TypedTableDefinition) throws -> Void ) throws where T: TableRecord, T: ColumnExpressible { try create(table: T.databaseTableName, options: options) { tableDefinition in let typedDefinition: TypedTableDefinition = TypedTableDefinition(definition: tableDefinition) try body(typedDefinition) } } }