Changes between Version 10 and Version 11 of SqlAlchemyQueryMacro


Ignore:
Timestamp:
Feb 28, 2015, 11:00:18 PM (9 years ago)
Author:
Ryan J Ollos
Comment:

Added syntax highlighting.

Legend:

Unmodified
Added
Removed
Modified
  • SqlAlchemyQueryMacro

    v10 v11  
    2323You can check out SqlAlchemyQueryMacro from [http://trac-hacks.org/svn/sqlalchemyquerymacro here] using Subversion, or [source:sqlalchemyquerymacro browse the source] with Trac.
    2424
    25 SqlAlchemyQueryMacro comes with sortable tables using http://www.kryogenix.org/code/browser/sorttable/
     25SqlAlchemyQueryMacro comes with sortable tables using the [http://www.kryogenix.org/code/browser/sorttable/ sorttable] library.
    2626
    2727== Example
     
    4747his macro requires the python-sqlalchemy ​library and makes use of its db and table modules. Please install python-sqlalchemy first.
    4848After getting the source you will have to edit {{{ install_sqlalchemyquery.bash }}} to your needs, you can change:
    49 {{{
     49{{{#!ini
    5050TRAC_PATH_REPLACE="/path/to/your-trac-environment" # absolute path to your trac environment
    5151TRAC_REPLACE="your_trac_environment"               # name of your trac environment ( relative path without slashes )
     
    5555
    5656To install the macro:
    57 {{{
     57{{{#!sh
    5858 tar -zxvf SqlAlchemyQuery.tar.gz
    5959 cd SqlAlchemyQuery
     
    6565or with svn:
    6666
    67 {{{
     67{{{#!sh
    6868svn checkout http://trac-hacks.org/svn/sqlalchemyquerymacro
    6969cd sqlalchemyquerymacro/1.0/
     
    7474
    7575To enable, in trac.ini:
    76 {{{
     76{{{#!ini
    7777[components]
    7878sqlalchemyquery.* = enabled
     
    8585In trac.ini :
    8686
    87 {{{
     87{{{#!ini
    8888[sqlalchemyquery]
    8989uri = mysql://user:password@hostname/database
    9090}}}
    9191You can also use oracle or sqlite:
    92 {{{
     92{{{#!ini
    9393uri = oracle://user:password@tns
     94}}}
    9495or
     96{{{#!ini
    9597uri = sqlite:///path/to/db
    9698}}}