DefaultTempTableNameGenerator

@Singleton
open class DefaultTempTableNameGenerator(internalNamespace: String? = null, affixLength: Int = 8, affixSeparator: String = "", hashLength: Int = 32) : TempTableNameGenerator(source)

better handling for temp table names - e.g. postgres has a 64-char table name limit, so we want to avoid running into that. This method generates a table name with (by default) at most 64 characters (4 * affixLength + 2 * affixSeparator.length + hashLength).

T+D destinations simply appended TMP_TABLE_SUFFIX to the table name, and should use TableName.asOldStyleTempTable instead

Not deprecated, but the interface it implements is deprecated.

Constructors

Link copied to clipboard
constructor(internalNamespace: String? = null, affixLength: Int = 8, affixSeparator: String = "", hashLength: Int = 32)
@Inject
constructor()

The constructor Micronaut instantiates the singleton through; it builds the same instance as the all-defaults primary constructor. inject-kotlin 4.8-4.10 emits unverifiable bytecode for a constructor that combines default values with primitive parameters, which makes Micronaut drop the bean silently, so the injectable constructor must not declare defaults.

Functions

Link copied to clipboard
open override fun generate(originalName: TableName): TableName