Created
February 27, 2022 15:45
-
-
Save tomrockdsouza/4e572a164e3dd092933bfbf37a83c00c to your computer and use it in GitHub Desktop.
Create a SQLite database within seconds without 3rd party libraries.
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
import sqlite3 | |
import re | |
if __name__ == '__main__': | |
database_name=input('Enter Database Name: ') | |
database_name=re.sub(r'\W+', '', database_name) | |
conn = sqlite3.connect('./'+database_name+'.db') | |
conn.close() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment