[proposal] Change compiler/linker options, implement docker build, fix error handling and more #236
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I use this project to build a native app with Ktor server and Sqldelight.
Found some issues should be resolved before it could be done:
1. Compiling and testing this project on Linux targets is challenging.
This project doesn't use a common way of linking binaries with libpq shared library provided by standart package managers (see also this pull).
I've made some changes to libpq.def to overcome the issue to build on Ubuntu host.
Moreover, the majority of dependent projects would target a native (ktor server only, AFAIK) backend deployed inside a linux-based container.
This Dockerfile just gives an idea on how this project could be built for different target platforms in zero-config way.
2. Fatal errors on invalid queries
I have
SEGFAULT
when trying to execute and invalid SQL query. Seems this fixes an issue, but are there any reasons to callPQfinish
on any exception?TODO:
groupId
signing
nexusPublishing