BREAKING: Remove deprecated methods

This commit is contained in:
Gwendal Roué committed 2022-08-21 19:21:57 +02:00
1 parent 78b9c543a3
commit fe225fe452
28 files changed
+101 -1042

No files matched your search

@@ -21,18 +21,6 @@ public protocol VirtualTableModule {
/// The name of the module.
var moduleName: String { get }
// TODO: remove this requirement
/// Returns a table definition that is passed as the closure argument in the
/// `Database.create(virtualTable:using:)` method:
///
/// try db.create(virtualTable: "item", using: module) { t in
/// // t is the result of makeTableDefinition()
/// }
///
/// - warning: This method is DEPRECATED. Define
/// `makeTableDefinition(configuration:)` instead.
func makeTableDefinition() -> TableDefinition
/// Returns a table definition that is passed as the closure argument in the
/// `Database.create(virtualTable:using:)` method:
///
@@ -49,14 +37,6 @@ public protocol VirtualTableModule {
func database(_ db: Database, didCreate tableName: String, using definition: TableDefinition) throws
}
extension VirtualTableModule {
// Support for VirtualTableModule types defined by users
// TODO: remove when `makeTableDefinition()` is no longer a requirement
public func makeTableDefinition(configuration: VirtualTableConfiguration) -> TableDefinition {
makeTableDefinition()
}
}
public struct VirtualTableConfiguration {
/// If true, existing objects must not be replaced, or generate any error
/// (even if they do not match the objects that would be created otherwise.)