Sergey Tsalkov
|
8c5299c2e2
|
* add insertMany() and replaceMany() to let you do multiple inserts in one SQL command
* error and success handlers can now be set to static and object methods
|
2011-04-23 00:46:51 -04:00 |
|
Sergey Tsalkov
|
964a36e4c2
|
sqleval() can now be used with %s, %i, and all that good stuff
there is probably no good reason to do this, as things like md5() can be done
from PHP, but people keep asking for it, so here it is :)
|
2011-04-22 23:29:09 -04:00 |
|
Sergey Tsalkov
|
68774532e1
|
add delete() function -- mostly for completeness with insert(), update(), etc
|
2011-04-22 23:15:14 -04:00 |
|
Sergey Tsalkov
|
2985815750
|
* add tests for tableList() and columnList() -- those are now supported functions
* remove some unused code, minor cleanup
|
2011-04-22 23:03:37 -04:00 |
|
Sergey Tsalkov
|
4faebb957c
|
add DB::sqleval() -- can be used with insert() and update() to inject raw sql stuff like NOW()
v1.5
|
2011-04-08 13:56:28 -04:00 |
|
Sergey Tsalkov
|
819acb9bff
|
use fetch_row and not fetch_assoc for queryFirstField and queryFirstColumn -- it should be a bit faster
v1.4
|
2011-03-30 13:29:23 -04:00 |
|
Sergey Tsalkov
|
449760eb2a
|
set the character encoding in the "more proper" way, as recommended by the mysqli manual
|
2011-03-17 13:14:39 -04:00 |
|
Sergey Tsalkov
|
74feeb6513
|
now you can use DB::$success_handler to replace the "debug mode" handler in the same way that you can
replace the error handler
v1.3
|
2011-03-15 16:03:56 -04:00 |
|
Sergey Tsalkov
|
c14c69ffa7
|
let user specify port with DB::$port -- defaults to mysqli.default_port from the php config (probably 3306)
|
2011-03-15 14:42:58 -04:00 |
|
Sergey Tsalkov
|
894d8a0530
|
various fixes for PHP 5.2 compatability -- now finally tested and working with 5.2
|
2011-03-15 13:06:45 -04:00 |
|
Sergey Tsalkov
|
b6b22833e9
|
this is distributed under the LGPL v3 -- add copyright information
|
2011-03-13 17:16:18 -04:00 |
|
Sergey Tsalkov
|
5525d22a9b
|
we can now throw an exception on errors if DB::$throw_exception_on_error is set
v1.2
|
2011-03-04 17:23:42 -05:00 |
|
Sergey Tsalkov
|
0a7b323e81
|
you can now specify your own error handling function by changing DB::$error_handler
|
2011-03-04 16:49:17 -05:00 |
|
Sergey Tsalkov
|
620c607f61
|
remove array_map with inline functions for PHP 5.2 compatability
thanks to Adam for pointing this out!
|
2011-03-02 12:46:07 -05:00 |
|
Sergey Tsalkov
|
78c8192fdd
|
increase "error output" level and fix various minor bugs
none of these seem to affect functionality, it's just a matter of clean code
thanks to ++ for pointing this out!
v1.1
|
2011-03-01 00:12:31 -05:00 |
|
Sergey Tsalkov
|
d01a8be627
|
more basic tests
|
2011-03-01 00:12:25 -05:00 |
|
Sergey Tsalkov
|
2828a85656
|
* queryAllRows is the default mode for release
* add a few more query() tests
v1.0
|
2011-03-01 00:12:17 -05:00 |
|
Sergey Tsalkov
|
2e07278d35
|
fix minor db bugs, add preliminary unit testing
|
2011-03-01 00:12:10 -05:00 |
|
Sergey Tsalkov
|
db0feccfd4
|
query() can default to buffered, unbuffered, or queryAllRows
|
2011-03-01 00:12:02 -05:00 |
|
Sergey Tsalkov
|
91e5f3db4f
|
use unbuffered queries internally -- slightly fater processing
|
2011-03-01 00:11:56 -05:00 |
|
Sergey Tsalkov
|
9c8243f996
|
free all results after use
|
2011-03-01 00:11:49 -05:00 |
|
Sergey Tsalkov
|
bfb9170c12
|
add initial version -- should be working
|
2011-03-01 00:11:34 -05:00 |
|
Sergey Tsalkov
|
c87b06f64b
|
initial commit
|
2011-03-01 00:08:23 -05:00 |
|