JPGSchema

edomata.java.JPGSchema
object JPGSchema

Java-friendly DDL extraction for Flyway / Liquibase migrations.

Each method returns a list of standalone SQL statements (CREATE TABLE, CREATE INDEX, etc.).

Attributes

Source
JPGSchema.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
JPGSchema.type

Members list

Value members

Concrete methods

def cqrs(namespace: String, stateType: String, notificationType: String): List[String]

Generate DDL for CQRS tables (states, outbox, commands).

Generate DDL for CQRS tables (states, outbox, commands).

Value parameters

namespace

the namespace (used as table prefix)

notificationType

PostgreSQL payload type for notifications

stateType

PostgreSQL payload type for state

Attributes

Source
JPGSchema.scala
def cqrs(namespace: String): List[String]

Generate DDL for CQRS tables with default jsonb payload types.

Generate DDL for CQRS tables with default jsonb payload types.

Attributes

Source
JPGSchema.scala
def cqrsWithSchema(namespace: String): List[String]

Generate DDL for CQRS using schema naming strategy.

Generate DDL for CQRS using schema naming strategy.

Attributes

Source
JPGSchema.scala
def eventsourcing(namespace: String, eventType: String, notificationType: String, snapshotType: String): List[String]

Generate DDL for event sourcing tables (journal, outbox, commands, snapshots).

Generate DDL for event sourcing tables (journal, outbox, commands, snapshots).

Value parameters

eventType

PostgreSQL payload type: "json", "jsonb", or "bytea"

namespace

the namespace (used as table prefix)

notificationType

PostgreSQL payload type for notifications

snapshotType

PostgreSQL payload type for snapshots

Attributes

Source
JPGSchema.scala
def eventsourcing(namespace: String): List[String]

Generate DDL for event sourcing tables with default jsonb payload types.

Generate DDL for event sourcing tables with default jsonb payload types.

Attributes

Source
JPGSchema.scala

Generate DDL using schema naming strategy (creates a PostgreSQL schema).

Generate DDL using schema naming strategy (creates a PostgreSQL schema).

Attributes

Source
JPGSchema.scala