You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I like the simplicity. To confirm, using whereUserProfile() would be user_profile as the column/field? Off-topic, but eventually I do want to include more of a Laravel-style collection on these results. I know we have the Document class, but we do need more functionality with that. Most likely will be a V2 or a 1.1. Also, are you on Slack? Should be a join link in the readme. Would love to connect.
hi, for your example, look like this
whereUser_profile
But with a little change it can be similar to laravel_query_builder.
I would recommend we make it so whereUserProfile('Tim') = the same as WHERE user_profile = 'Tim'
This way it's more universal to understand (and we don't mismatch, always using camel-case in methods)
now can select "user" with $db->query()->whereUser('data')->first();//will work
also $db->query()->whereuser_profile_is_with_some_query('data')->first(); //edited : will not work
to select "User"
whereUser or whereuser
to select "UserOwner"
whereUserowner or whereuserowner
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
in normal mode can search in db with
$db->where('name','==','sam')->first(); //working
with this commit changes can search in other way easy and shorter :
$db->whereName('sam')->first(); // equals ('name','==','sam') //working
also can set oparator
$db->whereName('like','sam')->first(); // equals ('name','like','sam') //working
.