Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Utility python package to access a Cloud SQL database on meeshkan.io

License

Notifications You must be signed in to change notification settings

meeshkan/meeshkan-hosted-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

meeshkan-hosted-db

Utility python package to access a Cloud SQL for PostgreSQL database using psycopg2 on meeshkan.io.

from meeshkan_hosted_db import connect_to_db

with connect_to_db() as db:
    with db.cursor() as cursor:
        cursor.execute("SELECT NOW() as now;")
        result = cursor.fetchall()
    current_time = result[0][0]

About

Utility python package to access a Cloud SQL database on meeshkan.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published