Daily Repetition: Tool #3
Today we connect to a database. Use SQLite for simplicity.
Implementation
- Install
sqlite3orbetter-sqlite3. - Create a tool
query_dbthat takes asqlstring. - Return the results as a JSON string in the tool output.
Assignment: Create a table users, insert a row, and use the tool to fetch it.