hwhsu1231
2aa9797117
style: Align CMake files with 4 spaces indent
2022-11-26 08:32:46 +01:00
Leon De Andrade
648183fd64
Proper MariaDB and MySQl findPackage support
2022-08-21 09:54:58 +02:00
Roland Bock
4be8b9f654
Add example for #448
2022-06-20 06:58:51 +02:00
Leonhard Kipp
6ae27a922e
Add ddlBracedArguments to expressions
2022-06-14 06:46:24 +02:00
Leonhard Kipp
c84f34d6f9
Add failing testcase
2022-06-14 06:46:24 +02:00
Jürgen Hunold
892e680a73
Add parser self-test to auto test suite
2022-06-08 06:35:39 +02:00
Jürgen Hunold
3c344c0546
Add support for "rationale" column type from pg_rational extension
2022-06-08 06:35:39 +02:00
Roland Bock
57077cd32b
Add standalone insert_columns function ( #76 )
...
This allows for multi-row INSERT OR IGNORE
2022-06-06 10:15:28 +02:00
Roland Bock
256429730a
Fix CMake warnings (CMP0115)
2022-06-06 10:14:01 +02:00
Roland Bock
f5be4095ae
Allow parameter in having clause, see #443
...
Disallow mixing aggregate and non-aggregate columns in select, too.
2022-05-22 15:05:58 +02:00
Carlitxxx86
1e7f4b98c7
Added OR REPLACE clause
2022-04-25 06:37:40 +02:00
Carlitxxx86
0c3c09dc2f
Added instructions to ignore OR REPLACE clause
2022-04-25 06:37:40 +02:00
Carlitxxx86
92fa9d365d
Added sample table definitions for System-Versioning
...
Both with implicit and explicit column definition.
2022-04-22 06:21:24 +02:00
Carlitxxx86
31ef4f2e54
Added MariaDB keywords GENERATED and PERIOD
...
Both keywords are used for System Versioned tables.
GENERATED marks a column as auto generated.
PERIOD is ignored fro the script.
2022-04-22 06:21:24 +02:00
Jürgen Hunold
9bfee74a99
Fix parsing of float fields with scale digits
2022-04-18 09:54:05 +02:00
Roland Bock
b50cc454b6
Fix constraints handling in ddl2cpp ( #437 )
...
Constraints got interpreted as (unknown) data types.
This change should fix this most cases (simple test case added).
2022-04-09 21:47:21 +02:00
Roland Bock
1d5caca523
Allow value_or_null to be assigned to parameters ( #435 )
2022-04-02 08:27:38 +02:00
Roland Bock
052c8a9e3c
Fix typo.
2022-03-13 11:22:10 +01:00
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