MCPcopy Create free account
hub / github.com/ElementsProject/lightning / db_prepare_untranslated

Function db_prepare_untranslated

db/utils.c:120–136  ·  view source on GitHub ↗

Provides replication and hook interface for raw SQL too */

Source from the content-addressed store, hash-verified

118
119/* Provides replication and hook interface for raw SQL too */
120struct db_stmt *db_prepare_untranslated(struct db *db, const char *query)
121{
122 struct db_query *db_query = tal(NULL, struct db_query);
123 struct db_stmt *stmt;
124
125 db_query->name = db_query->query = query;
126 db_query->placeholders = strcount(query, "?");
127 db_query->readonly = false;
128
129 /* Use raw accessors! */
130 db_query->colnames = NULL;
131 db_query->num_colnames = 0;
132
133 stmt = db_prepare_core(db, "db_prepare_untranslated", db_query);
134 tal_steal(stmt, db_query);
135 return stmt;
136}
137
138bool db_query_prepared(struct db_stmt *stmt)
139{

Callers 4

prepare_table_manipFunction · 0.85
complete_table_manipFunction · 0.85

Calls 2

strcountFunction · 0.85
db_prepare_coreFunction · 0.85

Tested by

no test coverage detected