← Latest products

SQL-tString a t-string SQL builder in Python

SQL-tString allows for f-string like construction of sql queries. SQL-tString is a SQL builder that utilises the recently accepted PEP-750, https://peps.python.org/pep-0750/ , t-strings to build SQL queries, for example, from sql_tstring import sql val = 2 query, values = sql(t"SELECT x FROM y WHERE x = {val}") assert query == "SELECT x FROM y WHERE x = ?" assert.

Open source

162 stars · GitHubexternal site

Visit github.comexternal site

Reactions (1)

Similar products

by description similarity

  1. A website to convert SQL queries between different dialects

    Hacker News19 pts

  2. Py-SQL-cleaner

    github.com

    format SQL embedded in Python strings

    Hacker News7 pts

  3. 🤖 Chat with your SQL database 📊. Accurate Text-to-SQL Generation via LLMs using Agentic Retrieval 🔄.

    Hacker News21 pts

  4. Sqlit

    github.com

    A lazygit-style TUI for SQL databases

    Hacker News190 pts

  5. tail -f for SQLite. Every statement any process on the box runs against libsqlite3 — the SQL (syntax-highlighted), the values bound to its ? placeholders, the per-step latency and result code — decoded and streamed live to your terminal. No cooperation from the traced apps, no recompile, no PRAGMA.

    Hacker News5 pts