courseorchestra / celesta Goto Github PK
View Code? Open in Web Editor NEWDB migrations, SQL & testing for Java
Home Page: https://courseorchestra.github.io/celesta/en
License: GNU Lesser General Public License v3.0
DB migrations, SQL & testing for Java
Home Page: https://courseorchestra.github.io/celesta/en
License: GNU Lesser General Public License v3.0
We now have WITH NO AUTOUPDATE
postfix for CREATE TABLE
clause. This forces Celesta to skip table structure update during initialization.
We also need [WITH [NO] AUTOUPDATE]
postfix for CREATE GRAIN
clause. NO AUTOUPDATE
, if set, should override the setting from celesta.grains
table and always skip the grain update. WITH AUTOUPDATE
should be simply ignored (should work as it works now with no postfix).
Implementation of this issue should involve an automated test on H2 database with the following outline:
lock
status (4) for grain A in celesta.grainswith autoupdate
, grain B with no autoupdate
.CelestaSQL documentation should also be updated.
We use org.codehaus.mojo:javacc-maven-plugin for creating of csql parser.
But now by mistake it is in dependencies.
This leads to dependency conflicts during development.
On a clean laptop, I clone the project and run mvn test
.
Build fails.
celesta>mvn test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] celesta-parent [pom]
[INFO] celesta-documentation [jar]
[INFO] celesta-sql [jar]
[INFO] celesta-core [jar]
[INFO] celesta-maven-plugin [maven-plugin]
[INFO] celesta-system-services [jar]
[INFO] celesta-unit [jar]
[INFO] celesta-test [jar]
[INFO] coverage-report [pom]
[INFO]
[INFO] -----------------------< ru.curs:celesta-parent >-----------------------
[INFO] Building celesta-parent 7.4.39-SNAPSHOT [1/9]
[INFO] from pom.xml
...
[INFO] asciidoctor: ERROR: synsql.adoc: line 5: Failed to generate image: Could not find the 'syntrax' executable in PATH; add it to the PATH or specify its location using the 'syntrax' document attribute
[INFO] asciidoctor: ERROR: synsql.adoc: line 31: Failed to generate image: no implicit conversion of nil into String
[INFO] asciidoctor: ERROR: synsql.adoc: line 44: Failed to generate image: no implicit conversion of nil into String
[INFO] asciidoctor: ERROR: synsql.adoc: line 63: Failed to generate image: no implicit conversion of nil into String
[INFO] asciidoctor: ERROR: synsql.adoc: line 78: Failed to generate image: no implicit conversion of nil into String
[INFO] asciidoctor: ERROR: synsql.adoc: line 96: Failed to generate image: no implicit conversion of nil into String
[INFO] asciidoctor: ERROR: synsql.adoc: line 132: Failed to generate image: no implicit conversion of nil into String
[INFO] asciidoctor: ERROR: synsql.adoc: line 466: Failed to generate image: no implicit conversion of nil into String
[INFO] asciidoctor: ERROR: synsql.adoc: line 156: Failed to generate image: no implicit conversion of nil into String
[INFO] asciidoctor: ERROR: synsql.adoc: line 164: Failed to generate image: no implicit conversion of nil into String
[INFO] asciidoctor: ERROR: synsql.adoc: line 177: Failed to generate image: no implicit conversion of nil into String
[INFO] asciidoctor: ERROR: synsql.adoc: line 190: Failed to generate image: no implicit conversion of nil into String
[INFO] Converted /Users/andrei/projects/celesta/celesta-documentation/src/main/asciidoc/ru/0000_Celesta.adoc
[ERROR] asciidoctor: ERROR: synsql.adoc: line 5: Failed to generate image: Could not find the 'syntrax' executable in PATH; add it to the PATH or specify its location using the 'syntrax' document attribute
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.377 s
[INFO] Finished at: 2023-06-27T19:26:21+03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.asciidoctor:asciidoctor-maven-plugin:2.2.4:process-asciidoc (asciidoc-to-html-ru) on project celesta-documentation: Found 42 issue(s) of severity WARN or higher during conversion -> [Help 1]
There is a little trouble during the using of command "mvn celesta:gen-cursors" outside of maven life cycle.
In this case mojo fails with NPE.
It would enable integration testing with https://github.com/vavrcc/vavrcc
When JUnit 5 test extensions store state into JUnit context storage at the test level (as opposed to method level), they use the class as a key rather than the class instance:
Multithreaded tests could easily lose track of storage. This is more of a theoretical issue, since AndHow cannot really support parallelized testing due to the singleton model.
It will be good to havethe coverage ratio of 0.8
At the moment, dbschemasync
module produces a .zip file with jars necessary to run dbschemasync (and auxiliary files in Celesta subfolder). Still one has to run java -jar dbschemasync...
The task is to add appassembler-maven-plugin
(like in https://github.com/CourseOrchestra/2bass and https://github.com/CourseOrchestra/xylophone, you may copy-paste from there) to produce .zip with executable /bin subfolder.
Time has come to remove undocumented and deprecated support of IDENTITY
keyword from Celesta 7,
together with clumsy sequences imitation for older versions of MS SQL (table sequences
in celesta.sql
and auto-generated SequencesCursor, and everything that uses them).
This involves re-writing of tests that use IDENTITY
keyword for CREATE SEQUENCE
-DEFAULT NEXTVAL
as described here.
Hi - I'm looking at Celesta for a work project. We use PostGreSQL, but we use several features that it doesn't look like Celesta supports:
Is there any way to way to inject some vendor specific DDL into the Celesta SQL? Or are there other strategies for dealing with these types of features with Celesta?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.