awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectAboutHow we rankPressMCP server
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
stephencelis avatar

stephencelis/SQLite.swift

0
View on GitHub↗
10,167 stars·1,618 forks·Swift·MIT·12 views

SQLite.swift

SQLite.swift is a type-safe Swift wrapper and object-relational mapping layer that provides a bridge for interacting with SQLite databases. It functions as a database driver that allows for embedded database management and local data persistence within Swift applications.

The project distinguishes itself through a type-safe expression builder that verifies SQL statement syntax and intent at compile time. It includes specialized support for high-performance text matching via full-text search integration and provides mechanisms for securing sensitive data through database encryption.

The library covers a broad range of capabilities including versioned schema migration, atomic transaction management, and a chainable query interface for filtering and pagination. It also supports advanced SQL constructs such as recursive queries, window functions, and the registration of custom SQL functions.

Additional operational controls include database journaling configuration for performance optimization and the retrieval of extended error codes for debugging.

Features

  • SQLite Databases - Provides a serverless, transactional SQL database engine integrated directly within Swift applications.
  • Type-Safe Query Builders - Provides a type-safe expression builder that verifies SQL statement syntax and intent at compile time.
  • Type-Safe Schema Definitions - Enables the creation of tables and indexes using strongly typed column expressions and constraints.
  • Data Type Mappings - Maps database values to high-level Swift types like UUIDs and URLs during data retrieval.
  • Database Migrations - Facilitates updating the database structure to new versions without losing existing user data.
  • Database Query Execution - Runs commands to create, insert, update, and delete records using expression builders or raw SQL.
  • Database Schema Managers - Offers a declarative toolset for defining and versioning database structures using type-safe expressions.
  • Fluent Query Builders - Implements a chainable, functional API for constructing complex SQL queries programmatically.
  • Local Data Persistence - Enables saving application state and indexed data to local disk for persistence across restarts.
  • Schema Migrations - Provides tools for managing and automating the evolution of the database structure over time.
  • SQLite Drivers - Serves as a low-level Swift bridge for executing raw SQL and managing transactions.
  • Type Mapping Converters - Provides utilities for translating between complex Swift objects and SQLite-compatible primitive values.
  • Type-Safe Data Abstractions - Adds new records or updates existing ones upon conflict using type-safe setters.
  • Type-Safe Object-Relational Mappers - Maps SQLite database rows and columns to Swift types at compile time for safe data access.
  • C-API Wrappers - Provides a high-level Swift interface that encapsulates the low-level SQLite3 C library functions.
  • SQLite Wrappers - Provides a type-safe Swift interface and expression builder to simplify interaction with SQLite.
  • Database Column Bindings - Maps database result columns to Swift types using a protocol-based system for safe data retrieval.
  • SQL Query Validators - Verifies SQL statement syntax and intent at compile time to prevent runtime database errors.
  • Common Table Expressions - Supports building hierarchical data lookups using common table expressions with recursive clauses.
  • Schema Versioning - Tracks and handles schema versions using internal pragmas to trigger conditional migrations.
  • Database Connection Managers - Manages connections to disk-based, in-memory, or temporary databases with integrated thread-safety.
  • Atomic Transactions - Groups multiple statements into atomic blocks that roll back changes if any operation fails.
  • Full Text Search - Integrates SQLite virtual tables to implement high-performance text searching and indexing.
  • Pagination - Provides chainable functions for selection, filtering, joining, sorting, and pagination of records.
  • Raw SQL Execution - Enables running arbitrary SQL strings for complex operations that bypass the type-safe expression layer.
  • Advanced SQL Construct Execution - Supports complex SQL constructs including window functions and common table expressions.
  • Record Updating - Provides a fluent builder interface for modifying existing data rows with conditional filtering.
  • SQL Aggregate Functions - Calculates scalar values such as counts, sums, and averages across filtered datasets.
  • Encrypted Database Managers - Secures sensitive local data by encrypting database files with a key during the connection process.
  • Serialized Access - Ensures thread-safe database access by routing all operations through a dedicated serial execution queue.
  • Database Drivers - Simple and safe wrapper for SQLite3.
  • Database Libraries - Type-safe Swift layer for SQLite3.
  • Database Management - Type-safe wrapper for SQLite3.

Star history

Star history chart for stephencelis/sqlite.swiftStar history chart for stephencelis/sqlite.swift

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to SQLite.swift

Similar open-source projects, ranked by how many features they share with SQLite.swift.
  • simolus3/driftsimolus3 avatar

    simolus3/drift

    3,231View on GitHub↗

    Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database tables to classes and execute SQL queries with build-time validation. It functions as a type-safe query builder and a wrapper for SQLite and PostgreSQL, eliminating manual result set parsing by binding query outputs to native objects. The project distinguishes itself through a build-time code generation system that produces type-safe APIs and validates raw SQL statements against database versions before execution. It features reactive query streaming, which transforms SQL queries

    Dartdartdart-build-systemflutter
    View on GitHub↗3,231
  • ccgus/fmdbccgus avatar

    ccgus/fmdb

    13,851View on GitHub↗

    fmdb is an object-oriented SQLite database library and persistence layer for native macOS and iOS environments. It provides an Objective-C wrapper that encapsulates the low-level C API, allowing applications to manage local relational data storage and embedded database connections through a high-level interface. The library focuses on thread-safe database access by synchronizing operations across multiple threads using serialized queues to prevent data corruption and race conditions. It includes specialized capabilities for secure local storage, such as database encryption and the management

    Objective-C
    View on GitHub↗13,851
  • groue/grdb.swiftgroue avatar

    groue/GRDB.swift

    8,209View on GitHub↗

    GRDB.swift is a comprehensive SQLite toolkit and object-relational mapper for Swift. It provides a database wrapper that handles local data persistence, connection management, and encrypted file storage for Apple platforms. The library features a dedicated observation framework that tracks database changes to automatically synchronize the application state and user interface in real time. It distinguishes itself with a type-safe query builder and a protocol-based mapping system that converts database rows into structured Swift objects. The toolkit covers a broad range of administrative and o

    Swiftdatabasedatabase-observationgrdb
    View on GitHub↗8,209
  • uptrace/bunuptrace avatar

    uptrace/bun

    4,867View on GitHub↗

    Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping. It functions as a programmable SQL query builder, a database connection manager, and a tool for mapping database tables to Go structs. The project distinguishes itself through a multi-dialect SQL support system, allowing a single codebase to interact with different database engines via a consistent interface. It includes a built-in database observability tool for query interception, distributed tracing, and logging, as well as a schema migration tool for versioning structural c

    Godatabasegogolang
    View on GitHub↗4,867
See all 30 alternatives to SQLite.swift→

Frequently asked questions

What does stephencelis/sqlite.swift do?

SQLite.swift is a type-safe Swift wrapper and object-relational mapping layer that provides a bridge for interacting with SQLite databases. It functions as a database driver that allows for embedded database management and local data persistence within Swift applications.

What are the main features of stephencelis/sqlite.swift?

The main features of stephencelis/sqlite.swift are: SQLite Databases, Type-Safe Query Builders, Type-Safe Schema Definitions, Data Type Mappings, Database Migrations, Database Query Execution, Database Schema Managers, Fluent Query Builders.

What are some open-source alternatives to stephencelis/sqlite.swift?

Open-source alternatives to stephencelis/sqlite.swift include: simolus3/drift — Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database… ccgus/fmdb — fmdb is an object-oriented SQLite database library and persistence layer for native macOS and iOS environments. It… groue/grdb.swift — GRDB.swift is a comprehensive SQLite toolkit and object-relational mapper for Swift. It provides a database wrapper… uptrace/bun — Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping.… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… dotnet/efcore — Entity Framework Core is an object-relational mapper that enables developers to interact with database systems using…