Fixes and Enhancements since Version 0.5 alpha 3 |
Fixes and Enhancements since Version 0.5 alpha 3 |
|
|
|
- Added "paramstyle" support for SQL connections, which now have a |
|
'newParams()' method to create a parameter object, and an |
|
'addParam(params,value,name=None)' method to add parameters to the 'params' |
|
object (created via 'newParams()') and return the string that should be used |
|
to reference the parameter. |
|
|
|
This lets you write SQL generation code with embedded parameters using "bind |
|
variables". For example, you could do something like this, if 'db' is a SQL |
|
connection object:: |
|
|
|
params = db.newParams() |
|
sql = 'SELECT * FROM foobar WHERE baz='+db.addParam(params, 42) |
|
rows = db(sql, params) |
|
|
- The 'peak' script is now an .exe on Windows, using setuptools' "entry point" |
- The 'peak' script is now an .exe on Windows, using setuptools' "entry point" |
system. |
system. |
|
|