diff --git a/sqlite3-python/README.md b/sqlite3-python/README.md index c9facc3..3e07cbe 100644 --- a/sqlite3-python/README.md +++ b/sqlite3-python/README.md @@ -1,3 +1,12 @@ +# Simple +```python +import sqlite3 +conn = sqlite3.connect('db.sqlite', isolation_level=None) +conn.row_factory = lambda *args: dict(sqlite3.Row(*args)) +sql = lambda *args: list(conn.execute(*args)) +sql('PRAGMA journal_mode=WAL') +``` +# Class ```python class SQL: def __init__(self, filename='db.sqlite'):