c

com.digitalasset.canton.resource

CommunityDbMigrations

class CommunityDbMigrations extends DbMigrations with NamedLogging

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CommunityDbMigrations
  2. NamedLogging
  3. DbMigrations
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CommunityDbMigrations(dbConfig: DbConfig, devVersionSupport: Boolean, loggerFactory: NamedLoggerFactory)(implicit closeContext: CloseContext)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def checkAndMigrate(params: CantonNodeParameters, retryConfig: RetryConfig)(implicit tc: TraceContext): EitherT[UnlessShutdown, Error, Unit]
    Definition Classes
    DbMigrations
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. implicit val closeContext: CloseContext
    Attributes
    protected
    Definition Classes
    CommunityDbMigrationsDbMigrations
  8. def createFlyway(dataSource: DataSource): Flyway

    Database is migrated using Flyway, which looks at the migration files at src/main/resources/db/migration/canton as explained at https://flywaydb.org/documentation/getstarted/firststeps/api

    Database is migrated using Flyway, which looks at the migration files at src/main/resources/db/migration/canton as explained at https://flywaydb.org/documentation/getstarted/firststeps/api

    Attributes
    protected
    Definition Classes
    DbMigrations
  9. val dbConfig: DbConfig
    Attributes
    protected
    Definition Classes
    CommunityDbMigrationsDbMigrations
  10. val devVersionSupport: Boolean

    Whether we want to add the schema files found in the dev folder to the migration

    Whether we want to add the schema files found in the dev folder to the migration

    A user that does that, won't be able to upgrade to new Canton versions, as we reserve our right to just modify the dev version files in any way we like.

    Attributes
    protected
    Definition Classes
    CommunityDbMigrationsDbMigrations
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  18. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    CommunityDbMigrationsNamedLogging
  19. def migrateDatabase(): EitherT[UnlessShutdown, Error, Unit]

    Migrate the database with all pending migrations.

    Migrate the database with all pending migrations.

    Definition Classes
    DbMigrations
  20. def migrateDatabaseInternal(flyway: Flyway)(implicit traceContext: TraceContext): EitherT[UnlessShutdown, Error, Unit]
    Attributes
    protected
    Definition Classes
    DbMigrations
  21. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  26. def repairFlywayMigration(): EitherT[UnlessShutdown, Error, Unit]

    Repair the database in case the migrations files changed (e.g.

    Repair the database in case the migrations files changed (e.g. due to comment changes). To quote the Flyway documentation:

    Repair is your tool to fix issues with the schema history table. It has a few main uses:
    
    - Remove failed migration entries (only for databases that do NOT support DDL transactions)
    - Realign the checksums, descriptions, and types of the applied migrations with the ones of the available migrations
    - Mark all missing migrations as deleted
    Definition Classes
    DbMigrations
  27. def repairFlywayMigrationInternal(flyway: Flyway)(implicit traceContext: TraceContext): EitherT[UnlessShutdown, Error, Unit]
    Attributes
    protected
    Definition Classes
    DbMigrations
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. def withCreatedDb[A](retryConfig: RetryConfig)(fn: (slick.jdbc.JdbcBackend.Database) => EitherT[UnlessShutdown, Error, A]): EitherT[UnlessShutdown, Error, A]
    Attributes
    protected
    Definition Classes
    DbMigrations
  34. def withDb[A](retryConfig: RetryConfig)(fn: (slick.jdbc.JdbcBackend.Database) => EitherT[UnlessShutdown, Error, A])(implicit traceContext: TraceContext): EitherT[UnlessShutdown, Error, A]

    Obtain access to the database to run the migration operation.

    Obtain access to the database to run the migration operation.

    Definition Classes
    CommunityDbMigrationsDbMigrations
  35. def withFlyway[A](fn: (Flyway) => EitherT[UnlessShutdown, Error, A])(implicit traceContext: TraceContext): EitherT[UnlessShutdown, Error, A]
    Attributes
    protected
    Definition Classes
    DbMigrations

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from NamedLogging

Inherited from DbMigrations

Inherited from AnyRef

Inherited from Any

Ungrouped