From 957e4a14671ba2f915804ddcda703dce010196ab Mon Sep 17 00:00:00 2001 From: MeanSquaredError <35379301+MeanSquaredError@users.noreply.github.com> Date: Wed, 20 Aug 2025 23:53:24 +0300 Subject: [PATCH 1/2] Document the changes in the sqlpp23-ddl2cpp options and functionality. --- docs/differences_to_sqlpp11.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/differences_to_sqlpp11.md b/docs/differences_to_sqlpp11.md index c295cd61c..875cf2cb8 100644 --- a/docs/differences_to_sqlpp11.md +++ b/docs/differences_to_sqlpp11.md @@ -76,6 +76,16 @@ If seems a bit dry, follow the links to examples. | `NOT IN` | `x.not_in(sqlpp::value_list(vector{}))` interpreted as `true` | *no magic*: `x NOT IN ()` | | `operator+=` etc | `x += y` was translated into `x = x + y` | *no magic* | | aggregate functions | auto-named in `select` but not otherwise | require explicit names, e.g. max(id).as(sqlpp::alias::max_) | +| | | | +| **ddl2cpp** | | | +| auto id columns | -auto-id | --assume-auto-id | +| column naming | -identity-naming | --naming-style {camel-case,identity} | +| modules support | N/A | --path-to-module, --module-name, --use-import-sqlpp23, --use-import-std | +| self-test | -test | --self-test | +| single or multiple headers | -split-tables | --path-to-header or --path-to-header-directory | +| table creation helper | N/A | --generate-table-creation-helper | +| timestamp warning | -no-timestamp-warning | --suppress-timestamp-warning | +| | | | | **Misc** | | | | prepared statement parameters | `.params` | `.parameters` | | `eval(db, expr)` | Convenience wrapper around `db(select(expr.as(a))).front().a` | *dropped* (could lead to dangling references, see `TEXT` and `BLOB`) | From 2717dc5578895ed83ffdeb1678af6bdef51eff0b Mon Sep 17 00:00:00 2001 From: MeanSquaredError <35379301+MeanSquaredError@users.noreply.github.com> Date: Thu, 21 Aug 2025 00:30:01 +0300 Subject: [PATCH 2/2] Fix link to discussion about async support. --- docs/differences_to_sqlpp11.md | 2 ++ docs/todo.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/differences_to_sqlpp11.md b/docs/differences_to_sqlpp11.md index 875cf2cb8..850a5cf12 100644 --- a/docs/differences_to_sqlpp11.md +++ b/docs/differences_to_sqlpp11.md @@ -80,7 +80,9 @@ If seems a bit dry, follow the links to examples. | **ddl2cpp** | | | | auto id columns | -auto-id | --assume-auto-id | | column naming | -identity-naming | --naming-style {camel-case,identity} | +| ddl source file | positional parameter | --path-to-ddl | | modules support | N/A | --path-to-module, --module-name, --use-import-sqlpp23, --use-import-std | +| definitions namespace | positional parameter | --namespace | | self-test | -test | --self-test | | single or multiple headers | -split-tables | --path-to-header or --path-to-header-directory | | table creation helper | N/A | --generate-table-creation-helper | diff --git a/docs/todo.md b/docs/todo.md index 2f4b1435c..12fdbc9c8 100644 --- a/docs/todo.md +++ b/docs/todo.md @@ -28,6 +28,6 @@ See https://github.com/rbock/sqlpp11/issues/553 ## Async support -Obtain results in an asynchronous fashion, see #35, for instance. +Obtain results in an asynchronous fashion, see https://github.com/rbock/sqlpp11/issues/35, for instance. [**< Index**](/docs/README.md)