Package
MySQLKit
Overview
This package provides the “foundational” level of support for using Fluent with MySQL by implementing the requirements of an SQLKit driver. It is responsible for:
Managing the underlying MySQL library (MySQLNIO),
Providing a two-way bridge between MySQLNIO and SQLKit’s generic data and metadata formats, and
Presenting an interface for establishing, managing, and interacting with database connections via AsyncKit.
Tip
A FluentKit driver for MySQL is provided by the FluentMySQLDriver package.
Version Support
This package uses MySQLNIO for all underlying database interactions. It is compatible with all versions of MySQL and all platforms supported by that package.
Caution
There is one exception to the above at the time of this writing: This package requires Swift 5.8 or newer, whereas MySQLNIO continues to support Swift 5.6.
Topics
Structures
MySQLConfigurationA set of parameters used to connect to a MySQL database.MySQLConnectionSourceAConnectionPoolSourceproviding MySQL database connections for a givenMySQLConfiguration.MySQLDataDecoderTranslatesMySQLDatavalues received from the database intoDecodablevalues.MySQLDataEncoderTranslatesEncodablevalues intoMySQLDatavalues suitable for use with aMySQLDatabase.MySQLDialectProvides a type conforming toSQLDialectspecifying the syntax used by MySQL.