Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database: Introduce ColumnMap #5

Merged
merged 1 commit into from
Dec 11, 2023
Merged

database: Introduce ColumnMap #5

merged 1 commit into from
Dec 11, 2023

Conversation

lippserd
Copy link
Member

ColumnMap provides a cached mapping of structs exported fields to their database column names. By default, all exported struct fields are mapped to their database column names using snake case notation. The - (hyphen) directive for the db tag can be used to exclude certain fields. Since ColumnMap uses cache, the returned slice MUST NOT be modified directly.

`ColumnMap` provides a cached mapping of structs exported fields to
their database column names. By default, all exported struct fields are
mapped to their database column names using snake case notation. The `-`
(hyphen) directive for the db tag can be used to exclude certain fields.
Since `ColumnMap` uses cache, the returned slice MUST NOT be modified
directly.
@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Dec 11, 2023
@lippserd lippserd merged commit 5f0078f into main Dec 11, 2023
@lippserd lippserd deleted the column-map branch December 11, 2023 08:56
@lippserd
Copy link
Member Author

Main branch was force pushed because the latest version of the Icinga Go library and the library code in the Icinga DB have diverged. This change is now reflected by commit 102481a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant