stephencelis / SQLite.swift

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

Use of unresolved identifier 'SQLITE_CONSTRAINT' #961

Closed chee1986 closed 3 years ago

chee1986 commented 4 years ago

SQLite.swift0.12.2 Xcode11 MacOS Catalina Swift Package manager(use the xcode11's build-in gui tool)

fewlinesofcode commented 4 years ago

You should also import SQLite3. It solves the issue.

akda5id commented 3 years ago

Thanks fewlinesofcode. This should be added to the documentation https://github.com/stephencelis/SQLite.swift/blob/master/Documentation/Index.md#handling-sqlite-errors

nathanfallet commented 3 years ago

@fewlinesofcode @akda5id Feel free to open a PR if you want to help to improve the documentation.