Skip to content

n-malih/Turso_SQL_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Turso SQL Client

A simple Python command-line tool for querying Turso SQLite databases over HTTP using the pipeline API.

πŸ”§ Features

  • Send raw SQL queries to your Turso database directly from the terminal
  • Works with Turso's HTTP API
  • Lightweight and easy to configure

πŸ“¦ Requirements

  • Python 3.7+
  • requests

Replace the TOKEN and URL values with your own:

TOKEN = 'your_turso_auth_token_here'
URL = 'https://your-database-name.turso.io/v2/pipeline'

Replace 'your_turso_auth_token_here' with your actual Turso API token.

Replace 'https://your-database-name.turso.io/v2/pipeline' with your database URL.

If your Turso URL starts with libsql://, you must replace libsql:// with https://

Append /v2/pipeline to the end

Example: libsql://my-db-name.turso.io -> becomes: https://my-db-name.turso.io/v2/pipeline

Refer to Turso HTTP SDK Quickstart for more details.


Run the tool

python turso_sql_client.py

You'll see a prompt like this:

sql: >

Enter your SQL queries interactively.

πŸ”Ž Example Query

SELECT * FROM Table_Name

About

Simple Turso SQL client for querying Turso SQLite databases over HTTP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages