Skip to content

Instantly share code, notes, and snippets.

@tashrifbillah
Last active November 18, 2020 18:56
Show Gist options
  • Save tashrifbillah/1d01e38ac3dafef7ac916bb30849fc16 to your computer and use it in GitHub Desktop.
Save tashrifbillah/1d01e38ac3dafef7ac916bb30849fc16 to your computer and use it in GitHub Desktop.
db file browser
#!/usr/bin/env python
import sqlite3
from os.path import abspath
import sys
conn= sqlite3.connect(abspath(sys.argv[1]))
cur = conn.cursor()
cur.execute("SELECT * FROM tasks")
rows= cur.fetchall()
for row in rows:
print(row)
conn.close()
@tashrifbillah
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment