-
-
Notifications
You must be signed in to change notification settings - Fork 324
Contribution guide
Greetings my dear C++ developer. It is very nice that you decided to contribute to sqlite_orm
. This guide will help you to do it right.
-
Please don't create pull requests targeting to
master
branch. Create PR targeting todev
branch instead causedev
is a main working branch andmaster
is a branch for releases; -
Don't edit
sqlite_orm.h
. Edit sources fromdev
folder instead and once you finished run amalgamate script from terminal from repo root folder:
python third_party/amalgamate/amalgamate.py -c third_party/amalgamate/config.json -s .
This will regenerate sqlite_orm.h
from your version of sources from dev
folder;
- Don't forget to apply code formatting after you generated
sqlite_orm.h
. You can do it using a command below:
clang-format -i -style=file include/sqlite_orm/*.h tests/*.cpp tests/*/*.cpp dev/*.h dev/*/*.h tests/*/*.h examples/*.cpp examples/*/src/*.cpp
To do it you must have clang-format
v13 installed on your machine. To check your clang-format
version run clang-format --version
;
- After these steps are done make a commit and a pull request. Wait for CI build to complete and review is done. After that maintainer will merge your PR manually. This repo does not have automatic merge.
Please remember that new maintainers are always welcome. If you have some issue you post it at any time or you can ask a question right into discussions section.