-
-
Save flossypurse/c9990c8778310297da7910bca552c478 to your computer and use it in GitHub Desktop.
Example function that inserts a user into a database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def _create_user(user: int): | |
| conn.execute("INSERT INTO users (value) VALUES (?)", (user,)) | |
| conn.commit() | |
| print(f"User {user} has been inserted to database") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment