Swiftpack.co - Swift Packages by Lighter-swift

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

Packages published by Lighter-swift

Lighter-swift/Lighter 1.2.4
Swift APIs for SQLite: Type-safe down to the schema. Very, very, fast. Dependency free.
⭐️ 404
🕓 2 weeks ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Almost Strictly Concurrent
2 weeks ago
This enables strict Swift concurrency checks on Swift 5.10 and later. Most things in Lighter (raw or not) are `Sendable` conceptually since it is all value types and properties are restricted to base types. The one thing that had to be done is marking `KeyPath`'s on `Sendable` types also `Sendable`. This is key to the non-raw Lighter API. And apparently that will be fixed in Swift 6.
Dately
2 weeks ago
Bugfix: Was encoding `Data` columns as `Date`'s 📅. E.g. ```sql CREATE TABLE app ( app_id UUID NOT NULL PRIMARY KEY, icon Data ) ``` Would turn into ```swift struct App { var id : UUID var icon : Date? // <== instead of `Data` when Foundation is enabled in the generator } ```
Immediately
3 weeks ago
As a follow-up to the excellent [Optimizing SQLite for servers](https://kerkour.com/sqlite-for-servers) article, this release has a more impactful change in that it opens non-readonly transactions in the `IMMEDIATE` mode. The problem w/ `DEFERRED` transactions is that they don't honour the busy handler, i.e. will fail w/ `SQLITE_BUSY` immediately on upgrades. As a result, it is more important to explicitly use `readTransaction { tx in }` when only doing reads. Previously w/ `DEFERRED`, one could still use `transaction` w/ read-only behaviour. The old mode can still be used by specifying the mode manually, e.g. `transaction(mode: .deferrred) { tx in ... }`.
Visionary
5 weeks ago
Xcode 15.3 / Swift 5.10 manifest, explicit support for more platforms in that Package.swift.
Finding Nemo
28 weeks ago
Better resource lookup contributed by @micampe. Thanks!
Carriage Returned
31 weeks ago
Fix for Issue #23, thanks go to @finestructure for reporting it. If the SQL to create a database contained carriage returns (CR, `\r`, ASCII 13), Enlighter wouldn't properly generate multiline string literals. This then break Swift compilation. Fixed. Also converting CRLF to CRs, i.e. no more CRs in produced code.
Binaries Floating
31 weeks ago
This version treats all `Int` types (`Int8`, `UInt32` etc) as SQLite base values, i.e. they can be used in a schema. Also adds support for `Float`. The `Bool` type can now process TEXT columns in a limited way (but always writes as Int64). It'll match textual bools using the first character (Yes, No, True, False, 0, 1 etc). Finally, when using a RawRepresentable w/ an unmapped stored value, a proper Error is thrown (vs crashing in a forced unwrap).
Macroless
45 weeks ago
Just the regular Package.swift fix as new Swift versions are released.
FiveEight.2
1 year ago
Fix an Xcode 14.3/Swift 5.8 warning.
FiveEight
1 year ago
This should fix Issue #21, caused by the incorrect Package.swift to be picked up. I.e. make everything working right w/ Xcode 14.3 (aka Swift 5.8).
iOS macOS
Lighter-swift/Examples 1.2.6
Examples for using SQLite Databases in Swift
⭐️ 7
🕓 2 weeks ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Strictly Concurrent
2 weeks ago
Enable strict concurrency checks and link to the respective Lighter frameworks.
NoVision
5 weeks ago
Doesn't have a visionOS example yet :-)
Macroless
45 weeks ago
Code adjusted for Swift 5.9.
Cachable
1 year ago
This fixes a few old package references. Also the Solar Bodies app now bootstraps its cache into the proper .cachesDirectory.
Initially
1 year ago
A first release of the Examples for Lighter.
iOS macOS

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics