Git Product home page Git Product logo

duckdb-swift's Introduction


Github Actions Badge codecov discord Latest Release

DuckDB Swift

DuckDB Swift is the native Swift API for DuckDB. It employs a modern Swift based API for clients across Apple, Linux and Windows platforms.

DuckDB

DuckDB is a high-performance analytical database system. It is designed to be fast, reliable and easy to use. DuckDB provides a rich SQL dialect, with support far beyond basic SQL. DuckDB supports arbitrary and nested correlated subqueries, window functions, collations, complex types (arrays, structs), and more. For more information on the goals of DuckDB, please refer to the Why DuckDB page on our website.

Installation

To use DuckDB in your Swift based project:

  1. Add DuckDB to your Swift.package dependencies:
    .package(url: "https://github.com/duckdb/duckdb-swift", .upToNextMinor(from: .init(0, x, 0))),
  2. Add DuckDB as a dependency to your target: swift .target(name: "TargetName", dependencies: [ .product(name: "DuckDB", package: "duckdb-swift"), ... ]),

Source and file format stability

DuckDB is in early release mode and API is subject to change between minor version updates. DuckDB's file format is also subject to change and โ€“ in the short-term โ€“ it is recommended to make use of DuckDB's CSV import/export capabilities to ensure your data remains accessible between DuckDB version updates.

Documentation and Playgrounds

The DuckDB Swift API is fully documented using DocC and the documentation can be generated from within Xcode via Product > Build Documentation.

You can also explore an Xcode Playground that demonstrates getting up and running with DuckDB and visualizing data using SwiftUI. To access the playground, clone this repository, open the DuckDB.xcworkspace file, and navigate to the DuckDBPlayground from within Xcode's project explorer panel.

Contributing

Issues and Pull Requests should be submitted via the main DuckDB repository.

Development

Development is managed through the main DuckDB repository. To set-up a Swift development environment:

  1. Check out the main DuckDB repository at https://github.com/duckdb/duckdb
  2. Pull the latest git tags:
git fetch --all --tags
  1. Generate the Unified Build files for the package:
python3 tools/swift/create-package.py tools/swift
  1. Open the Xcode workspace at tools/swift/duckdb-swift/DuckDB.xcworkspace

Please also refer to our Contribution Guide.

duckdb-swift's People

Contributors

mytherin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.