-
-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #627 from groue/dev/SPM
Swift Package Manager: define SQLite as a system library target
- Loading branch information
Showing
11 changed files
with
383 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module CSQLite { | ||
header "shim.h" | ||
link "sqlite3" | ||
export * | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <sqlite3.h> | ||
|
||
typedef void(*errorLogCallback)(void *pArg, int iErrCode, const char *zMsg); | ||
|
||
// Wrapper around sqlite3_config(SQLITE_CONFIG_LOG, ...) which is a variadic | ||
// function that can't be used from Swift. | ||
static inline void registerErrorLogCallback(errorLogCallback callback) { | ||
sqlite3_config(SQLITE_CONFIG_LOG, callback, 0); | ||
} |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.