aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/sqlite3/sqlite3ext.h
diff options
context:
space:
mode:
authorgvit <gvit@ydb.tech>2022-07-11 13:20:36 +0300
committergvit <gvit@ydb.tech>2022-07-11 13:20:36 +0300
commit285021ab1aac39e84b269d9bacd4deee69cf63fc (patch)
tree36d0798a73ed651f59584d66b7753c1055099cb5 /contrib/libs/sqlite3/sqlite3ext.h
parent8895ca7eeadc7a652558c10eb505ff84270a14b2 (diff)
downloadydb-285021ab1aac39e84b269d9bacd4deee69cf63fc.tar.gz
Change "flat_ut.cpp": remove failing init root test
Diffstat (limited to 'contrib/libs/sqlite3/sqlite3ext.h')
-rw-r--r--contrib/libs/sqlite3/sqlite3ext.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/libs/sqlite3/sqlite3ext.h b/contrib/libs/sqlite3/sqlite3ext.h
index 2eac4f3f05..2cdd0e429b 100644
--- a/contrib/libs/sqlite3/sqlite3ext.h
+++ b/contrib/libs/sqlite3/sqlite3ext.h
@@ -351,6 +351,12 @@ struct sqlite3_api_routines {
int (*vtab_in)(sqlite3_index_info*,int,int);
int (*vtab_in_first)(sqlite3_value*,sqlite3_value**);
int (*vtab_in_next)(sqlite3_value*,sqlite3_value**);
+ /* Version 3.39.0 and later */
+ int (*deserialize)(sqlite3*,const char*,unsigned char*,
+ sqlite3_int64,sqlite3_int64,unsigned);
+ unsigned char *(*serialize)(sqlite3*,const char *,sqlite3_int64*,
+ unsigned int);
+ const char *(*db_name)(sqlite3*,int);
};
/*
@@ -669,6 +675,12 @@ typedef int (*sqlite3_loadext_entry)(
#define sqlite3_vtab_in sqlite3_api->vtab_in
#define sqlite3_vtab_in_first sqlite3_api->vtab_in_first
#define sqlite3_vtab_in_next sqlite3_api->vtab_in_next
+/* Version 3.39.0 and later */
+#ifndef SQLITE_OMIT_DESERIALIZE
+#define sqlite3_deserialize sqlite3_api->deserialize
+#define sqlite3_serialize sqlite3_api->serialize
+#endif
+#define sqlite3_db_name sqlite3_api->db_name
#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */
#if !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION)