https://github.com/cashapp/sqldelight
Snapshot version: 2.1.0-SNAPSHOT
Support JSON and JSONB column types and operations
String is the input and output type for the table API for JSON/JSONB columns
CREATE TABLE Recipes (
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
recipe JSONB NOT NULL,
createdAt TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updatedAt TIMESTAMPTZ
);
Not supported
- Json Operators bind
- e.g
SELECT * FROM Recipes WHERE recipe @> ?
- MERGED cashapp/sqldelight#5100
- e.g
- Json column type support
- MERGED cashapp/sqldelight#5028
- Json Operators
- MERGED cashapp/sqldelight#5040
- Json GIN indexes
- MERGED cashapp/sqldelight#5026
createdb recipes
./gradlew build
./gradlew flywayMigrate
Flyway db migrations https://documentation.red-gate.com/fd/gradle-task-184127407.html