https://github.com/gptscript-ai/mysql
https://github.com/gptscript-ai/mysql
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/gptscript-ai/mysql
- Owner: gptscript-ai
- License: apache-2.0
- Created: 2024-03-28T17:00:00.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T21:45:11.000Z (almost 2 years ago)
- Last Synced: 2024-08-07T00:59:53.731Z (almost 2 years ago)
- Language: Python
- Size: 189 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MYSQL Query
Since this example requires the ability to access a mysql database with loaded data, this document serves as a guide in how to set up a given environment so that the example can be run as provided.
## Prerequisites
- Python 3.x
- OpenAI API Key
- Access information to a MYSQL database
## Setting Environment Variables
| variable | example value |
| --------- | -------------------- |
| `DB_USER` | `root` |
| `DB_PASS` | `your_root_password` |
| `DB_HOST` | `127.0.0.1` |
| `DB_PORT` | `3306` |
| `DB_NAME` | `employees` |
## Examples
Examples of tool usage can be seen in the examples directory. The simple overview of the strucutre is the inclusion of the tool, and then providing the prompt to be answered.