Next gen Medoo v2.0 is developing #946
catfan
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are developing the next milestone version of Medoo (v2.0).
It will become more standard, and having more features.
You can check out the develop branch and try.
https://github.com/catfan/Medoo/tree/develop
Any ideas, suggestions are welcome to discuss here.
What's new on Medoo v2.0 (Updating)
New error initialization option (How to handle error information)
Simplified connection options
Those option names are simplified (you can still use the old one of course).
New callback closure for select()
For fetching data from the database, data will be first loaded into memory as an array variable, and output back to the frontend.
If fetching a large amount of data from the database, the memory will be exhausted.
When passing the callback closure
function ($data) {}
as the last parameter forselect()
, it will output each data immediately without loading it into memory. That's will be having a better performance for loading a large amount of data.New way to getting result from action()
New way to get the error information
The function
$database->error()
is removed. Just read the$database->error
or$database->errorInfo
to get the error information last performed.Last inserted id on Oracle
If want to the last inserted id on Oracle, provide the primary key as third parameter for
insert()
and get it fromid()
.Debug Logging
Beta Was this translation helpful? Give feedback.
All reactions