MCPcopy Index your code
hub / github.com/antirez/botlib / sqlQuery

Function sqlQuery

sqlite_wrap.c:184–192  ·  view source on GitHub ↗

Wrapper for sqlGenericQuery() returning 1 if the query resulted in * SQLITE_DONE, otherwise zero. This is good for UPDATE and DELETE * statements. */

Source from the content-addressed store, hash-verified

182 * SQLITE_DONE, otherwise zero. This is good for UPDATE and DELETE
183 * statements. */
184int sqlQuery(sqlite3 *dbhandle, const char *sql, ...) {
185 int64_t retval = 0;
186 va_list ap;
187 va_start(ap,sql);
188 int rc = sqlGenericQuery(dbhandle,NULL,sql,ap);
189 retval = (rc == SQLITE_DONE);
190 va_end(ap);
191 return retval;
192}
193
194/* Wrapper for sqlGenericQuery() using varialbe number of args.
195 * This is what you want when doing SELECT queries. */

Callers 3

kvSetLenFunction · 0.85
kvGetFunction · 0.85
kvDelFunction · 0.85

Calls 1

sqlGenericQueryFunction · 0.85

Tested by

no test coverage detected