Skip to content

Veeeetzzzz/langchain-sql-db-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Langchain SQL database examples

Examples of how to use Langchain to connect to mySQL/PostgreSQL databases - use these to interact with your database & load data.

This Python script connects to a mySQL/PostgreSQL database and imports a specified table. Error messages will confirm once you connect to database and how many rows it was able to select from the table.

Usage

These will all be in Python - so download the script you want to use, update the file with your DB type and connection information and then navigate to the directory it's stored in via CMD/PowerShell/Terminal and run:

python connect.py

Output should look like this:

image

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Languages