Skip to content

cockroachdb/example-app-python-asyncpg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-app-python-asyncpg

This repo has a simple CRUD Python application that uses the asyncpg driver.

Before you begin

To run this example you must have:

  • Python 3
  • A CockroachDB cluster v23.1 or greater

Install the dependencies

In a terminal run the following command:

pip install -r requirements.txt

Set the CockroachDB connection URL

In a terminal set a DATABASE_URL environment variable to the connection URL for your CockroachDB cluster.

For example on Mac and Linux:

export DATABASE_URL='<connection URL>'

Run the example

To run the example, in a terminal run the following command:

python3 example.py

About

Simple CRUD application in Python using the asyncpg driver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages