Changes between Version 14 and Version 15 of SqlAlchemyQueryMacro
- Timestamp:
- Mar 18, 2015, 12:36:09 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SqlAlchemyQueryMacro
v14 v15 8 8 9 9 A previous version of this module is known as SqlQueryMacro. 10 11 See also: TracSqlAlchemyBridgeIntegration 10 12 11 13 == !Bugs/Feature Requests … … 49 51 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 50 52 51 This macro requires the py thon-sqlalchemy library and makes use of its database and table modules. Please install python-sqlalchemy first.53 This macro requires the pypi:python-sqlalchemy library and makes use of its database and table modules. Please install python-sqlalchemy first. 52 54 After getting the source you will have to edit {{{ install_sqlalchemyquery.bash }}} to your needs, you can change: 53 55 {{{#!ini … … 77 79 }}} 78 80 79 To enable , in trac.ini:81 To enable this plugin add the following to `trac.ini`: 80 82 {{{#!ini 81 83 [components] … … 83 85 }}} 84 86 85 == Configur e87 == Configuration 86 88 87 89 To configure this plugin, you must tell SqlAlchemy what database to connect to. 88 90 89 In trac.ini:91 In `trac.ini`: 90 92 91 93 {{{#!ini … … 93 95 uri = mysql://user:password@hostname/database 94 96 }}} 97 95 98 You can also use Oracle or SQLite: 99 96 100 {{{#!ini 97 101 uri = oracle://user:password@tns 98 102 }}} 99 or 103 104 or: 105 100 106 {{{#!ini 101 107 uri = sqlite:///path/to/db