Skip to content

Commit b024e80

Browse files
committed
updates v0.1.0
1 parent 64b8155 commit b024e80

12 files changed

Lines changed: 36 additions & 5 deletions

File tree

include/sqlite-vec-cpp/distances/cosine.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#include <cassert>
34
#include <cmath>
45
#include <span>
56
#include <type_traits>

include/sqlite-vec-cpp/distances/hamming.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <array>
44
#include <bit>
5+
#include <cassert>
56
#include <climits>
67
#include <cstdint>
78
#include <span>

include/sqlite-vec-cpp/distances/l1.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#include <cassert>
34
#include <cmath>
45
#include <cstdlib>
56
#include <span>

include/sqlite-vec-cpp/distances/l2.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#include <cassert>
34
#include <cmath>
45
#include <span>
56
#include <type_traits>

include/sqlite-vec-cpp/sqlite/context.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <sqlite3.h>
4+
45
#include <cstring>
56
#include <span>
67
#include <string>

include/sqlite-vec-cpp/sqlite/registration.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <sqlite3.h>
4+
45
#include "../utils/error.hpp"
56
#include "enhanced_functions.hpp"
67
#include "functions.hpp"

include/sqlite-vec-cpp/sqlite/value.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <sqlite3.h>
4+
45
#include <cstdint>
56
#include <optional>
67
#include <span>

include/sqlite-vec-cpp/sqlite/vtab.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <sqlite3.h>
4+
45
#include <cstdarg>
56
#include <memory>
67
#include <string>

src/sqlite_vec_c_api.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22
// Maintains backward compatibility with original sqlite-vec C API
33
// while leveraging modern C++20/23 implementation internally
44

5-
#include <sqlite3ext.h>
5+
#include <sqlite3.h>
66
#include <sqlite-vec-cpp/sqlite/registration.hpp>
77
#include <sqlite-vec-cpp/sqlite_vec.hpp>
88

9-
SQLITE_EXTENSION_INIT1
10-
119
// External C API entry point (maintains compatibility)
1210
extern "C" {
1311

@@ -19,7 +17,7 @@ int sqlite3_vec_init(
1917
char **pzErrMsg,
2018
const sqlite3_api_routines *pApi
2119
) {
22-
SQLITE_EXTENSION_INIT2(pApi);
20+
(void)pApi; // not using extension API; direct sqlite3.h
2321

2422
try {
2523
// Register all vector functions from C++ implementation

tests/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ test_sqlite_functions = executable(
2525
'test_sqlite_functions',
2626
'test_sqlite_functions.cpp',
2727
include_directories: inc_dirs,
28-
dependencies: [sqlite3_dep],
28+
dependencies: [sqlite3_dep, dependency('sqlite-vec-cpp')],
2929
)
3030

3131
test('Concepts and VectorView', test_concepts)

0 commit comments

Comments
 (0)