Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
run: cmake --preset gcc-release -D LIGHTWEIGHT_BUILD_DOCUMENTATION=ON -D LIGHTWEIGHT_DOCS_WARN_AS_ERROR=ON
- name: "check documentation"
run: cmake --build --preset gcc-release --target doc
- name: "check doc code snippets are in sync with tested source"
run: python3 scripts/check-doc-snippets.py

check_clang_tidy:
name: "Check clang-tidy"
Expand Down
4 changes: 4 additions & 0 deletions AGENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ If a database is **deliberately** skipped (e.g., feature genuinely doesn't apply

When touching anything in `DataBinder/`, also exercise both `u8`/`u16`/`wchar_t` paths (the `WideChar` typedef in `Utils.hpp` selects the platform-appropriate UTF-16 code unit). See `.agent/testing.md` and `.agent/databases.md` for deeper guidance.

### Documentation code snippets must stay test-backed

`docs/sql-to-lightweight.md` tags each C++ example with `<!-- snippet: <id> -->`; the identical code lives in `src/tests/DocExampleTests.cpp` between `//! [<id>]` markers, where it is compiled and executed against every DBMS. `scripts/check-doc-snippets.py` (run in the `check_docs` CI job) fails if the two drift. When you change such an example, edit the `//! [<id>]` region first, copy the same lines into the doc block, then run `python3 scripts/check-doc-snippets.py`. Prefer this snippet-backed pattern for any new SQL/DataMapper usage examples you add to `docs/`.

## Adding Features

### New `SqlDataBinder<T>` specialization
Expand Down
1 change: 1 addition & 0 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ message(STATUS "Doxygen found: ${DOXYGEN_EXECUTABLE}")
"${PROJECT_SOURCE_DIR}/docs/how-to.md"
"${PROJECT_SOURCE_DIR}/docs/usage.md"
"${PROJECT_SOURCE_DIR}/docs/sqlquery.md"
"${PROJECT_SOURCE_DIR}/docs/sql-to-lightweight.md"
"${PROJECT_SOURCE_DIR}/docs/best-practices.md"
"${PROJECT_SOURCE_DIR}/docs/data-binder.md"
"${PROJECT_SOURCE_DIR}/docs/sql-backup.md"
Expand Down
Loading
Loading