No description
Find a file
2025-10-27 20:47:28 +02:00
Sources Hide package API 2025-10-27 20:08:27 +02:00
Tests Update dependencies 2025-10-24 20:16:30 +03:00
.gitignore DataLireCoder swift package 2025-08-05 20:09:18 +03:00
.swift-format DataLireCoder swift package 2025-08-05 20:09:18 +03:00
LICENSE Initial commit 2025-04-27 12:01:54 +03:00
Package.swift Hide package API 2025-10-27 20:08:27 +02:00
README.md Update readme 2025-10-27 20:23:49 +02:00

DataLiteCoder

DataLiteCoder is a Swift library that provides encoding and decoding of models using Codable for working with SQLite, designed for integration with the DataLiteCore library.

Overview

DataLiteCoder acts as a bridge between your Swift models and SQLite by leveraging the Codable system. It enables automatic encoding and decoding of model types to and from SQLite rows, including support for custom date formats and user-defined decoding strategies.

It is designed to be used alongside DataLiteCore, which manages low-level interactions with SQLite databases. Together, they provide a clean and extensible toolkit for building type-safe, SQLite-backed applications in Swift.

Requirements

  • Swift: 6.0 or later
  • Platforms: macOS 10.14+, iOS 12.0+, Linux

Installation

To add DataLiteCoder to your project, use Swift Package Manager (SPM).

Adding to an Xcode Project

  1. Open your project in Xcode.
  2. Navigate to the File menu and select Add Package Dependencies.
  3. Enter the repository URL: https://github.com/angd-dev/data-lite-coder.git
  4. Choose the version to install.
  5. Add the library to your target module.

Adding to Package.swift

If you are using Swift Package Manager with a Package.swift file, add the dependency like this:

// swift-tools-version: 6.0
import PackageDescription

let package = Package(
    name: "YourProject",
    dependencies: [
        .package(url: "https://github.com/angd-dev/data-lite-coder.git", from: "1.0.0")
    ],
    targets: [
        .target(
            name: "YourTarget",
            dependencies: [
                .product(name: "DataLiteCoder", package: "data-lite-coder")
            ]
        )
    ]
)

Additional Resources

For more information and usage examples, see the documentation.

License

This project is licensed under the MIT License. See the LICENSE file for details.