mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-16 06:11:25 +08:00
improve sqlite3 support -> added mixins -> fixes #84
This commit is contained in:
1 parent
acc8a4bc66
commit
2ee09980eb
2 files changed
+46
No files matched your search
@@ -67,6 +67,26 @@ def example(a):
|
||||
#? str()
|
||||
example('')
|
||||
|
||||
|
||||
# -----------------
|
||||
# sqlite3 (#84)
|
||||
# -----------------
|
||||
|
||||
import sqlite3
|
||||
#? sqlite3.Connection()
|
||||
con = sqlite3.connect()
|
||||
#? sqlite3.Cursor()
|
||||
c = con.cursor()
|
||||
#? sqlite3.Row()
|
||||
row = c.fetchall()[0]
|
||||
#? str()
|
||||
row.keys()[0]
|
||||
|
||||
def huhu(db):
|
||||
"""db (sqlite3.Connection): the db connection"""
|
||||
#? sqlite3.Connection()
|
||||
db
|
||||
|
||||
# -----------------
|
||||
# various regression tests
|
||||
# -----------------
|
||||
|
||||
Reference in new issue
Block a user