| 1 |
Changes for Perl extension ORLite |
| 2 |
|
| 3 |
2.00 2023-08-19 22:24:38Z |
| 4 |
- fix some test module renamings that were missed in 1.99 |
| 5 |
- Fix test failure with SQLite 3.37.0 (RT#140748) |
| 6 |
|
| 7 |
1.99 2023-08-13 21:09:06Z |
| 8 |
- fix test errors with DBD::SQLite >= 1.52 (RT#149134) |
| 9 |
|
| 10 |
1.98 2012-09-29 |
| 11 |
- When setting pragmas in void context, skip reading the changed |
| 12 |
pragma back out of the database pointlessly. |
| 13 |
- Removed legacy support for static ->delete('where ...') |
| 14 |
|
| 15 |
1.97 2012-05-21 |
| 16 |
- Use reproducible longdouble in tests (HMBRAND) |
| 17 |
|
| 18 |
1.96 2012-02-27 |
| 19 |
- Fixed a crash in the legacy delete emulation where the condition |
| 20 |
clause provided was a constant or read-only. |
| 21 |
|
| 22 |
1.95 2012-02-27 |
| 23 |
- Fixed a fatal rowid big when generating in array mode |
| 24 |
|
| 25 |
1.94 2012-02-27 |
| 26 |
- Fixed a fatal rowid bug when a table had a single non-INTEGER |
| 27 |
primary key. |
| 28 |
- Fixed bug in affinity detection code to now set REAL and |
| 29 |
NUMERIC affinity correctly. |
| 30 |
|
| 31 |
1.93 2012-02-27 |
| 32 |
- The previous release 1.92 was done with a missing commit, |
| 33 |
this release restores that missing code. |
| 34 |
|
| 35 |
1.92 2012-02-27 |
| 36 |
- Add the ->delete_where method for bulk deletion |
| 37 |
- Always do the initial metadata scan using ReadOnly => 1. |
| 38 |
- When generating readonly, DBI connections use ReadOnly => 1 too. |
| 39 |
- Quote identifiers more correctly via $dbh->quote_identifier. |
| 40 |
- Temporarily restory the static delete call to prevent breaking |
| 41 |
Padre and other applications still using the old version of |
| 42 |
delete. |
| 43 |
|
| 44 |
1.91 2012-02-23 |
| 45 |
- Calculate column affinity types in the metadata preparation phase |
| 46 |
- Throw an exception when tables contain BLOB types and the database |
| 47 |
is unicode, as the blob data will be corrupted. |
| 48 |
- Improved testing for blobs and unicode, and TODO a known problem |
| 49 |
|
| 50 |
1.90 2012-02-21 |
| 51 |
- Removed x_rowid parameter and make the rowid logic compulsory. |
| 52 |
- Removed x_update parameter and make update method compulsory at |
| 53 |
the table level but do not generate on the root level. |
| 54 |
- As a result, ORLite now supports creating and updating objects |
| 55 |
even when they come from tables without primary keys. |
| 56 |
- Pending release as 2.00 once clarifying documentation is written. |
| 57 |
|
| 58 |
1.54 2012-02-21 |
| 59 |
- Added experimental x_rowid parameter to maintain SQLite rowids in |
| 60 |
the objects |
| 61 |
|
| 62 |
1.53 2012-02-21 |
| 63 |
- Add a ->id convenience method alias when table 'foo' has a single |
| 64 |
numeric primary key 'foo_id' so you can use $foo->id |
| 65 |
|
| 66 |
1.52 2012-01-21 |
| 67 |
- Added initial unicode => 1 support (MEMOWE) |
| 68 |
- Bumped Params::Util dependency to 1.0 for *LIKE fixes (ADAMK) |
| 69 |
|
| 70 |
1.51 2011-11-25 |
| 71 |
- Module::Install::DSL updated to 1.04 |
| 72 |
- Automatically load overlay classes if there exist. That is, where a |
| 73 |
Foo/TableName.pm module exists in addition to the automatically |
| 74 |
generated Foo::TableName class. |
| 75 |
|
| 76 |
1.50 2011-06-07 |
| 77 |
- Removed normalize as a supported parameter, normalizing columns turns |
| 78 |
out not to work in practice. However, we always normalize tables to |
| 79 |
get the class name for the table as that seems to result in class |
| 80 |
names that make much more sense. |
| 81 |
|
| 82 |
1.49 2011-06-01 |
| 83 |
- Adding normalize support to turn columnName into column_name |
| 84 |
|
| 85 |
1.48 2011-01-21 |
| 86 |
- Initial support for shim => 1 to simplify customisation (ADAMK) |
| 87 |
|
| 88 |
1.47 2010-12-08 |
| 89 |
- Adding readonly support for views (ADAMK) |
| 90 |
|
| 91 |
1.46 2010-11-30 |
| 92 |
- Bumped File::Path dependency to 2.08 to prevent test failures |
| 93 |
from the one shipped with Perl 5.8.9 (AZAWAWI) |
| 94 |
- Added experimental base class ->update support (ADAMK) |
| 95 |
- Added the qname attributes to the generator structs to simplify |
| 96 |
and improve readability of SQL fragment strings (ADAMK) |
| 97 |
|
| 98 |
1.45 2010-08-08 |
| 99 |
- Adding initial support for cache => $directory (ADAMK) |
| 100 |
|
| 101 |
1.44 2010-07-23 |
| 102 |
- Upgrading to Module::Install::DSL 1.00 (ADAMK) |
| 103 |
- Adding the per-table table_info method to get the columns (ADAMK) |
| 104 |
- Adding tests for the per-table metadata methods (ADAMK) |
| 105 |
|
| 106 |
1.43 2010-05-10 |
| 107 |
- Ensure 100% of tables and columns are quoted correctly (ADAMK) |
| 108 |
|
| 109 |
1.42 2010-03-16 |
| 110 |
- Signficantly expanded documentation on the per-table class |
| 111 |
and the methods created for it (Breno G. de Oliveira) |
| 112 |
|
| 113 |
1.41 2010-03-09 |
| 114 |
- Added the root ->connected method to allow for some |
| 115 |
light introspection in unusual situations (such as |
| 116 |
knowing if it's safe to spawn an off-the-books |
| 117 |
->connect'tion, or to detect if we are in a transaction). |
| 118 |
- Added documentation for the ->connect method, with suitably |
| 119 |
strident warnings about the dangers of deadlocking. |
| 120 |
|
| 121 |
1.40 2010-02-01 |
| 122 |
- Fixed backwards test skipping logic |
| 123 |
|
| 124 |
1.39 2010-01-29 |
| 125 |
- Typo in the tests, they now run >= instead of > 1.05 |
| 126 |
|
| 127 |
1.38 2010-01-28 |
| 128 |
- When using array => 1 on classes that we can create, add a ->set |
| 129 |
method for setting parameters in the object safely. |
| 130 |
|
| 131 |
1.37 2010-01-28 |
| 132 |
- Adding experimental support for the array => 1 option. |
| 133 |
|
| 134 |
1.36 2010-01-27 |
| 135 |
- Rolled back the Template::Tiny conversion as it ended up slowing |
| 136 |
down the code generation too much. I shall struggle on under the |
| 137 |
old method. |
| 138 |
|
| 139 |
1.35 2010-01-27 |
| 140 |
- Adding experimental support for accelerated XS accessors |
| 141 |
using Class::XSAccessor. ORLite itself will not introduce a |
| 142 |
dependency on this module, consumers of this feature will need |
| 143 |
to do it themselves. |
| 144 |
|
| 145 |
1.34 2010-01-26 |
| 146 |
- Major Change: Moved code generation from raw string appending to |
| 147 |
using Template::Tiny instead. This will enable some new and more |
| 148 |
complex improvements to the generated code. |
| 149 |
- Added tests for the cleanup code. |
| 150 |
|
| 151 |
1.33 2010-01-24 |
| 152 |
- When in the Perl debugger and on Perl 5.8.9 or newer, |
| 153 |
use the $^P | 0800 in preference to dval (and always |
| 154 |
use it even when $DEBUG is off). |
| 155 |
|
| 156 |
1.32 2010-01-15 |
| 157 |
- Each generated class now cleans up its own persistant |
| 158 |
connection, rather than allowing it to fall through to the |
| 159 |
deeper DBI cleanup. |
| 160 |
- To allow for persistant connections to readonly database, |
| 161 |
we now always built transaction support for all databases. |
| 162 |
However, for readonly databases we do not build the commit |
| 163 |
method and you may only use the rollback method to end them. |
| 164 |
- Significantly expanded the Pod documentation to provide |
| 165 |
documentation on all of the import options. |
| 166 |
- Add support for a cleanup option to import, which is single |
| 167 |
explicit statement to be called on the database when the |
| 168 |
process is shutting down. This should typically be used |
| 169 |
ensure that a SQLite database is VACUUM'ed regularly (and at |
| 170 |
a time when it hopefully won't impact the user much). |
| 171 |
|
| 172 |
1.31 2010-01-02 |
| 173 |
- Adding explicit versioned-use lines to the generated code (in case |
| 174 |
the generated code is used independantly to its creation) |
| 175 |
|
| 176 |
1.30 2010-01-02 |
| 177 |
- Switching to a production release, CPAN Testers looks ok |
| 178 |
- Update DBD::SQLite dependency to 1.27. Some of the metadata pragmas |
| 179 |
have changed, and we don't want to have to support both the old and |
| 180 |
new versions. |
| 181 |
- ORLite will now correctly use RaiseError => 1, PrintError => 0 when |
| 182 |
itself introspecting the schema, so a corrupted SQLite database |
| 183 |
won't result in silent failure and the larger parent application |
| 184 |
won't crash in unpredictable ways. |
| 185 |
|
| 186 |
1.29_03 2009-10-01 |
| 187 |
- Reverse the prune deletion order |
| 188 |
- Apply recursive delete flag |
| 189 |
|
| 190 |
1.29_02 2009-09-29 |
| 191 |
- Changed ->load to use selectrow_hashref |
| 192 |
- Allow ->load calls for multiple-columns primary keys |
| 193 |
- All connections now explicitly RaiseError => 1 for correctness |
| 194 |
- All connections now explicitly PrintError => 0 to avoid spewing |
| 195 |
stuff to STDOUT/STDERR unexpectedly in embedded scenarios. |
| 196 |
- Remove most explicit error handling and allow the native DBI |
| 197 |
errors to cascade upwards instead. |
| 198 |
|
| 199 |
1.29_01 2009-09-28 |
| 200 |
- Adding first experimental implementation of ->load |
| 201 |
|
| 202 |
1.28 2009-09-25 |
| 203 |
- Adding ->prune method that so that pruning can also be done |
| 204 |
in subclasses. |
| 205 |
- Apply rel2abs to pruned directories so they still get deleted |
| 206 |
even when our current directory moves. |
| 207 |
|
| 208 |
1.27 2009-09-25 |
| 209 |
- Adding test script for the prune feature |
| 210 |
|
| 211 |
1.26_01 2009-09-25 |
| 212 |
- Adding the prune option to have ORLite to track every file and |
| 213 |
directory it creates and remove them during END phase. |
| 214 |
(This should be especially handy in test scripts) |
| 215 |
|
| 216 |
1.25 2009-08-15 |
| 217 |
- Adding base and table metadata methods to each class to support |
| 218 |
the creation of support/extension methods |
| 219 |
|
| 220 |
1.24 2009-08-15 |
| 221 |
- Adding support for an iterate method |
| 222 |
|
| 223 |
1.23 2009-06-11 |
| 224 |
- Fixed a bug in method ->delete which deleted more than the actual |
| 225 |
object in case the primary key consist of more than one column. |
| 226 |
Added basic support for such primary keys with more than one column. |
| 227 |
|
| 228 |
1.22 2009-06-01 |
| 229 |
- Updated to Module::Install::DSL 0.91 |
| 230 |
- Split out debug/eval as (undocument) dval function |
| 231 |
- App support for a (currently undocumented) 'append' |
| 232 |
param to allow sub-classes like ORLite::Mirror to merge |
| 233 |
in additional code to the generated class. |
| 234 |
|
| 235 |
1.21 2009-05-24 |
| 236 |
- Updated to Module::Install::DSL 0.88 |
| 237 |
- Added commit_begin and rollback_begin to allow persisting |
| 238 |
of the connection between successive transactions. |
| 239 |
|
| 240 |
1.20 2009-02-12 |
| 241 |
- Auto-create parent directory for ORLite files |
| 242 |
- Add root method ->sqlite which returns the path to the |
| 243 |
sqlite file for that database. |
| 244 |
|
| 245 |
1.19 2009-02-03 |
| 246 |
- Adding support for using a CODE reference in the 'create' |
| 247 |
parameter, so that the schema setup can be provided directly |
| 248 |
in the ORLite initialisation. |
| 249 |
|
| 250 |
1.18 2009-01-14 |
| 251 |
- Adding an ->orlite method to return the version number of the |
| 252 |
ORLite module that was used to generate the distribution. |
| 253 |
|
| 254 |
1.17 2009-01-03 |
| 255 |
- Adding a ->truncate method to each table |
| 256 |
|
| 257 |
1.16 2008-12-14 |
| 258 |
- The fact that I didn't need to change ORLite for ORLite::Migrate |
| 259 |
suggests that it's stable enough for general use (pending 2.0) |
| 260 |
|
| 261 |
0.15 2008-09-24 |
| 262 |
- Adding support for writable pragmas |
| 263 |
- Adding tests for pragmas, schema_version and user_version |
| 264 |
|
| 265 |
0.14 2008-09-23 |
| 266 |
- Removed the last remnants of %ORLite::DSN and %ORLite::DBH. |
| 267 |
- Added support for the "create" param to allow database creation |
| 268 |
|
| 269 |
0.13 2008-09-19 |
| 270 |
- Fixed critical bug introduced in 0.10 or somewhere around there, |
| 271 |
where column accessors were not defined for readonly classes. |
| 272 |
(This fatally killed ORLite::Mirror) |
| 273 |
|
| 274 |
0.12 2008-09-15 |
| 275 |
- Don't store the database values in a shared hash any more |
| 276 |
(Makes the classes self-contained and able to run without ORLite) |
| 277 |
- Add a tables param to the import, to allow the base database |
| 278 |
connectivity class to be created without the table classes. |
| 279 |
|
| 280 |
0.11 2008-09-09 |
| 281 |
- If we aren't debugging we don't need to write the temp file |
| 282 |
|
| 283 |
0.10 2008-08-06 |
| 284 |
- Quote all column names for explicitness |
| 285 |
|
| 286 |
0.09 2008-07-11 |
| 287 |
- Adding pragma method to the top package |
| 288 |
- Adding user_version import param to provide the ability |
| 289 |
to lock the Perl code against a known-good schema. |
| 290 |
|
| 291 |
0.08 2008-06-24 |
| 292 |
- Adding an experimental -DEBUG option |
| 293 |
|
| 294 |
0.07 2008-05-28 |
| 295 |
- Actually trust the package param |
| 296 |
|
| 297 |
0.06 2008-05-28 |
| 298 |
- Don't add transaction support if we are readonly |
| 299 |
|
| 300 |
0.05 2008-05-27 |
| 301 |
- Minor bug fixes in the ->import method |
| 302 |
- Correcting the RT link in the POD. |
| 303 |
|
| 304 |
0.04 2008-05-27 |
| 305 |
- Added ->import( \%hash ) support. |
| 306 |
- Added support for custom passing of the target package. |
| 307 |
- Added support for readonly database loading |
| 308 |
(We need this for doing mirrored remote db support) |
| 309 |
- Autodetect readonly SQLite files |
| 310 |
|
| 311 |
0.03 2008-05-22 |
| 312 |
- Added initial foreign key support |
| 313 |
- Added the POD documentation for ORLite root packages |
| 314 |
- Added File::Spec dependency |
| 315 |
|
| 316 |
0.02 2008-05-19 |
| 317 |
- Added class and instance ->delete |
| 318 |
- Added ->new |
| 319 |
- Added ->insert |
| 320 |
- Added ->create |
| 321 |
|
| 322 |
0.01 2008-05-16 |
| 323 |
- Created an initial experimental support with only ->select |