initial commit
This commit is contained in:
14
hello.py
Normal file
14
hello.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import sqlite_utils
|
||||
|
||||
#Create (or open) the database
|
||||
db = sqlite_utils.Database("dbot.db")
|
||||
|
||||
#Create the 'users' table with some example columns
|
||||
#primary_key=True means 'id' will be the unique identifier
|
||||
db["users"].create({
|
||||
"id": int,
|
||||
"username": str,
|
||||
"balance": int
|
||||
}, pk="id", if_not_exists=True)
|
||||
|
||||
print("Database and 'users' table created successfully!")
|
||||
Reference in New Issue
Block a user