-
-
Notifications
You must be signed in to change notification settings - Fork 328
Non-standart primary key checking #644
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
Conversation
not tested under Windows .. Tomorrow I will fix it all |
cf24f0e
to
c977f4d
Compare
@fnc12, fixed |
0dbf521
to
25da2b7
Compare
5b47e2e
to
5c9f9e9
Compare
Conflicts: dev/statement_serializator.h dev/storage.h include/sqlite_orm/sqlite_orm.h
7c08996
to
a455026
Compare
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.
please fix and/or reply to all comments before merging
* Table interface class with 'without_rowid' tag. Implementation is hidden in `table_impl` class. | ||
*/ | ||
template<class T, class... Cs> | ||
struct table_without_rowid_t : table_template<T, true, Cs...> { |
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.
why do we need to split table in two classes? We can just have a template bool arg in table_t
class instead of two table classes
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.
still actual
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.
I think that we should leave table_without_rowid_t
, beacause "a template bool arg in table_t
class" may deliver some small problems for users.
For example, lets see section "Slow & size effective"
https://github.com/fnc12/sqlite_orm/wiki/FAQ
bool isActive; | ||
}; | ||
|
||
auto storage = make_storage({}, /// |
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.
note: strange comments
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.
this is for control over clang-format
@denzor200 thanks |
This pull request adds a useful compile-time error. You can reproduce it with a simple example:
In the current sqlite_orm, this example throws a runtime error "NOT NULL constraint failed", which is somewhat misleading.