-
Notifications
You must be signed in to change notification settings - Fork 152
Review databases "compiled to" from CAP Java #2329
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
Open
agoerler
wants to merge
18
commits into
main
Choose a base branch
from
standardFunctions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
459586d
review CAP Java
agoerler 10986c8
Merge remote-tracking branch 'origin/main' into standardFunctions
agoerler 2de4a7a
Update guides/databases/cdl-to-ddl.md
agoerler e5e563f
use profiles with cds deploy --dry
agoerler ec4b149
Merge remote-tracking branch 'origin/main' into standardFunctions
agoerler 0cfc89d
Apply suggestions from code review
agoerler 8245fd0
Merge branch 'main' into standardFunctions
agoerler c2117ce
Merge branch 'main' into standardFunctions
agoerler ab723b4
review java
agoerler 7b77377
Merge branch 'main' into standardFunctions
chgeo 358eeb8
Apply suggestions from code review
agoerler 24c4808
Merge remote-tracking branch 'origin/standardFunctions' into standard…
agoerler 41f6a44
Merge remote-tracking branch 'origin/main' into standardFunctions
agoerler e3eb935
Merge branch 'main' into standardFunctions
agoerler fb3242f
Merge branch 'main' into standardFunctions
agoerler 51e7af9
Merge branch 'main' into standardFunctions
renejeglinsky ecd705e
Merge branch 'main' into standardFunctions
agoerler ac98166
merge main and resolve conflict: remove project-words.txt
renejeglinsky File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,37 @@ | ||
|
|
||
| # Using H2 for Development in CAP Java | ||
|
|
||
| For local development and testing, CAP Java supports the [H2](https://www.h2database.com/) database, which can be configured to run in-memory, which allows projects to speed up development by magnitudes at minimized costs. | ||
|
|
||
| > [!NOTE] | ||
| > H2 is supported for CAP Java only. | ||
|
|
||
| For local development and testing, CAP Java supports the [H2](https://www.h2database.com/) database, which can be configured to run in-memory. | ||
| [[toc]] | ||
|
|
||
| ## Setup for H2 | ||
|
|
||
| ### Using `cds add java` | ||
|
|
||
| By default, a CAP Java project is configured to use H2 as an in-memory database with the `default` Spring profile, which is activated on local host and when tests are executed by the CI server. | ||
|
|
||
| You can | ||
|
|
||
|
|
||
|
|
||
| ### Using `cds add h2` | ||
|
|
||
| If you Run this to set up H2 in your CAP project: | ||
|
|
||
| ```sh | ||
| cds add sqlite | ||
| ``` | ||
|
|
||
| Essentially this is doing the following: | ||
|
|
||
| - For CAP Node.js projects, it adds the `@cap-js/sqlite` package. | ||
| - For CAP Java projects, it adds a Maven dependency for the SQLite JDBC driver. | ||
|
|
||
|
|
||
| Learn more about the [features and limitations of using CAP with H2.](../../java/cqn-services/persistence-services#h2) | ||
| Learn more about the [features and limitations of using CAP with H2.](../../java/cqn-services/persistence-services#h2) {.learn-more} | ||
|
|
||
| There are various options of how to configure the [H2 database for local development and testing in CAP Java.](../../java/developing-applications/testing#setup-configuration) | ||
| Learn more about the various options of how to configure the [H2 database for local development and testing in CAP Java.](../../java/developing-applications/testing#setup-configuration) {.learn-more} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.