Page MenuHomeMiraheze

read_db.py

Authored By
Paladox
Feb 9 2021, 23:16
Size
349 B
Referenced Files
None
Subscribers
None

read_db.py

#! /usr/bin/python3
import sqlite3, csv
conn = sqlite3.connect('/home/southparkfan/resp_time.db')
cur = conn.cursor()
cur.execute("SELECT * FROM 'resp_time';")
rows = cur.fetchall()
with open("resp_time.csv", "wb") as write_file:
for row in rows:
writeRow = ",".join([str(i) for i in row])
write_file.write(writeRow.encode() + "\n".encode())

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
35/92/e2f08df0daf9737543621c63b357
Default Alt Text
read_db.py (349 B)

Event Timeline