/external/python/cpython2/Doc/includes/sqlite3/ |
H A D | execsql_printall_1.py | 7 cur = con.cursor() variable 10 cur.execute("select * from people order by age") 13 print cur.fetchall()
|
H A D | execute_3.py | 5 cur = con.cursor() variable 10 cur.execute("select name_last, age from people where name_last=:who and age=:age", 12 print cur.fetchone()
|
H A D | executescript.py | 4 cur = con.cursor() variable 5 cur.executescript("""
|
H A D | collation_reverse.py | 9 cur = con.cursor() variable 10 cur.execute("create table test(x)") 11 cur.executemany("insert into test(x) values (?)", [("a",), ("b",)]) 12 cur.execute("select x from test order by x collate reverse") 13 for row in cur:
|
H A D | createdb.py | 13 cur = con.cursor() variable 14 cur.execute(""" 22 cur.execute("insert into people (name_last, age) values ('Yeltsin', 72)") 23 cur.execute("insert into people (name_last, age) values ('Putin', 51)") 27 cur.close()
|
H A D | execsql_fetchonerow.py | 5 cur = con.cursor() variable 10 cur.execute(SELECT) 11 for (name_last, age) in cur: 15 cur.execute(SELECT) 16 for row in cur:
|
H A D | execute_1.py | 4 cur = con.cursor() variable 5 cur.execute("create table people (name_last, age)") 11 cur.execute("insert into people values (?, ?)", (who, age)) 14 cur.execute("select * from people where name_last=:who and age=:age", {"who": who, "age": age}) 16 print cur.fetchone()
|
H A D | executemany_2.py | 9 cur = con.cursor() variable 10 cur.execute("create table characters(c)") 12 cur.executemany("insert into characters(c) values (?)", char_generator()) 14 cur.execute("select c from characters") 15 print cur.fetchall()
|
H A D | mysumaggr.py | 15 cur = con.cursor() variable 16 cur.execute("create table test(i)") 17 cur.execute("insert into test(i) values (1)") 18 cur.execute("insert into test(i) values (2)") 19 cur.execute("select mysum(i) from test") 20 print cur.fetchone()[0]
|
H A D | text_factory.py | 4 cur = con.cursor() variable 9 cur.execute("select ?", (AUSTRIA,)) 10 row = cur.fetchone() 15 cur.execute("select ?", (AUSTRIA,)) 16 row = cur.fetchone() 26 cur.execute("select ?", ("this is latin1 and would normally create errors" + 28 row = cur.fetchone() 34 cur.execute("select ?", (AUSTRIA,)) 35 row = cur.fetchone() 38 cur [all...] |
H A D | pysqlite_datetime.py | 5 cur = con.cursor() variable 6 cur.execute("create table test(d date, ts timestamp)") 11 cur.execute("insert into test(d, ts) values (?, ?)", (today, now)) 12 cur.execute("select d, ts from test") 13 row = cur.fetchone() 17 cur.execute('select current_date as "d [date]", current_timestamp as "ts [timestamp]"') 18 row = cur.fetchone()
|
/external/python/cpython3/Doc/includes/sqlite3/ |
H A D | execsql_printall_1.py | 7 cur = con.cursor() variable 10 cur.execute("select * from people order by age") 13 print(cur.fetchall())
|
H A D | execute_3.py | 5 cur = con.cursor() variable 10 cur.execute("select name_last, age from people where name_last=:who and age=:age", 12 print(cur.fetchone())
|
H A D | executescript.py | 4 cur = con.cursor() variable 5 cur.executescript("""
|
H A D | collation_reverse.py | 14 cur = con.cursor() variable 15 cur.execute("create table test(x)") 16 cur.executemany("insert into test(x) values (?)", [("a",), ("b",)]) 17 cur.execute("select x from test order by x collate reverse") 18 for row in cur:
|
H A D | createdb.py | 13 cur = con.cursor() variable 14 cur.execute(""" 22 cur.execute("insert into people (name_last, age) values ('Yeltsin', 72)") 23 cur.execute("insert into people (name_last, age) values ('Putin', 51)") 27 cur.close()
|
H A D | execsql_fetchonerow.py | 5 cur = con.cursor() variable 10 cur.execute(SELECT) 11 for (name_last, age) in cur: 15 cur.execute(SELECT) 16 for row in cur:
|
H A D | execute_1.py | 4 cur = con.cursor() variable 5 cur.execute("create table people (name_last, age)") 11 cur.execute("insert into people values (?, ?)", (who, age)) 14 cur.execute("select * from people where name_last=:who and age=:age", {"who": who, "age": age}) 16 print(cur.fetchone())
|
H A D | executemany_2.py | 9 cur = con.cursor() variable 10 cur.execute("create table characters(c)") 12 cur.executemany("insert into characters(c) values (?)", char_generator()) 14 cur.execute("select c from characters") 15 print(cur.fetchall())
|
H A D | mysumaggr.py | 15 cur = con.cursor() variable 16 cur.execute("create table test(i)") 17 cur.execute("insert into test(i) values (1)") 18 cur.execute("insert into test(i) values (2)") 19 cur.execute("select mysum(i) from test") 20 print(cur.fetchone()[0])
|
H A D | pysqlite_datetime.py | 5 cur = con.cursor() variable 6 cur.execute("create table test(d date, ts timestamp)") 11 cur.execute("insert into test(d, ts) values (?, ?)", (today, now)) 12 cur.execute("select d, ts from test") 13 row = cur.fetchone() 17 cur.execute('select current_date as "d [date]", current_timestamp as "ts [timestamp]"') 18 row = cur.fetchone()
|
/external/libxml2/example/ |
H A D | gjobread.c | 46 parsePerson(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) { argument 62 cur = cur->xmlChildrenNode; 63 while (cur != NULL) { 64 if ((!xmlStrcmp(cur->name, (const xmlChar *)"Person")) && 65 (cur->ns == ns)) 66 ret->name = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); 67 if ((!xmlStrcmp(cur->name, (const xmlChar *)"Email")) && 68 (cur->ns == ns)) 69 ret->email = xmlNodeListGetString(doc, cur 80 printPerson(personPtr cur) argument 109 parseJob(xmlDocPtr doc, xmlNsPtr ns, xmlNodePtr cur) argument 155 printJob(jobPtr cur) argument 185 xmlNodePtr cur; local 278 handleGjob(gJobPtr cur) argument 290 gJobPtr cur; local [all...] |
/external/libxml2/doc/tutorial/ |
H A D | includekeyword.c | 9 parseStory (xmlDocPtr doc, xmlNodePtr cur) { 12 cur = cur->xmlChildrenNode; 13 while (cur != NULL) { 14 if ((!xmlStrcmp(cur->name, (const xmlChar *)"keyword"))) { 15 key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); 19 cur = cur->next; 28 xmlNodePtr cur; 37 cur [all...] |
/external/lzma/C/ |
H A D | LzHash.h | 15 #define HASH2_CALC hv = cur[0] | ((UInt32)cur[1] << 8);
18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
20 hv = (temp ^ ((UInt32)cur[2] << 8)) & p->hashMask; }
23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
25 temp ^= ((UInt32)cur[2] << 8); \
27 hv = (temp ^ (p->crc[cur[3]] << 5)) & p->hashMask; }
30 UInt32 temp = p->crc[cur[ [all...] |
/external/libcap-ng/libcap-ng-0.7/utils/ |
H A D | proc-llist.c | 32 l->cur = NULL; 61 l->cur->next = newnode; 64 l->cur = newnode; 71 register lnode* cur; local 73 cur = l->head; 74 while (cur) { 75 nextnode=cur->next; 76 free(cur->cmd); 77 free(cur->capabilities); 78 free(cur 89 register lnode* cur; local [all...] |