0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 21:04:15 +08:00
Commit Graph

1475 Commits

Author SHA1 Message Date
“digitalist.ru”
6b7bdb1e62 fix my mistake 2016-03-26 14:51:25 +03:00
Roland Bock
c2c424f856 Merge pull request #73 from niXman/develop
SQLPP_PRIMARY_KEY & SQLPP_AUTO_INCREMENT is fixed
2016-03-25 07:50:23 +01:00
rbock
712c79cb8a Added static_assert tests for dynamic from.add() 2016-03-24 19:54:16 +01:00
niXman
93211cac5f SQLPP_PRIMARY_KEY & SQLPP_AUTO_INCREMENT is fixed 2016-03-24 12:57:08 +02:00
rbock
dec3f5b3df Migrated from::add() to portable static assert 2016-03-23 08:20:52 +01:00
rbock
e478695891 Fixed function name 2016-03-22 10:03:37 +01:00
rbock
67af04e8f8 Fixed function name 2016-03-22 09:42:08 +01:00
rbock
cf9ec10ae4 Added table checks for dynamic_join(x).add(y) 2016-03-22 09:23:37 +01:00
rbock
ec81299259 Added serializer tests for verbatim_table 2016-03-22 09:23:12 +01:00
Roland Bock
4797521031 Merge pull request #71 from digitalist/readme
Readme and ddl2cpp error handling
2016-03-22 07:06:18 +01:00
“digitalist.ru”
772109fc87 ddl2cpp solutions 2016-03-22 00:28:06 +03:00
“digitalist.ru”
64a122b64a ddl2cpp solutions 2016-03-22 00:27:01 +03:00
“digitalist.ru”
c43b8272ba readme/ddl2cpp KeyError handling, merging 2016-03-21 22:04:34 +03:00
“digitalist.ru”
51f125e763 readme/ddl2cpp KeyError handling 2016-03-21 22:02:41 +03:00
“digitalist.ru”
0ed744d70b readme/ddl2cpp KeyError handling 2016-03-21 21:48:11 +03:00
“digitalist.ru”
b7b651e98b readme/ddl2cpp KeyError handling 2016-03-21 21:38:37 +03:00
rbock
3be1ca1098 Added verbatim tables to join serialization tests 2016-03-21 09:05:55 +01:00
rbock
dc9f03fb56 Added enum and set to be interpreted as text
Maybe we will need a better mapping one fine day...
2016-03-20 18:27:38 +01:00
“digitalist.ru”
0f7244e295 fix README 2016-03-20 17:41:05 +03:00
rbock
db2e36cb6e Merge branch 'develop' of https://github.com/rbock/sqlpp11 into develop 2016-03-20 09:15:30 +01:00
rbock
f546805ee2 Made dynamic select column list a bit more customization friendly
See https://github.com/matthijs/sqlpp11-connector-postgresql/issues/8
2016-03-20 09:13:50 +01:00
rbock
a8b9014fc2 Enforce having expression to consist of aggregates 2016-03-20 09:13:50 +01:00
rbock
452175b514 Removed extra_tables (use without_table_check) instead 2016-03-20 09:13:50 +01:00
rbock
f3bd2f01ab Removed the add_ntc functions (use without_table_check) 2016-03-20 09:13:50 +01:00
rbock
201b060d24 Added explicit without_table_check function
This removes the "required" tables from an expression
2016-03-20 09:13:50 +01:00
rbock
a836e8c8d8 Simplified where() to have one argument only 2016-03-20 09:13:50 +01:00
rbock
1a93218dcc Removed multi-argument option for having 2016-03-20 09:13:50 +01:00
rbock
e1c6a92123 Removed obsolete file 2016-03-20 09:13:49 +01:00
rbock
aceede57eb Fixed outer-tables for joins, added tests 2016-03-20 09:13:49 +01:00
rbock
0a325e4471 Added more serializer tests for where() 2016-03-20 09:13:49 +01:00
rbock
226d45d44c Added serializer tests for where() 2016-03-20 09:13:49 +01:00
rbock
9b8b2504dd Fixed narrowing warning/error 2016-03-20 09:13:49 +01:00
rbock
67bfb68f07 Added serialize tests for in() 2016-03-20 09:13:49 +01:00
rbock
b6c5cb8764 Added several serialization tests for from() and joins 2016-03-20 09:13:49 +01:00
rbock
d15cb2a410 Added "real" cross join 2016-03-20 09:13:49 +01:00
rbock
20b74206ae Added tests for dynamic joins 2016-03-20 09:13:49 +01:00
rbock
225d387967 Added portable static asserts for (dynamic) join.on()
Also removed inaccessible code for adding more conditions to on()
dynamically. If someone should ever want that, he/she should use
dynamic_where(), I guess.
2016-03-20 09:13:49 +01:00
rbock
cf5ddfde00 Added portable static asserts for joins and first static tests 2016-03-20 09:13:49 +01:00
rbock
ab875fc79b Introduced dynamic_cross_join (simplifying dynamic_join) 2016-03-20 09:13:49 +01:00
rbock
20adfb66c9 Made from() testable with portable static asserts, added tests
Added cross_join_t, simplifying join a lot
2016-03-20 09:13:49 +01:00
rbock
f774dca912 Cleaning up static asserts for .where(true) 2016-03-20 09:13:49 +01:00
rbock
8079015d2c Removed where(true). 2016-03-20 09:13:49 +01:00
rbock
15247504f2 Disallow unconditional join (ifdef to get it back)
One day, users of the library have to make the switch anyway, why not
today?
2016-03-20 09:13:49 +01:00
rbock
5e96551f83 Prevent unconditional joins, and naked bool in where() or boolean expressions
- `.from(t1, t2)` produces an unconditional join if you forget to add a condition in the .where()
  sqlpp11 therefore now deprecates unconditional joins.
- more often than not, writing  something like `where(name == "doe")`, you
  meant to write `where(t.name == "doe")`. It is hard to find bugs when
  the former expression compiles because you happen to have a variable
  `name` in the current scope as well.
  sqlpp11 therefore now deprecates `.where(bool)` and disallows
  raw bool values boolean expression like `something and bool`
  wrap bools in sqlpp::value(), if you REALLY want a bool value here
2016-03-20 09:13:49 +01:00
rbock
6e60dc6630 Moved serialize code to dynamic_select_column_list.h 2016-03-20 09:13:49 +01:00
rbock
1b2020a5d2 Allow table name in ticks
This is what mysqldump generates for instance.
2016-03-19 21:05:32 +01:00
rbock
9bc9575723 Cleanup for ddl2cpp (thanks, David) 2016-03-19 21:05:09 +01:00
rbock
af6811bb4d Adjusted ddl2cpp to work with pyparsing-2.10 2016-03-19 21:04:43 +01:00
Roland Bock
bc2eee68a4 Merge pull request #69 from digitalist/readme
Readme
2016-03-19 20:06:56 +01:00
“digitalist.ru”
45d9045260 license header fix 2016-03-19 21:47:54 +03:00