mirror of
https://github.com/tursodatabase/libsql.git
synced 2025-03-08 22:31:40 +00:00
A common complain with libSQL is how to run extensions. The main mechanism, with a .so, has a lot of issues around how those .so are distributed. The most common extensions are the ones in the sqlean package. We can improve this experience by bundling them in our sqlite build. Not all SQLean extensions are kosher: some of them, like fileio, use the vfs. Others, are deemed too complex. The extensions included here are a subset that we deem important enough, and low risk enough, to just be a part of the main bundle.
18 lines
439 B
C
18 lines
439 B
C
// Copyright (c) 2023 Anton Zhiyanov, MIT License
|
|
// https://github.com/nalgeon/sqlean
|
|
|
|
// User-defined functions in SQLite.
|
|
|
|
#ifndef DEFINE_INTERNAL_H
|
|
#define DEFINE_INTERNAL_H
|
|
|
|
#include "sqlite3ext.h"
|
|
|
|
int define_save_function(sqlite3* db, const char* name, const char* type, const char* body);
|
|
|
|
int define_eval_init(sqlite3* db);
|
|
int define_manage_init(sqlite3* db);
|
|
int define_module_init(sqlite3* db);
|
|
|
|
#endif /* DEFINE_INTERNAL_H */
|