-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select specific fields #217
Comments
write method public function select($what = '*', $escape = true) {
$this->_database->select($what, $escape); return $this;
} usage $this->article_model->select('id, title')->get_all(); |
Thanks for the suggestion michail1982, I'll take note of this and try it out. 👍 |
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
How can you return only selected fields using all get functions (get(), get_by(), get_many(), get_many_by() and get_all()). Fetching all the columns of the database/record is not that fast or ideal I believe. Though I can do a filtering of the returned object data but still the delay was already made during the query. I how you can give me an advice on how to make this happen. Thank you in advance.
The text was updated successfully, but these errors were encountered: