stephencelis / SQLite.swift

A type-safe, Swift-language layer over SQLite3.
MIT License
9.72k stars 1.57k forks source link

Windows support #1239

Open alexvinidiktov opened 8 months ago

alexvinidiktov commented 8 months ago

Can the library be used on Windows?

broken-bytes commented 8 months ago

Nope, tested it and SQLite3 seems to be missing

groue commented 8 months ago

The GRDB.swift SQLite toolkit can run on Windows, so probably this library can as well: https://github.com/groue/GRDB.swift/discussions/1498

broken-bytes commented 8 months ago

GRDB does not run on Windows, it's missing CSQLite as well

theolampert commented 1 week ago

It will build on windows at least if you provide CSQLite as a dependency and adjust the imports to also account for windows. I'm not sure yet about usage, however.

There's probably a better way to do this but a quick solution: https://github.com/theolampert/SQLite.swift

It uses a different CSQLite package which builds SQLite rather than relying on apt.