Home
last modified time | relevance | path

Searched refs:colname (Results 1 – 7 of 7) sorted by relevance

/external/libwebsockets/lib/misc/
Dlws-struct-sqlite.c57 if (!cv[n] || strcmp(cn[n], map->colname)) in lws_struct_sq3_deser_cb()
203 schema->colname, where, order ? order : "", in lws_struct_sq3_deserialize()
228 size_t sql_est = 46 + strlen(schema->colname) + 1; in _lws_struct_sq3_ser_one()
241 sql_est += strlen(map[n].colname) + 2; in _lws_struct_sq3_ser_one()
288 schema->colname); in _lws_struct_sq3_ser_one()
302 map[n].colname); in _lws_struct_sq3_ser_one()
403 schema->colname); in lws_struct_sq3_create_table()
417 if (map->colname[0] != '_') /* _lws_idx is not primary key */ in lws_struct_sq3_create_table()
420 map->colname, use); in lws_struct_sq3_create_table()
421 if (map->colname[0] != '_') in lws_struct_sq3_create_table()
[all …]
Dlws-struct-lejp.c42 if (strcmp(ctx->buf, map->colname)) { in lws_struct_schema_only_lejp_cb()
60 lejp_parser_push(ctx, a->dest, &map->child_map[0].colname, in lws_struct_schema_only_lejp_cb()
141 if (strcmp(map->colname, ctx->buf)) { in lws_struct_default_lejp_cb()
508 map->colname); in lws_struct_json_serialize()
636 "\"%s\"", map->colname); in lws_struct_json_serialize()
/external/python/cpython3/Modules/_sqlite/
Dcursor.c126 const char* colname; in pysqlite_build_row_cast_map() local
143 colname = sqlite3_column_name(self->statement->st, i); in pysqlite_build_row_cast_map()
144 if (colname) { in pysqlite_build_row_cast_map()
146 for (pos = colname; *pos != 0; pos++) { in pysqlite_build_row_cast_map()
196 _pysqlite_build_column_name(pysqlite_Cursor *self, const char *colname) in _pysqlite_build_column_name() argument
201 if (!colname) { in _pysqlite_build_column_name()
206 for (pos = colname; *pos; pos++) { in _pysqlite_build_column_name()
208 if ((pos != colname) && (*(pos-1) == ' ')) { in _pysqlite_build_column_name()
214 len = pos - colname; in _pysqlite_build_column_name()
217 len = strlen(colname); in _pysqlite_build_column_name()
[all …]
/external/python/cpython2/Modules/_sqlite/
Dcursor.c162 const char* colname; in pysqlite_build_row_cast_map() local
178 colname = sqlite3_column_name(self->statement->st, i); in pysqlite_build_row_cast_map()
179 if (colname) { in pysqlite_build_row_cast_map()
180 for (pos = colname; *pos != 0; pos++) { in pysqlite_build_row_cast_map()
239 PyObject* _pysqlite_build_column_name(const char* colname) in _pysqlite_build_column_name() argument
243 if (!colname) { in _pysqlite_build_column_name()
248 for (pos = colname;; pos++) { in _pysqlite_build_column_name()
250 if ((*pos == '[') && (pos > colname) && (*(pos-1) == ' ')) { in _pysqlite_build_column_name()
253 return PyString_FromStringAndSize(colname, pos - colname); in _pysqlite_build_column_name()
304 const char* colname; in _pysqlite_fetch_one_row() local
[all …]
/external/python/cpython2/Lib/bsddb/test/
Dtest_dbtables.py61 colname = 'cool numbers'
66 self.tdb.CreateTable(tabname, [colname])
69 self.tdb.Insert(tabname, {colname: pickle.dumps(3.14159, 1)})
71 self.tdb.Insert(tabname, {colname: pickle.dumps(3.14159,
78 tabname, [colname], conditions={colname: None})
82 colval = pickle.loads(values[0][colname])
84 colval = pickle.loads(bytes(values[0][colname], "iso8859-1"))
/external/libwebsockets/include/libwebsockets/
Dlws-struct.h48 const char *colname; member
/external/libwebsockets/plugins/generic-sessions/
Dhandlers.c247 static const char * const colname[] = { "username", "email" }; in lwsgs_handler_check() local
276 colname[n], lws_sql_purify(esc, pc, sizeof(esc) - 1)); in lwsgs_handler_check()