Logo
Explore Help
Sign In
davide/palladum-lightning
1
0
Fork 0
You've already forked palladum-lightning
Code Issues Pull Requests Actions 5 Packages Projects Releases Wiki Activity
Files
38601afd17164d7180ed67ba7af155b480be0723
palladum-lightning/wallet/db_sqlite3.c

14 lines
262 B
C
Raw Normal View History

wallet: Add tooling to extract SQL queries and generate driver info This is the counterpart of the annotations we did in the last few commits. It extracts queries, passes them through a driver-specific query rewriter and dumps them into a driver-specific query-list, along with some metadata to facilitate processing later on. The generated query list is then registered as a `db_config` and will be loaded by the driver upon instantiation. Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-07-24 18:29:03 +02:00
#include <wallet/db_common.h>
#include "gen_db_sqlite3.c"
#if HAVE_SQLITE3
struct db_config db_sqlite3_config = {
.name = "sqlite3",
.queries = db_sqlite3_queries,
.num_queries = DB_SQLITE3_QUERY_COUNT,
};
AUTODATA(db_backends, &db_sqlite3_config);
#endif
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 250ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API