Skip to content

Package

MySQLKit

MySQLKit is a library providing an SQLKit driver for MySQLNIO.

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

Extended Modules