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

1393 Commits

Author SHA1 Message Date
Mike Neilson
03671ea75e Fixed ddl2cpp test setup and checks.
cmake file contained extra parameter that appears to no longer be used.
bad_has_parse_error test output check was not longer valid.
2022-03-11 07:47:22 +01:00
Mike Neilson
6477f09125 Added additional exception class.
Handles the case of user defined exception in pl/pgsql to it can be reported
back to the calling application.
2022-03-11 07:47:22 +01:00
Roland Bock
b965b2a1df Fix warnings (#422) 2022-03-04 07:49:05 +01:00
Yuanhao Jia
9fc07ef757 Fix namespace closing comment order in ddl2cpp script 2022-03-04 06:55:20 +01:00
Roland Bock
dd4d023bec
Update README.md 2022-03-03 08:17:54 +01:00
linrongbin
1b10d36030 add mediumtext data type for mysql in ddl2cpp script 2022-02-11 07:47:04 +01:00
Jürgen Hunold
f7f2060c44 Add support for TIME columns in postgresql 2022-02-08 18:24:15 +01:00
Jürgen Hunold
b2166c636b Untabify test list 2022-02-08 18:24:15 +01:00
Roland Bock
5b3abca4b1 Partial rewrite of ddl2cpp
Initially setting out to fix #418, this change
  - accepts more SQL expressions
  - uses slightly more idiomatic pyparsing, I believe
  - uses black formatter
  - comes with some unit tests for the parser
  - simplifies options

Tested with all SQL files in the repo.
2022-02-06 17:33:22 +01:00
vrqq
d8a76fa282
Fix part of issue #418 (#419)
The first problem in https://github.com/rbock/sqlpp11/issues/418

Match table name ```"public"."dk"``` to ```_literal[] = public.dk``` and ```struct PublicDK```
2022-01-31 07:00:58 +01:00
Navid Jalali
d8f841121b
clone from origin/main (#417) 2022-01-22 21:47:16 +01:00
Zach Toogood
62f987ef44
Various additions to ddl2cpp for MySQL (#416) 2022-01-16 17:22:17 +01:00
Roland Bock
b8aed2af55 Address conversion warnings and fix UAF bug in test 2022-01-14 07:39:11 +01:00
Roland Bock
ccc75eafc7 Remove obsolete pointer indirection and some warnings 2022-01-12 07:06:06 +01:00
Roland Bock
d6aef0fa9b Remove obsolete pointer indirection, fix warnings and a leak
Leak: The sqlite3 connection handle destructor was
accidentally turned into a default constructor during the
migration of repositories.

Replaced the sqlite3 raw pointer with a unique_ptr to prevent
this kind of accident.
2022-01-11 07:35:20 +01:00
linrongbin16
23ae65dd67
add Dynamic-Insert.md (#413)
Add Dynamic-Insert.md
2022-01-11 07:31:24 +01:00
Roland Bock
3be4893bfe Remove obsolete pointer indirection in mysql connector 2022-01-09 09:12:23 +01:00
Roland Bock
40845e6b09 Remove incomplete connection pool
Porting the connection pool from sqlpp17 seems more promising, see #397
2022-01-08 19:02:29 +01:00
Roland Bock
7d74b1d1a6 Add a few words about Thread Safety. 2022-01-08 18:52:34 +01:00
Roland Bock
027223c515 Add basic documentation for transactions 2022-01-08 18:03:22 +01:00
linrongbin16
eb48909721 add example code for count(1) in Functions.md (#412)
* add doc for `count(1)`
2022-01-08 16:13:36 +01:00
Roland Bock
9b8463b1f6
Update Home.md 2021-12-31 17:12:14 +01:00
Roland Bock
db969e9886
Update Database.md 2021-12-31 17:11:18 +01:00
Roland Bock
b1b28715fe
Update Tables.md
Remove some fluff about code structure of tables.
2021-12-31 17:09:28 +01:00
Roland Bock
a9cd886139
Update Database.md
Replace outdated doc, partially addressing #404.
2021-12-31 16:54:38 +01:00
Roland Bock
a80b1d178c
Update README.md 2021-12-18 11:39:24 +01:00
Roland Bock
2bc89b34ad Merge branch 'release/0.61' 2021-12-18 10:52:54 +01:00
Roland Bock
181cc5fb04 Fix compiler warnings. 2021-12-11 19:53:35 +01:00
Roland Bock
91b7b34557 Fix broken test code, see #400 2021-12-11 19:31:25 +01:00
Andreas Sommer
36d3d30254 Support MySQL connect timeout option 2021-12-10 10:57:06 +01:00
Andreas Sommer
c37c8d36c5 Add missing includes 2021-12-10 10:49:37 +01:00
Leon De Andrade
e7590dc004
Add unsigned bind to postgresql (#395) 2021-12-04 10:52:26 +01:00
Leon De Andrade
d17bce9644
Add Connector CMake Logic (#394)
Add Connector Cmake logic

* Also install date when used with fetch content
* Install everything always
* Update documentation
* Add option to control dependency searching
* Adjust travis
2021-12-02 07:45:38 +01:00
Sergey Nikulov
2fecf6b6f1 deps: fixed condition for fetching date::date 2021-11-28 10:26:57 +01:00
Roland Bock
310a6245fa Added blob support for postgresql
Tests look reasonably fine.
2021-11-14 13:14:34 +01:00
Roland Bock
4c942600bb Started to migrate postgresql connector into sqlpp11 repo.
Removed timezone handling in the process (needs to be documented).
Note: on_conflict does not check for constraints (needs to be documented).
Note: some of the constraints tests seem to be aiming for a different static_assert.
2021-11-14 08:11:53 +01:00
Roland Bock
13698d07c9 Fix compile error for c++11 2021-11-11 07:21:28 +01:00
Roland Bock
554c31dc23 Add missing includes 2021-11-11 06:30:00 +01:00
Sylvain Joubert
b4acfa27e9 ddl2cpp: Fix compatibility with pyparsing 3+
Fix #388
2021-11-10 19:29:40 +01:00
Roland Bock
7be5797c0f
Update README.md 2021-11-06 17:50:32 +01:00
Roland Bock
539c29d5ae
Point to docs/ instead of Wiki. 2021-11-06 17:31:39 +01:00
Roland Bock
d2cd61ab3a Remove table::ref (see #345). 2021-11-06 15:11:45 +01:00
Roland Bock
138da005d5 Fixed missing include and two compiler warnings 2021-11-06 14:28:50 +01:00
Théo Delrieu
3f7fe2d0bb result: make nested iterator C++20 conformant 2021-10-28 06:17:01 +02:00
Roland Bock
8572c821aa Streamline test names and locations 2021-10-11 10:31:25 +02:00
Roland Bock
4a8c941916 Fixed global variable
This would have led to multiple definitions at best.
2021-10-11 10:03:58 +02:00
Roland Bock
bde010351d Fix missing inline attributes for mysql connector
Changed mysql usage tests to be linked into one executable.
This provokes multiple definition errors for non-inlined free
functions.
2021-10-11 09:04:57 +02:00
Roland Bock
caee00e849 Fix missing inline attributes for sqlite3 connector
Changed sqlite3 usage tests to be linked into one executable.
This provokes multiple definition errors for non-inlined free
functions.
Also ran clang-format on the changed headers.
2021-10-11 08:37:14 +02:00
Roland Bock
a3c2b186fb Remove same-name check for result columns
The compiler actually does a much better job at telling you if two
result columns have the same name as soon as you are trying to use
them.
In contrast to the static_assert, the compiler will even say which
name is ambiguous.
2021-10-03 09:35:11 +02:00
Roland Bock
4f99894cd4 Backported value_t 2021-09-07 10:14:35 +02:00