Update sqlite3-python/README.md
This commit is contained in:
@@ -1,11 +1,9 @@
|
|||||||
# Simplest
|
# Simplest
|
||||||
```python
|
```python
|
||||||
def SQL():
|
def SQL():
|
||||||
import sqlite3
|
sql = __import__('sqlite3').connect('sql.db', isolation_level=None).execute
|
||||||
conn = sqlite3.connect('db.sqlite', isolation_level=None)
|
sql('PRAGMA journal_mode=WAL')
|
||||||
conn.execute('PRAGMA journal_mode=WAL')
|
return lambda *args: listsql(*args))
|
||||||
conn.row_factory = sqlite3.Row
|
|
||||||
return lambda *args: [dict(row) for row in conn.execute(*args)]
|
|
||||||
sql = SQL()
|
sql = SQL()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user