コード例 #1
0
ファイル: data.py プロジェクト: Jialijuan/papermachines
def get_database_connection():
    db=jsqlite3.connect(geodict_config.database+'.db')
    cursor=db.cursor()
    return cursor
コード例 #2
0
ファイル: db_funcs.py プロジェクト: casunlight/papermachines
 def get_database_connection(self):
     db=jsqlite3.connect(self.database_path)
     cursor=db.cursor()
     return cursor
コード例 #3
0
ファイル: db_funcs.py プロジェクト: yungly/papermachines
 def get_database_connection(self):
     db = jsqlite3.connect(self.database_path)
     cursor = db.cursor()
     return cursor
コード例 #4
0
ファイル: test.py プロジェクト: yungly/papermachines
#!/usr/bin/python
import jsqlite3

con = jsqlite3.connect("geodict.db")
cur = con.cursor()
cur.execute("SELECT COUNT(*) FROM sqlite_master WHERE name = ?;", ['cities'])
print cur.fetchone()
コード例 #5
0
ファイル: test.py プロジェクト: Jialijuan/papermachines
#!/usr/bin/python
import jsqlite3

con = jsqlite3.connect("geodict.db")
cur = con.cursor()
cur.execute("SELECT COUNT(*) FROM sqlite_master WHERE name = ?;",['cities'])
print cur.fetchone()