Skip to content

Commit 5767432

Browse files
committed
Use plain C for CSQLiteExtensions module
1 parent 02fd6be commit 5767432

4 files changed

Lines changed: 50 additions & 46 deletions

File tree

Sources/CSQLiteExtensions/CSQLiteExtensions.swift

Lines changed: 0 additions & 46 deletions
This file was deleted.

Sources/CSQLiteExtensions/dummy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
** 2025-05-30
3+
**
4+
** The author disclaims copyright to this source code. In place of
5+
** a legal notice, here is a blessing:
6+
**
7+
** May you do good and not evil.
8+
** May you find forgiveness for yourself and forgive others.
9+
** May you share freely, never taking more than you give.
10+
**
11+
******************************************************************************
12+
**
13+
** Functions to manage automatic database extension registration from Swift.
14+
*/
15+
16+
// MARK: - Database extensions
17+
// See https://sqlite.org/loadext.html
18+
19+
#if __has_include("csqlite_carray_extension.h")
20+
#include "csqlite_carray_extension.h"
21+
#endif
22+
23+
#if __has_include("csqlite_decimal_extension.h")
24+
#include "csqlite_decimal_extension.h"
25+
#endif
26+
27+
#if __has_include("csqlite_ieee754_extension.h")
28+
#include "csqlite_ieee754_extension.h"
29+
#endif
30+
31+
#if __has_include("csqlite_percentile_extension.h")
32+
#include "csqlite_percentile_extension.h"
33+
#endif
34+
35+
#if __has_include("csqlite_series_extension.h")
36+
#include "csqlite_series_extension.h"
37+
#endif
38+
39+
#if __has_include("csqlite_sha3_extension.h")
40+
#include "csqlite_sha3_extension.h"
41+
#endif
42+
43+
#if __has_include("csqlite_uuid_extension.h")
44+
#include "csqlite_uuid_extension.h"
45+
#endif
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module CSQLiteExtensions {
2+
header "csqlite_extensions.h"
3+
export *
4+
}

0 commit comments

Comments
 (0)