Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FeatherSQLMySQL

MySQL dialect for FeatherSQL. It provides MySQL-specific SQL syntax and serialization; it does not include a database connection or query execution layer.

Release: 1.0.0-alpha.1 Swift 6.3+

Requirements

  • Swift 6.3 or later
  • macOS 15+, iOS 18+, tvOS 18+, watchOS 11+, or visionOS 2+
  • Linux

Installation

Add FeatherSQL and its MySQL dialect to your package:

.package(url: "https://github.com/feather-framework/feather-sql", exact: "1.0.0-alpha.1"),
.package(url: "https://github.com/feather-framework/feather-sql-mysql", exact: "1.0.0-alpha.1"),
.product(name: "FeatherSQL", package: "feather-sql"),
.product(name: "FeatherSQLMySQL", package: "feather-sql-mysql"),

This is an alpha release; APIs may change before the stable 1.0.0 release.

Usage

Select the MySQL builder to generate SQL using MySQL syntax:

import FeatherSQL
import FeatherSQLMySQL

let statement = SQLBuilder.mysql
    .select()
    .column("id")
    .column("email")
    .from("users")
    .build()

print(statement.sql)

FeatherSQLMySQL only generates SQL. Use a database adapter to execute it.

Origins and attribution

FeatherSQLMySQL is a fork and adaptation of the MySQL dialect code from Vapor's MySQLKit and SQLKit, ported to use FeatherSQL and excluding connection and execution layers. It is not an official Vapor project or release. Upstream copyright and license notices are retained in LICENSES.md. FeatherSQLMySQL's own work is copyright Binary Birds Kft. and is distributed under the MIT License in LICENSE.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages