Skip to main content

A Trac plugin for querying the project database

Project description

# TracSQL

The TracSQL project is a plugin for the [trac](https://trac.edgewall.org/) project management tool.

A “SQL” tab is added to the Trac project. Inside this tab, the plugin supports interacting with the project database.

Some features include:

  • Perform queries on the project database

  • View results as raw or formatted (and hyper-linked) output

  • Export result set in CSV

  • Browse the database schema (including table and index information)

This plugin supports Trac installations with SQLite, MySQL, and PostgreSQL database backends (although your raw queries may need to be written differently according to which SQL database is being used).

## Installation

The TracSQL plugin can be installed using standard:

` $ pip install tracsql `

Or, grab the sources and build using:

` $ python setup.py install `

## Configuration

It is configured in the trac.ini file by enabling and configuring:

`ini [components] tracsql.* = enabled `

The TRAC_ADMIN permission is used to control access to the query pages.

By default, the TracSQL plugin connects to the project database. To use an external database, set the database parameter in the tracsql section of the trac.ini file to a valid database connection string:

`ini [tracsql] database = sqlite:db/external.db `

# Examples

Some screensots, showing a few of the features:

![SQL Query](https://github.com/trac-hacks/tracsql/raw/master/docs/sql-query.png)

![SQL Schema](https://github.com/trac-hacks/tracsql/raw/master/docs/sql-schema.png)

Project details


Download files

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

Source Distribution

TracSQL-0.3.1.tar.gz (6.9 kB view details)

Uploaded Source

File details

Details for the file TracSQL-0.3.1.tar.gz.

File metadata

  • Download URL: TracSQL-0.3.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for TracSQL-0.3.1.tar.gz
Algorithm Hash digest
SHA256 ab8950203a8ccd626d4ff6bae678b24f936378067dc9018d9abbf71abfc822e6
MD5 d53b83ac2c3bef5530067a65c89c5a60
BLAKE2b-256 f76a7a0dff79e4dbe97e8447b1a7406b7cd5b5151ed16f5b47c81cabc7d82b18

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