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

30 Commits

Author SHA1 Message Date
rbock
5b2b175b21 Remove aggregate attribute from trim() 2019-08-28 09:42:48 +02:00
Roland Bock
a69230b930 Merge pull request #173 from volka/isolation_level
Implemented get/set_default_isolation_level() functions
2017-06-04 15:54:47 +02:00
Volker Aßmann
9d395c2bc6 Fix typo 2017-06-04 15:19:00 +02:00
Volker Aßmann
a55d986def Implemented get/set_default_isolation_level() functions to change the
transaction isolation level default per-connection
2017-06-04 13:57:41 +02:00
Roland Bock
801428d4cf Merge pull request #171 from volka/isolation_level
Add an option to set a transaction isolation level in start_transaction
2017-06-03 11:40:51 +02:00
Volker Aßmann
9413206bd1 Hide the "isolation_level" member of the MockDb to make it explicit that
this is only used for mock validation
2017-06-03 11:20:18 +02:00
Volker Aßmann
b51714eb48 Cleaned up start_transaction overloads 2017-06-01 23:18:15 +02:00
Volker Aßmann
f2ea61052e Add an option to set a transaction isolation level to the generic
transaction interface and the connecctor api
2017-05-31 22:43:57 +02:00
Serge Robyns
62a5ec3e3e Added for update support 2017-04-09 11:17:55 +02:00
Théo DELRIEU
d50c65996a
add iterator_category field to result_t::iterator
default value is std::input_iterator_tag, connections should specialize
the sqlpp11::iterator_category struct defined in result.h to override
that value
2017-03-07 09:40:02 +01:00
Andreas Sommer
609766a9fe Allow dynamic sort order 2016-09-16 19:30:17 +02:00
rbock
94a0eee117 Enforce unsigned integral values for limit and offset 2016-09-06 22:34:59 +02:00
rbock
cf83978118 Migrated select clauses to returning wrapped asserts
This helps a lot in testing static asserts (and debuging expressions
with MSVC)
2016-09-01 12:06:40 +02:00
rbock
57797ffffa Added for_each_field function 2016-08-17 09:51:24 +02: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
d15cb2a410 Added "real" cross join 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
6dcdc419c1 Merge branch 'release/0.35'
Conflicts:
	README.md
2015-12-29 11:03:17 +01:00
sliser
b812ed5120 fixed appveyor build 2015-12-28 16:42:26 +03:00
rbock
b89e4c3e4f Fixed a bunch of missing initializations 2015-12-27 22:25:05 +01:00
rbock
b41f1add8c Made no_value to a more complete value type
This allows to select NULL via a case statement (seems to make more
sense than disallowing it).
2015-12-23 16:01:45 +01:00
rbock
333e55ea6d Dynamic select did not accept some non-dynamic clauses. 2015-12-11 14:42:28 +01:00
rbock
09f23cea0a Reformatted using clang-format
Please use clang-format before submitting code, e.g via the pre-commit
supplied in the repo (thanks AndiDog)
2015-09-13 21:33:19 +02:00
Reto Schneider
5756b2355f Remove trailing spaces. 2015-08-05 14:43:21 +02:00
rbock
bbe933f943 count is the first auto-aliased function
If used in an expression, count does not have an alias.
If used as a field in a select, it does have an alias.
2015-07-05 11:08:13 +02:00
rbock
303ee750ad Added test for selecting a constant value 2015-06-26 16:16:07 +02:00
rbock
0807e57958 Fixed warnings about missing initializers 2015-05-30 16:45:06 +02:00
Daniel Pfeifer
b99e2f653b build a combined executable for all tests 2015-05-29 21:20:15 +02:00
Daniel Pfeifer
036d63e6cf drop suffix 'Test' from tests 2015-05-29 20:40:38 +02:00