https://github.com/trac-hacks/tracsql
Plugin to perform SQL queries on the project database for Trac.
https://github.com/trac-hacks/tracsql
trac-plugin
Last synced: 3 months ago
JSON representation
Plugin to perform SQL queries on the project database for Trac.
- Host: GitHub
- URL: https://github.com/trac-hacks/tracsql
- Owner: trac-hacks
- License: other
- Created: 2010-05-27T21:54:23.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2019-11-14T11:09:42.000Z (over 6 years ago)
- Last Synced: 2025-08-27T00:25:16.194Z (10 months ago)
- Topics: trac-plugin
- Language: Python
- Homepage: http://trac-hacks.org/wiki/TracSqlPlugin
- Size: 319 KB
- Stars: 7
- Watchers: 4
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:

