Skip to content

Commit

Permalink
v0.1.1-alpha.20
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Jun 21, 2023
1 parent f2d5cd1 commit 2c3d831
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 32 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1-alpha.19
0.1.1-alpha.20
2 changes: 1 addition & 1 deletion bindings/datasette/datasette_sqlite_vss/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.1.1-alpha.19"
__version__ = "0.1.1-alpha.20"
__version_info__ = tuple(__version__.split("."))
4 changes: 2 additions & 2 deletions bindings/deno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# `x/sqlite_vss` Deno Module

[![Tags](https://img.shields.io/github/release/asg017/sqlite-vss)](https://github.com/asg017/sqlite-vss/releases)
[![Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/sqlite-vss@0.1.1-alpha.19/mod.ts)
[![Doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/sqlite-vss@0.1.1-alpha.20/mod.ts)

The [`sqlite-vss`](https://github.com/asg017/sqlite-vss) SQLite extension is available to Deno developers with the [`x/sqlite_vss`](https://deno.land/x/sqlite_vss) Deno module. It works with [`x/sqlite3`](https://deno.land/x/sqlite3), the fastest and native Deno SQLite3 module.

```js
import { Database } from "https://deno.land/x/sqlite3@0.8.0/mod.ts";
import * as sqlite_vss from "https://deno.land/x/sqlite_vss@v0.1.1-alpha.19/mod.ts";
import * as sqlite_vss from "https://deno.land/x/sqlite_vss@v0.1.1-alpha.20/mod.ts";

const db = new Database(":memory:");

Expand Down
2 changes: 1 addition & 1 deletion bindings/deno/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sqlite-vss",
"version": "0.1.1-alpha.19",
"version": "0.1.1-alpha.20",
"github": "https://github.com/asg017/sqlite-vss",
"tasks": {
"test": "deno test --unstable -A test.ts"
Expand Down
2 changes: 1 addition & 1 deletion bindings/elixir/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1-alpha.19
0.1.1-alpha.20
19 changes: 11 additions & 8 deletions bindings/go/vector/sqlite-vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,32 @@
#include "sqlite3ext.h"

#ifdef __cplusplus
#include <memory>
#include <stdint.h>
#include <vector>
struct VectorFloat {
int64_t size;
float * data;
int64_t size;
float *data;
};

typedef struct vector0_api vector0_api;
struct vector0_api {
int iVersion;
std::vector<float>* (*xValueAsVector)(sqlite3_value*value);
void (*xResultVector)(sqlite3_context*context, std::vector<float>*);

int iVersion;
std::unique_ptr<std::vector<float>> (*xValueAsVector)(sqlite3_value *value);
void (*xResultVector)(sqlite3_context *context, std::vector<float> *);
};

#endif /* end of C++ specific APIs*/

#ifdef __cplusplus
extern "C" {
#endif

int sqlite3_vector_init(sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);
int sqlite3_vector_init(sqlite3 *db, char **pzErrMsg,
const sqlite3_api_routines *pApi);

#ifdef __cplusplus
} /* end of the 'extern "C"' block */
} /* end of the 'extern "C"' block */
#endif

#endif /* ifndef _SQLITE_VECTOR_H */
17 changes: 9 additions & 8 deletions bindings/go/vss/sqlite-vss.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,23 @@
#define _SQLITE_VSS_H

#include "sqlite3ext.h"
#define SQLITE_VSS_VERSION "v0.1.1-alpha.19"

#define SQLITE_VSS_VERSION_MAJOR 0
#define SQLITE_VSS_VERSION_MINOR 1
#define SQLITE_VSS_VERSION_PATCH 1
#define SQLITE_VSS_VERSION_TWEAK 19
#define SQLITE_VSS_VERSION "v0.1.1-alpha.20"

#define SQLITE_VSS_VERSION_MAJOR @sqlite - vss_VERSION_MAJOR @
#define SQLITE_VSS_VERSION_MINOR @sqlite - vss_VERSION_MINOR @
#define SQLITE_VSS_VERSION_PATCH @sqlite - vss_VERSION_PATCH @
#define SQLITE_VSS_VERSION_TWEAK @sqlite - vss_VERSION_TWEAK @

#ifdef __cplusplus
extern "C" {
#endif

int sqlite3_vss_init(sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);
int sqlite3_vss_init(sqlite3 *db,
char **pzErrMsg,
const sqlite3_api_routines *pApi);

#ifdef __cplusplus
} /* end of the 'extern "C"' block */
} /* end of the 'extern "C"' block */
#endif

#endif /* ifndef _SQLITE_VSS_H */
2 changes: 1 addition & 1 deletion bindings/node/sqlite-vss-darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"//": "Autogenerated by the npm_generate_platform_packages.sh script, do not edit by hand",
"name": "sqlite-vss-darwin-arm64",
"version": "0.1.1-alpha.19",
"version": "0.1.1-alpha.20",
"repository": {
"type": "git",
"url": "https://github.com/asg017/sqlite-vss.git",
Expand Down
2 changes: 1 addition & 1 deletion bindings/node/sqlite-vss-darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"//": "Autogenerated by the npm_generate_platform_packages.sh script, do not edit by hand",
"name": "sqlite-vss-darwin-x64",
"version": "0.1.1-alpha.19",
"version": "0.1.1-alpha.20",
"repository": {
"type": "git",
"url": "https://github.com/asg017/sqlite-vss.git",
Expand Down
2 changes: 1 addition & 1 deletion bindings/node/sqlite-vss-linux-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"//": "Autogenerated by the npm_generate_platform_packages.sh script, do not edit by hand",
"name": "sqlite-vss-linux-x64",
"version": "0.1.1-alpha.19",
"version": "0.1.1-alpha.20",
"repository": {
"type": "git",
"url": "https://github.com/asg017/sqlite-vss.git",
Expand Down
8 changes: 4 additions & 4 deletions bindings/node/sqlite-vss/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"//": "Autogenerated by the npm_generate_platform_packages.sh script, do not edit by hand",
"name": "sqlite-vss",
"version": "0.1.1-alpha.19",
"version": "0.1.1-alpha.20",
"description": "",
"repository": {
"type": "git",
Expand All @@ -23,9 +23,9 @@
"*.dll"
],
"optionalDependencies": {
"sqlite-vss-darwin-x64": "0.1.1-alpha.19",
"sqlite-vss-darwin-arm64": "0.1.1-alpha.19",
"sqlite-vss-linux-x64": "0.1.1-alpha.19"
"sqlite-vss-darwin-x64": "0.1.1-alpha.20",
"sqlite-vss-darwin-arm64": "0.1.1-alpha.20",
"sqlite-vss-linux-x64": "0.1.1-alpha.20"
},
"devDependencies": {
"better-sqlite3": "^8.1.0",
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/sqlite_vss/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "0.1.1-alpha.19"
__version__ = "0.1.1-alpha.20"
__version_info__ = tuple(__version__.split("."))
2 changes: 1 addition & 1 deletion bindings/ruby/lib/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# automatically generated, do not edit by hand.
module SqliteVss
VERSION = "0.1.1-alpha.19"
VERSION = "0.1.1-alpha.20"
end
2 changes: 1 addition & 1 deletion bindings/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "sqlite-vss"
version = "0.1.1-alpha.19"
version = "0.1.1-alpha.20"
edition = "2021"
authors = ["Alex Garcia <alexsebastian.garcia@gmail.com>"]
description = "FFI bindings to the sqlite-vss SQLite extension"
Expand Down

0 comments on commit 2c3d831

Please sign in to comment.