forked from Pavel_Durov/python_bot
тст
This commit is contained in:
parent
c1053d99f4
commit
91aa03a226
BIN
dickpick.db
BIN
dickpick.db
Binary file not shown.
4
sql.py
4
sql.py
@ -7,11 +7,11 @@ async def db_start(): #подключение к бд
|
||||
db = sq.connect('dickpick.db')
|
||||
cur = db.cursor()
|
||||
|
||||
cur.execute(''''CREATE TABLE IF NOT EXISTS users(id INTEGER PRIMARY KEY, users_id INTEGER, user_name TEXT, dick_size INTEGER)''')
|
||||
cur.execute(''''CREATE TABLE IF NOT EXISTS users(id INTEGER PRIMARY KEY, users_id INTEGER, user_name TEXT)''')
|
||||
db.commit()
|
||||
|
||||
async def add_user():
|
||||
cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?)''',[id1, fullname1])
|
||||
cur.execute('''INSERT INTO users (users_id, user_name) VALUES (?, ?)''',[id1, fullname1])
|
||||
db.commit()
|
||||
|
||||
async def close():
|
||||
|
Loading…
Reference in New Issue
Block a user