-
-
Notifications
You must be signed in to change notification settings - Fork 332
Order by kth column #966
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
Merged
Merged
Order by kth column #966
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
67debd9
Removed superfluous space in output for order by clause and expressions
trueqbit fcd1885
Added a few tests specifically for testing ORDER BY expressions
trueqbit 8142ecc
Merge remote-tracking branch 'upstream/dev' into issues/order_by_kth_col
trueqbit e5784d5
Amended conditions unit test
trueqbit a90b9cc
Merge remote-tracking branch 'upstream/dev' into issues/order_by_kth_col
trueqbit d1ebf1a
Ability to order by positional column ordinal
trueqbit 812b6d5
Merge remote-tracking branch 'upstream/dev' into issues/order_by_kth_col
trueqbit ce09321
Corrected code formatting
trueqbit e7f75f0
Corrected compilation errors in C++14
trueqbit 6964ea5
Merge remote-tracking branch 'upstream/dev' into issues/order_by_kth_col
trueqbit 3813a06
Renamed `nth_ constant` type alias to `positional_ordinal` struct
trueqbit b9cd3d3
Runner-up: Renamed `nth_ constant` type alias to `positional_ordinal`…
trueqbit 1d0bf8a
Merge remote-tracking branch 'upstream/dev' into issues/order_by_kth_col
trueqbit c96d19e
Treated bindables used as order-by expressions as literal values
trueqbit 1d4ace0
Introduced node tuple type alias
trueqbit f6a1f25
Updated sqlite_orm.h
trueqbit 1403365
Updated sqlite_orm.h
trueqbit b8a3ccd
Corrected formatting
trueqbit a41dcbc
Merge remote-tracking branch 'upstream/dev' into issues/order_by_kth_col
trueqbit 9e5e7fb
Updated sqlite_orm.h
trueqbit abe53b4
Ability to order and group by column alias
trueqbit 82be816
Merge remote-tracking branch 'upstream/dev' into issues/order_by_kth_col
trueqbit 13cae94
Examples for ordering by numeric and custom column alias
trueqbit 43a642d
Updated comment of `order_by`
trueqbit d056cb4
Merge remote-tracking branch 'upstream/dev' into issues/order_by_kth_col
trueqbit 9779e37
Merge remote-tracking branch 'upstream/dev' into issues/order_by_kth_col
trueqbit a7414bd
Overloaded `order_by()` for integral numeric types
trueqbit 776bc0a
Removed numeric column alias
trueqbit f4c9052
Fixed bindable unit tests for C++17 and later
trueqbit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
|
||
#include <utility> // std::move | ||
|
||
namespace sqlite_orm { | ||
namespace internal { | ||
|
||
/* | ||
* Protect an otherwise bindable element so that it is always serialized as a literal value. | ||
*/ | ||
template<class T> | ||
struct literal_holder { | ||
using type = T; | ||
|
||
T value; | ||
}; | ||
|
||
} | ||
} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better replace
T
withtype
here