aboutsummaryrefslogtreecommitdiff
path: root/sqlite3ext.h
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2018-09-18 17:02:27 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2018-09-18 17:02:27 +0900
commit554bc0fb2e0ee7ec0105f4296b7fa5e01f85aa32 (patch)
tree434fb17816d483f086797caee49561e90b79a7cb /sqlite3ext.h
parentMerge pull request #633 from israel-lugo/patch-1 (diff)
downloadgolite-554bc0fb2e0ee7ec0105f4296b7fa5e01f85aa32.tar.gz
golite-554bc0fb2e0ee7ec0105f4296b7fa5e01f85aa32.tar.xz
Upgrade to SQLite 3.25.0
Fixes #634, #635
Diffstat (limited to 'sqlite3ext.h')
-rw-r--r--sqlite3ext.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sqlite3ext.h b/sqlite3ext.h
index 913e72d..50e6866 100644
--- a/sqlite3ext.h
+++ b/sqlite3ext.h
@@ -311,6 +311,12 @@ struct sqlite3_api_routines {
int (*str_errcode)(sqlite3_str*);
int (*str_length)(sqlite3_str*);
char *(*str_value)(sqlite3_str*);
+ int (*create_window_function)(sqlite3*,const char*,int,int,void*,
+ void (*xStep)(sqlite3_context*,int,sqlite3_value**),
+ void (*xFinal)(sqlite3_context*),
+ void (*xValue)(sqlite3_context*),
+ void (*xInv)(sqlite3_context*,int,sqlite3_value**),
+ void(*xDestroy)(void*));
};
/*
@@ -596,6 +602,8 @@ typedef int (*sqlite3_loadext_entry)(
#define sqlite3_str_errcode sqlite3_api->str_errcode
#define sqlite3_str_length sqlite3_api->str_length
#define sqlite3_str_value sqlite3_api->str_value
+/* Version 3.25.0 and later */
+#define sqlite3_create_window_function sqlite3_api->create_window_function
#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */
#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)