SMS-proj is a project to send receive SMS messages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
sms-proj/populate-sms-db.py

15 lines
467 B

#make sms db.
import sqlite3
smsdb = sqlite3.connect('sms.db')
smscursor = smsdb.cursor()
smscursor.execute('''CREATE TABLE sms
(id text, date text, to_did text, from_did text, message text)''')
smscursor.execute("INSERT INTO sms VALUES ('0','123456789','9515551212','4245556053','booooooooooooooo')")
smscursor.execute("INSERT INTO sms VALUES ('1','128917422','9515551212','4245556053','hihi hows you?')")
# Save (commit) the changes
smsdb.commit()