Is there example data for the Apache Derby SAMP schema? - derby

The Apache Derby documentation makes many references to the "SAMP" schema.
Does Derby come with example data for this schema ?
For example the Derby Reference Manual refers to the SAMP schema many times (http://db.apache.org/derby/docs/10.15/ref/rrefsqlj81859.html):

What's an example of the documentation you're reading?
The most recent Derby documentation uses the 'toursdb' database, I thought.
You can load the toursdb data here: http://db.apache.org/derby/docs/10.15/getstart/twwdactivity1_Setup.html and http://db.apache.org/derby/docs/10.15/getstart/twwdactivity1.html

Related

Spring Batch Meta-Data Schema for Oracle

Where can I found the sql to create in my database all the metadata sctructures needed by The Spring Batch framework.
The application don't have the permission on the database to outgenerate them.
As suggested in the documentation I've try to use the sql provided in the org.springframework.batch.core repository
but it's seems to be uncomplete.
For example it misses the column BATCH_JOB_EXECUTION .JOB_CONFIGURATION_LOCATION VARCHAR(2500), which on the other hand it's present in the documentation snippet
I've understand that this structure comes with the newest vesion 4.1 but also the (migration script)[https://github.com/spring-projects/spring-batch/blob/main/spring-batch-core/src/main/resources/org/springframework/batch/core/migration/4.1/migration-oracle.sql] doesn't seem to be right since it supposed that the column it's already there:
ALTER TABLE BATCH_JOB_EXECUTION MODIFY JOB_CONFIGURATION_LOCATION VARCHAR2(2500 char);
Where can I found the complete oracle sql script that creates the structure needed by the framework version 4.3.6 ?
If you look at https://github.com/spring-projects/spring-batch/blob/4.3.x/spring-batch-core/src/main/resources/org/springframework/batch/core/schema-oracle10g.sql you can see the BATCH_JOB_EXECUTION.JOB_CONFIGURATION_LOCATION column. So you can use /org/springframework/batch/core/schema-oracle10g.sql from the classpath since it is included in spring-batch-core-4.3.6.jar.

Calling Oracle Stored Procedure from R2DBC

I am trying to call an Oracle stored procedure from Spring Data R2DBC. I have currently set up querying either by annotation or R2DBC entity template and those work fine. However, I have not been able to call a proc with input/output parameters.
I saw some documentation mentioning support for procedure calls in R2DBC but have not found any concrete examples on how it is done. Any help or link to documentation or examples would be greatly appreciated.
The documentation for how to do procedural-calls can be found in the readme on github for the oracle-r2dbc driver:
procedural calls

In memory or actual stored database

In Spring, I was switching over from MySQL to use MongoDB instead.
In MySQL, I can have an in-memory database (H2) and an actual locally stored database in MySQL. Is this not possible with MongoDB? If so, how? Is Spring Data MongoDB an in-memory one or locally stored?
yes it's possible, try to check this embedded one: https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo
example of usage: https://www.baeldung.com/spring-boot-embedded-mongodb
I used Fongo a few years ago:
https://github.com/fakemongo/fongo

Mongo Atlast URI Support In Clickhouse

I have been working on connecting clickhouse with mongo atlas and i found nothing in documentation, so i dig into the code and found that MongoDictionarySource.cpp in dbms folder there is no configuration for uri.
On more investigating i came to know that clickhouse is using poco c++ project for database connectivity. In clickhouse submoduled poco's Connection.cpp there is no constructor with uri support but when i go to https://github.com/pocoproject/poco/blob/develop/MongoDB/src/Connection.cpp , i found that Connection.cpp has constructor that support uri.
Is this updated poco version can be submoduled with clickhouse so that i can make dictionary in clickhouse with mongo atlas?
OR
Is there any release comming where it can be already provided?
This feature is further discussed over here: https://github.com/yandex/ClickHouse/pull/5384

Liquibase compare and update databases

I would like to use liquibase in my spring boot app. My requirement is that I have a dummy schema which is populated with tables every time I change the entity classes. This is done by hibernate's ddl create. There are many identical schemas to the dummy schema with data. I want those schemas to be compared with the dummy schema on update and be synced without affecting my data. How can I achieve this? I could not find a tutorial anywhere. If there is one please do give me the link.
I think this tutorial explains what your are looking for
baeldung maven liquibase plugin
In section 5.3 is a description on how you can get a changlog file with differences between two databases.

Resources