Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FeatherSQLPostgres

PostgreSQL dialect for FeatherSQL. It provides PostgreSQL-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 PostgreSQL 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-postgres", exact: "1.0.0-alpha.1"),
.product(name: "FeatherSQL", package: "feather-sql"),
.product(name: "FeatherSQLPostgres", package: "feather-sql-postgres"),

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

Usage

Select the PostgreSQL builder to generate SQL using PostgreSQL syntax:

import FeatherSQL
import FeatherSQLPostgres

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

print(statement.sql)

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

Origins and attribution

FeatherSQLPostgres is a fork and adaptation of the PostgreSQL dialect code from Vapor's PostgresKit 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. FeatherSQLPostgres'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