Added Day-1-Text-to-SQL folder with db.py and ollama-TTSQL.py
This commit is contained in:
10
week1/community-contributions/Day-1-Text-to-sql/db.py
Normal file
10
week1/community-contributions/Day-1-Text-to-sql/db.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import mysql.connector
|
||||
|
||||
def get_connection():
|
||||
conn = mysql.connector.connect(
|
||||
host="127.0.0.1",
|
||||
user="root",
|
||||
password="xyz",
|
||||
database="your_database"
|
||||
)
|
||||
return conn
|
||||
Reference in New Issue
Block a user