Skip to main content

Command line interface for the TinyQueries Compiler

Project description

tqc-py

Command line interface written in Python for the TinyQueries™ Compiler

Installation

  • Make sure you have an API key for the TinyQueries™ Compiler - you can get one here: https://tinyqueries.com/signup.
  • Add the API key as TINYQUERIES_API_KEY to your ENV variables.
  • Make sure you have Python and pip installed
  • run pip install tqc

Setup TinyQueries™ for your project

It is assumed you have a folder for your project. It can be an empty folder or a folder which contains other code as well.

  • Create a folder inside your project folder (for example tinyqueries) in which you put your TinyQueries source queries
  • Create a folder inside your project folder (for example sql) in which you want the compiler to put your compiled queries
  • Create a config file tinyqueries.json or tinyqueries.yaml in the root of your project folder. For example:
project:
  label: my-project-label
compiler:
  dialect: mysql
  input: ./tinyqueries
  output: ./sql

For a more detailed description of config files please check https://compile.tinyqueries.com

Compile your queries

Once you have setup your project you just have to execute

tqc

from your project folder each time you want to compile your source files

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tqc-0.2.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file tqc-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: tqc-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for tqc-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 59fa109ebd377ec17843c12472fcc9a055078f7c07a677b16bfd7a2d55a24c1a
MD5 7b30fa3167c24fc8f916364791838f4d
BLAKE2b-256 5594c046c2198a59fa57024b1f066ca7673837edccdd56092a5e5f250c96b6fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page