Skip to content

Abstract database component, providing a shared API surface for database drivers written in Swift.

License

Notifications You must be signed in to change notification settings

feather-framework/feather-database

Repository files navigation

Feather Database

Abstract database component, providing a shared API surface for database drivers written in Swift.

Release: 1.0.0-beta.1

Features

  • 🤝 Database-agnostic abstraction layer
  • 🔀 Designed for modern Swift concurrency
  • 📚 DocC-based API Documentation
  • ✅ Unit tests and code coverage

Requirements

Swift 6.1+ Platforms: Linux, macOS, iOS, tvOS, watchOS, visionOS

  • Swift 6.1+

  • Platforms:

    • Linux
    • macOS 15+
    • iOS 18+
    • tvOS 18+
    • watchOS 11+
    • visionOS 2+

Installation

Use Swift Package Manager; add the dependency to your Package.swift file:

.package(url: "https://github.com/feather-framework/feather-database", exact: "1.0.0-beta.1"),

Then add FeatherDatabase to your target dependencies:

.product(name: "FeatherDatabase", package: "feather-database"),

Usage

DocC API documentation

API documentation is available at the following link. Refer to the mock objects in the Tests directory if you want to build a custom database driver implementation.

Tip

Avoid calling database.execute while in a transaction; use the transaction connection instead.

Warning

This repository is a work in progress, things can break until it reaches v1.0.0.

Database drivers

The following database driver implementations are available for use:

Development

  • Build: swift build
  • Test:
    • local: swift test
    • using Docker: swift docker-test
  • Format: make format
  • Check: make check

Contributing

Pull requests are welcome. Please keep changes focused and include tests for new logic. 🙏

About

Abstract database component, providing a shared API surface for database drivers written in Swift.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •