fluent-mysql-driver
4.0.2
🖋🐬 Swift ORM (queries, models, relations, etc) built on MySQL.
vapor/fluent-mysql-driver
What's New
Improved error reporting via `DatabaseError`
2021-12-13T18:23:39Z
This patch was authored and released by @gwynne.
DatabaseError
's isSyntaxError
and isConnectionClosed
properties now correctly respect MySQLError.invalidSyntax
and MySQLError.closed
errors. A unit tests for these behaviors is included.
Also avoids double-running the FluentBenchmark tests (same change as fluent-sqlite-driver#75).
Description
- Swift Tools 5.2.0
Description
{ "name": "fluent-mysql-driver", "path": "/usr/src/package", "targets": [ { "name": "FluentMySQLDriverTests", "path": "Tests/FluentMySQLDriverTests", "type": "test", "c99name": "FluentMySQLDriverTests", "sources": [ "FluentMySQLDriverTests.swift" ], "module_type": "SwiftTarget", "target_dependencies": [ "FluentMySQLDriver" ], "product_dependencies": [ "FluentBenchmark" ] }, { "name": "FluentMySQLDriver", "path": "Sources/FluentMySQLDriver", "type": "library", "c99name": "FluentMySQLDriver", "sources": [ "Exports.swift", "FluentMySQLConfiguration.swift", "FluentMySQLDatabase.swift", "FluentMySQLDriver.swift", "FluentMySQLError.swift", "MySQLConverterDelegate.swift", "MySQLDatabase.swift", "MySQLError+Database.swift", "MySQLRow+Database.swift" ], "module_type": "SwiftTarget", "product_memberships": [ "FluentMySQLDriver" ], "product_dependencies": [ "FluentKit", "FluentSQL", "Logging", "MySQLKit" ] } ], "products": [ { "name": "FluentMySQLDriver", "type": { "library": [ "automatic" ] }, "targets": [ "FluentMySQLDriver" ] } ], "platforms": [ { "name": "macos", "version": "10.15" } ], "dependencies": [ { "url": "https://github.com/vapor/fluent-kit.git", "type": "sourceControl", "identity": "fluent-kit", "requirement": { "range": [ { "lower_bound": "1.6.0", "upper_bound": "2.0.0" } ] } }, { "url": "https://github.com/vapor/mysql-kit.git", "type": "sourceControl", "identity": "mysql-kit", "requirement": { "range": [ { "lower_bound": "4.0.0", "upper_bound": "5.0.0" } ] } }, { "url": "https://github.com/apple/swift-log.git", "type": "sourceControl", "identity": "swift-log", "requirement": { "range": [ { "lower_bound": "1.0.0", "upper_bound": "2.0.0" } ] } } ], "tools_version": "5.2", "manifest_display_name": "fluent-mysql-driver" }
Package Dump
{ "name": "fluent-mysql-driver", "targets": [ { "name": "FluentMySQLDriver", "type": "regular", "exclude": [], "settings": [], "resources": [], "dependencies": [ { "product": [ "FluentKit", "fluent-kit", null ] }, { "product": [ "FluentSQL", "fluent-kit", null ] }, { "product": [ "Logging", "swift-log", null ] }, { "product": [ "MySQLKit", "mysql-kit", null ] } ] }, { "name": "FluentMySQLDriverTests", "type": "test", "exclude": [], "settings": [], "resources": [], "dependencies": [ { "product": [ "FluentBenchmark", "fluent-kit", null ] }, { "target": [ "FluentMySQLDriver", null ] } ] } ], "products": [ { "name": "FluentMySQLDriver", "type": { "library": [ "automatic" ] }, "targets": [ "FluentMySQLDriver" ] } ], "pkgConfig": null, "platforms": [ { "options": [], "version": "10.15", "platformName": "macos" } ], "providers": null, "packageKind": { "root": [ "/usr/src/package" ] }, "dependencies": [ { "sourceControl": [ { "identity": "fluent-kit", "location": { "remote": [ "https://github.com/vapor/fluent-kit.git" ] }, "requirement": { "range": [ { "lowerBound": "1.6.0", "upperBound": "2.0.0" } ] }, "productFilter": null } ] }, { "sourceControl": [ { "identity": "mysql-kit", "location": { "remote": [ "https://github.com/vapor/mysql-kit.git" ] }, "requirement": { "range": [ { "lowerBound": "4.0.0", "upperBound": "5.0.0" } ] }, "productFilter": null } ] }, { "sourceControl": [ { "identity": "swift-log", "location": { "remote": [ "https://github.com/apple/swift-log.git" ] }, "requirement": { "range": [ { "lowerBound": "1.0.0", "upperBound": "2.0.0" } ] }, "productFilter": null } ] } ], "toolsVersion": { "_version": "5.2.0" }, "cLanguageStandard": null, "cxxLanguageStandard": null, "swiftLanguageVersions": null }
Dependencies
- fluent-kit1.23.5
- mysql-kit4.5.0
- swift-log1.4.2
Dependencies
{ "url": "/usr/src/package", "name": "fluent-mysql-driver", "path": "/usr/src/package", "version": "unspecified", "identity": "package", "dependencies": [ { "url": "https://github.com/vapor/fluent-kit.git", "name": "fluent-kit", "path": "/usr/src/package/.build/checkouts/fluent-kit", "version": "1.23.5", "identity": "fluent-kit", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.40.0", "identity": "swift-nio", "dependencies": [] }, { "url": "https://github.com/apple/swift-log.git", "name": "swift-log", "path": "/usr/src/package/.build/checkouts/swift-log", "version": "1.4.2", "identity": "swift-log", "dependencies": [] }, { "url": "https://github.com/vapor/sql-kit.git", "name": "sql-kit", "path": "/usr/src/package/.build/checkouts/sql-kit", "version": "3.18.0", "identity": "sql-kit", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.40.0", "identity": "swift-nio", "dependencies": [] }, { "url": "https://github.com/apple/swift-log.git", "name": "swift-log", "path": "/usr/src/package/.build/checkouts/swift-log", "version": "1.4.2", "identity": "swift-log", "dependencies": [] } ] }, { "url": "https://github.com/vapor/async-kit.git", "name": "async-kit", "path": "/usr/src/package/.build/checkouts/async-kit", "version": "1.11.1", "identity": "async-kit", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.40.0", "identity": "swift-nio", "dependencies": [] }, { "url": "https://github.com/apple/swift-log.git", "name": "swift-log", "path": "/usr/src/package/.build/checkouts/swift-log", "version": "1.4.2", "identity": "swift-log", "dependencies": [] } ] } ] }, { "url": "https://github.com/vapor/mysql-kit.git", "name": "mysql-kit", "path": "/usr/src/package/.build/checkouts/mysql-kit", "version": "4.5.0", "identity": "mysql-kit", "dependencies": [ { "url": "https://github.com/vapor/mysql-nio.git", "name": "mysql-nio", "path": "/usr/src/package/.build/checkouts/mysql-nio", "version": "1.4.0", "identity": "mysql-nio", "dependencies": [ { "url": "https://github.com/apple/swift-crypto.git", "name": "swift-crypto", "path": "/usr/src/package/.build/checkouts/swift-crypto", "version": "2.1.0", "identity": "swift-crypto", "dependencies": [] }, { "url": "https://github.com/apple/swift-log.git", "name": "swift-log", "path": "/usr/src/package/.build/checkouts/swift-log", "version": "1.4.2", "identity": "swift-log", "dependencies": [] }, { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.40.0", "identity": "swift-nio", "dependencies": [] }, { "url": "https://github.com/apple/swift-nio-ssl.git", "name": "swift-nio-ssl", "path": "/usr/src/package/.build/checkouts/swift-nio-ssl", "version": "2.19.0", "identity": "swift-nio-ssl", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.40.0", "identity": "swift-nio", "dependencies": [] } ] } ] }, { "url": "https://github.com/vapor/sql-kit.git", "name": "sql-kit", "path": "/usr/src/package/.build/checkouts/sql-kit", "version": "3.18.0", "identity": "sql-kit", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.40.0", "identity": "swift-nio", "dependencies": [] }, { "url": "https://github.com/apple/swift-log.git", "name": "swift-log", "path": "/usr/src/package/.build/checkouts/swift-log", "version": "1.4.2", "identity": "swift-log", "dependencies": [] } ] }, { "url": "https://github.com/vapor/async-kit.git", "name": "async-kit", "path": "/usr/src/package/.build/checkouts/async-kit", "version": "1.11.1", "identity": "async-kit", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.40.0", "identity": "swift-nio", "dependencies": [] }, { "url": "https://github.com/apple/swift-log.git", "name": "swift-log", "path": "/usr/src/package/.build/checkouts/swift-log", "version": "1.4.2", "identity": "swift-log", "dependencies": [] } ] }, { "url": "https://github.com/apple/swift-crypto.git", "name": "swift-crypto", "path": "/usr/src/package/.build/checkouts/swift-crypto", "version": "2.1.0", "identity": "swift-crypto", "dependencies": [] }, { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.40.0", "identity": "swift-nio", "dependencies": [] }, { "url": "https://github.com/apple/swift-nio-ssl.git", "name": "swift-nio-ssl", "path": "/usr/src/package/.build/checkouts/swift-nio-ssl", "version": "2.19.0", "identity": "swift-nio-ssl", "dependencies": [ { "url": "https://github.com/apple/swift-nio.git", "name": "swift-nio", "path": "/usr/src/package/.build/checkouts/swift-nio", "version": "2.40.0", "identity": "swift-nio", "dependencies": [] } ] } ] }, { "url": "https://github.com/apple/swift-log.git", "name": "swift-log", "path": "/usr/src/package/.build/checkouts/swift-log", "version": "1.4.2", "identity": "swift-log", "dependencies": [] } ] }