2024-02-24 23:21:23 +01:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
import sqlite3
|
2024-02-24 23:02:20 +01:00
|
|
|
|
2024-02-24 23:21:23 +01:00
|
|
|
db = sqlite3.connect("main.sqlite")
|
2024-02-24 23:02:20 +01:00
|
|
|
|
2024-02-24 23:21:23 +01:00
|
|
|
db.execute('INSERT INTO products VALUES (\
|
|
|
|
"Yuxin Little Magic", \
|
|
|
|
"Rubiks Cube", \
|
|
|
|
5.00, \
|
|
|
|
"Really fast", \
|
|
|
|
0.8, \
|
|
|
|
0.8, \
|
|
|
|
0, \
|
|
|
|
0\
|
|
|
|
)')
|
|
|
|
|
|
|
|
db.commit()
|
|
|
|
db.close()
|