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

Function db_prepare_untranslated

db/utils.c:121–137  ·  view source on GitHub ↗

Provides replication and hook interface for raw SQL too */

Source from the content-addressed store, hash-verified

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

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