Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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)

Release History

Release History

This version
History Node

0.3.1

History Node

0.3

History Node

0.2

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
TracSQL-0.3.1.tar.gz (6.9 kB) Copy SHA256 Checksum SHA256 Source Feb 1, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting