diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/UninitializedParameterException.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/UninitializedParameterException.kt index fb54dad..b2fbaed 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/UninitializedParameterException.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/UninitializedParameterException.kt @@ -10,32 +10,32 @@ import ru.landgrafhomyak.db.skeleton1.api.statement._Statement @ReflectionApi @OptIn(ExperimentalCoroutinesApi::class) public class UninitializedParameterException : RuntimeException, CopyableThrowable { - public val statement: _Statement<*, *> - public val params: Collection> + public val statement: _Statement<*> + public val params: Collection> - public constructor(statement: _Statement<*, *>, params: Collection>) : super(formatMessage(statement, params)) { + public constructor(statement: _Statement<*>, params: Collection>) : super(formatMessage(statement, params)) { this.statement = statement this.params = params } - public constructor(statement: _Statement<*, *>, params: Collection>, message: String) : super(message) { + public constructor(statement: _Statement<*>, params: Collection>, message: String) : super(message) { this.statement = statement this.params = params } - public constructor(statement: _Statement<*, *>, params: Collection>, message: String, cause: Throwable) : super(message, cause) { + public constructor(statement: _Statement<*>, params: Collection>, message: String, cause: Throwable) : super(message, cause) { this.statement = statement this.params = params } - public constructor(statement: _Statement<*, *>, params: Collection>, cause: Throwable) : super(formatMessage(statement, params), cause) { + public constructor(statement: _Statement<*>, params: Collection>, cause: Throwable) : super(formatMessage(statement, params), cause) { this.statement = statement this.params = params } public constructor( - statement: _Statement<*, *>, - params: Collection>, + statement: _Statement<*>, + params: Collection>, message: String?, cause: Throwable?, @Suppress("unused", "LocalVariableName") _marker: Unit @@ -57,7 +57,7 @@ public class UninitializedParameterException : RuntimeException, CopyableThrowab public companion object { @JvmStatic - public fun formatMessage(statement: _Statement<*, *>, params: Collection>): String = + public fun formatMessage(statement: _Statement<*>, params: Collection>): String = "While preparing statement $statement following parameters wasn't initialized: ${params.joinToString()}" } } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/NamespaceAlreadyBusyException.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/NamespaceAlreadyBusyException.kt index b6be642..c66391f 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/NamespaceAlreadyBusyException.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/NamespaceAlreadyBusyException.kt @@ -10,26 +10,26 @@ import ru.landgrafhomyak.db.skeleton1.api.module.Namespace @ReflectionApi @OptIn(ExperimentalCoroutinesApi::class) public class NamespaceAlreadyBusyException : SchemaDefinitionException, CopyableThrowable { - public val namespace: Namespace<*, *> + public val namespace: Namespace<*> - public constructor(namespace: Namespace<*, *>) : super(formatMessage(namespace)) { + public constructor(namespace: Namespace<*>) : super(formatMessage(namespace)) { this.namespace = namespace } - public constructor(namespace: Namespace<*, *>, customMessage: String) : super(customMessage) { + public constructor(namespace: Namespace<*>, customMessage: String) : super(customMessage) { this.namespace = namespace } - public constructor(namespace: Namespace<*, *>, customMessage: String, cause: Throwable) : super(customMessage, cause) { + public constructor(namespace: Namespace<*>, customMessage: String, cause: Throwable) : super(customMessage, cause) { this.namespace = namespace } - public constructor(namespace: Namespace<*, *>, cause: Throwable) : super(formatMessage(namespace), cause) { + public constructor(namespace: Namespace<*>, cause: Throwable) : super(formatMessage(namespace), cause) { this.namespace = namespace } public constructor( - namespace: Namespace<*, *>, + namespace: Namespace<*>, message: String?, cause: Throwable?, @Suppress("unused", "LocalVariableName") _marker: Unit ) : super(message, cause, _marker) { @@ -48,7 +48,7 @@ public class NamespaceAlreadyBusyException : SchemaDefinitionException, Copyable public companion object { @JvmStatic public fun formatMessage( - namespace: Namespace<*, *> + namespace: Namespace<*> ): String = "Namespace ${namespace.name} is busy: attempt to allocate something in namespace captured by module or attempt to substitute module to non-empty namespace" } } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/TableWithoutColumnsException.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/TableWithoutColumnsException.kt index a6839f9..3f6c913 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/TableWithoutColumnsException.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/TableWithoutColumnsException.kt @@ -10,26 +10,26 @@ import ru.landgrafhomyak.db.skeleton1.api.table.Table @ReflectionApi @OptIn(ExperimentalCoroutinesApi::class) public class TableWithoutColumnsException : SchemaDefinitionException, CopyableThrowable { - public val table: Table<*, *, *> + public val table: Table<*, *> - public constructor(table: Table<*, *, *>) : super(formatMessage(table)) { + public constructor(table: Table<*, *>) : super(formatMessage(table)) { this.table = table } - public constructor(table: Table<*, *, *>, customMessage: String) : super(customMessage) { + public constructor(table: Table<*, *>, customMessage: String) : super(customMessage) { this.table = table } - public constructor(table: Table<*, *, *>, customMessage: String, cause: Throwable) : super(customMessage, cause) { + public constructor(table: Table<*, *>, customMessage: String, cause: Throwable) : super(customMessage, cause) { this.table = table } - public constructor(table: Table<*, *, *>, cause: Throwable) : super(formatMessage(table), cause) { + public constructor(table: Table<*, *>, cause: Throwable) : super(formatMessage(table), cause) { this.table = table } public constructor( - table: Table<*, *, *>, + table: Table<*, *>, message: String?, cause: Throwable?, @Suppress("unused", "LocalVariableName") _marker: Unit ) : super(message, cause, _marker) { @@ -48,7 +48,7 @@ public class TableWithoutColumnsException : SchemaDefinitionException, CopyableT public companion object { @JvmStatic public fun formatMessage( - table: Table<*, *, *>, + table: Table<*, *>, ): String = "Table $table doesn't have columns" } } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/VersionDuplicationException.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/VersionDuplicationException.kt index 1c23dea..7b8dfa4 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/VersionDuplicationException.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/errors/definition/VersionDuplicationException.kt @@ -11,32 +11,32 @@ import ru.landgrafhomyak.db.skeleton1.api.module.Module @OptIn(ExperimentalCoroutinesApi::class) public class VersionDuplicationException : SchemaDefinitionException, CopyableThrowable { public val template: Module.Template<*> - public val versionOwner: Module<*, *> - public val newModule: Module<*, *> + public val versionOwner: Module<*> + public val newModule: Module<*> public val version: String - public constructor(template: Module.Template<*>, versionOwner: Module<*, *>, newModule: Module<*, *>, version: String) : super(formatMessage(template, versionOwner, newModule, version)) { + public constructor(template: Module.Template<*>, versionOwner: Module<*>, newModule: Module<*>, version: String) : super(formatMessage(template, versionOwner, newModule, version)) { this.template = template this.versionOwner = versionOwner this.newModule = newModule this.version = version } - public constructor(template: Module.Template<*>, versionOwner: Module<*, *>, newModule: Module<*, *>, version: String, customMessage: String) : super(customMessage) { + public constructor(template: Module.Template<*>, versionOwner: Module<*>, newModule: Module<*>, version: String, customMessage: String) : super(customMessage) { this.template = template this.versionOwner = versionOwner this.newModule = newModule this.version = version } - public constructor(template: Module.Template<*>, versionOwner: Module<*, *>, newModule: Module<*, *>, version: String, customMessage: String, cause: Throwable) : super(customMessage, cause) { + public constructor(template: Module.Template<*>, versionOwner: Module<*>, newModule: Module<*>, version: String, customMessage: String, cause: Throwable) : super(customMessage, cause) { this.template = template this.versionOwner = versionOwner this.newModule = newModule this.version = version } - public constructor(template: Module.Template<*>, versionOwner: Module<*, *>, newModule: Module<*, *>, version: String, cause: Throwable) : super(formatMessage(template, versionOwner, newModule, version), cause) { + public constructor(template: Module.Template<*>, versionOwner: Module<*>, newModule: Module<*>, version: String, cause: Throwable) : super(formatMessage(template, versionOwner, newModule, version), cause) { this.template = template this.versionOwner = versionOwner this.newModule = newModule @@ -44,7 +44,7 @@ public class VersionDuplicationException : SchemaDefinitionException, CopyableTh } public constructor( - template: Module.Template<*>, versionOwner: Module<*, *>, newModule: Module<*, *>, version: String, + template: Module.Template<*>, versionOwner: Module<*>, newModule: Module<*>, version: String, message: String?, cause: Throwable?, @Suppress("unused", "LocalVariableName") _marker: Unit ) : super(message, cause, _marker) { @@ -69,7 +69,7 @@ public class VersionDuplicationException : SchemaDefinitionException, CopyableTh public companion object { @JvmStatic public fun formatMessage( - template: Module.Template<*>, versionOwner: Module<*, *>, newModule: Module<*, *>, version: String + template: Module.Template<*>, versionOwner: Module<*>, newModule: Module<*>, version: String ): String = "Version '${version}' already associated with $versionOwner and $newModule provided by $template has the same version (circular upgrades are prohibited)" } } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/Module.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/Module.kt index 70e5e55..60ac36e 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/Module.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/Module.kt @@ -8,7 +8,7 @@ import ru.landgrafhomyak.db.skeleton1.api.runtime.Transaction import ru.landgrafhomyak.db.skeleton1.api.table.Table -public interface Module { +public interface Module { @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("uExt") public val uExt: mUE @@ -21,7 +21,7 @@ public interface Module { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getParentModule") - public val parentModule: Module<*, IK>? + public val parentModule: Module<*>? @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @@ -31,63 +31,63 @@ public interface Module { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getMemberTables") - public val memberTables: Collection> + public val memberTables: Collection> @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getMemberObjects") - public val memberObjects: Collection> + public val memberObjects: Collection> @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getMemberSubmodules") - public val memberSubmodules: Collection> + public val memberSubmodules: Collection> @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getMemberTablesWhileUpgrade") - public val memberTablesWhileUpgrade: Collection> + public val memberTablesWhileUpgrade: Collection> @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getMemberObjectsWhileUpgrade") - public val memberObjectsWhileUpgrade: Collection> + public val memberObjectsWhileUpgrade: Collection> @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getMemberSubmodulesWhileUpgrade") - public val memberSubmodulesWhileUpgrade: Collection> + public val memberSubmodulesWhileUpgrade: Collection> @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("willBeDeletedAfterUpgrade") public val willBeDeletedAfterUpgrade: Boolean - public interface Constructor { + public interface Constructor { @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("versionKey") public val versionKey: String - public fun createSchema(context: ModuleConstructorScope): mUE + public fun createSchema(context: ModuleConstructorScope): mUE - public suspend fun initData(ext: mUE, compiler: QueriesCompiler, transaction: Transaction) {} + public suspend fun initData(ext: mUE, compiler: QueriesCompiler, transaction: Transaction) {} } - public interface Upgrade { + public interface Upgrade { @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("versionKey") public val versionKey: String - public fun upgradeSchema(context: ModuleUpgradeScope): nmUE + public fun upgradeSchema(context: ModuleUpgradeScope): nmUE - public suspend fun upgradeData(ext: nmUE, compiler: QueriesCompiler, transaction: Transaction) {} + public suspend fun upgradeData(ext: nmUE, compiler: QueriesCompiler, transaction: Transaction) {} } public interface Template<@Suppress("unused") mUE : Any> { @LowLevelApi - public fun getConstructor(): Constructor<*, IK> + public fun getConstructor(): Constructor<*> @LowLevelApi - public fun getUpgrade(version: String): Upgrade<*, *, IK>? + public fun getUpgrade(version: String): Upgrade<*, *>? } } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleConstructorScope.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleConstructorScope.kt index 4a9435f..8dc2d6a 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleConstructorScope.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleConstructorScope.kt @@ -9,32 +9,32 @@ import ru.landgrafhomyak.db.skeleton1.api.table.Table import ru.landgrafhomyak.db.skeleton1.api.runtime.InputRow -public interface ModuleConstructorScope { +public interface ModuleConstructorScope { @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("rootNs") - public val rootNs: Namespace + public val rootNs: Namespace public fun createTable( lifeTime: Table.LifeTime = Table.LifeTime.DATABASE_SCOPE, - namespace: Namespace = this.rootNs, - name: String, initializer: Table.Constructor - ): Table + namespace: Namespace = this.rootNs, + name: String, initializer: Table.Constructor + ): Table public fun moduleScopedObject( - namespace: Namespace = this.rootNs, + namespace: Namespace = this.rootNs, name: String, metadata: ObjectOperations.ImplementationsProvider - ): ModuleScopedObject + ): ModuleScopedObject - public fun substituteModule(rootNs: Namespace, template: Module.Template): Module + public fun substituteModule(rootNs: Namespace, template: Module.Template): Module - public fun namespace(parent: Namespace, name: String): Namespace + public fun namespace(parent: Namespace, name: String): Namespace - public fun addStatement(stmt: _Statement.Void2Void<*, IK>) + public fun addStatement(stmt: _Statement.Void2Void<*>) public fun addStatement(stmt: RawStatement.Void2Void.ImplementationsProvider<*>) @LowLevelApi - public fun _addStatement(stmt: _Statement.Params2Void): InputRow._Scope + public fun _addStatement(stmt: _Statement.Params2Void): InputRow._Scope @LowLevelApi - public fun _addStatement(stmt: RawStatement.Params2Void.ImplementationsProvider): InputRow._Scope + public fun _addStatement(stmt: RawStatement.Params2Void.ImplementationsProvider): InputRow._Scope } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleScopedObject.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleScopedObject.kt index b98ea9f..2bee8e4 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleScopedObject.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleScopedObject.kt @@ -4,14 +4,14 @@ import kotlin.jvm.JvmName import ru.landgrafhomyak.db.skeleton1.api.ReflectionApi import ru.landgrafhomyak.db.skeleton1.api.ObjectOperations -public interface ModuleScopedObject { +public interface ModuleScopedObject { public val uExt: oUE @ReflectionApi public val name: String @ReflectionApi - public val module: Module + public val module: Module @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleUpgradeScope.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleUpgradeScope.kt index 11651fa..58b02ee 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleUpgradeScope.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/ModuleUpgradeScope.kt @@ -7,94 +7,94 @@ import ru.landgrafhomyak.db.skeleton1.api.runtime.InputRow import ru.landgrafhomyak.db.skeleton1.api.table.Table -public interface ModuleUpgradeScope : ModuleConstructorScope { +public interface ModuleUpgradeScope : ModuleConstructorScope { // Table ------------------------------------------------------------------- - public fun keepTable(table: Table): Table + public fun keepTable(table: Table): Table public fun keepAndRenameTable( - table: Table, - newNamespace: Namespace? = null, newName: String - ): Table + table: Table, + newNamespace: Namespace? = null, newName: String + ): Table public fun upgradeTable( - oldTable: Table, - upgrade: Table.Upgrade - ): Table + oldTable: Table, + upgrade: Table.Upgrade + ): Table public fun upgradeAndRenameTable( - table: Table, - newNamespace: Namespace? = null, newName: String, - upgrade: Table.Upgrade - ): Table + table: Table, + newNamespace: Namespace? = null, newName: String, + upgrade: Table.Upgrade + ): Table - public fun deleteTable(table: Table<*, omUE, IK>) - public fun deleteTableAfterModuleUpgrade(table: Table): Table + public fun deleteTable(table: Table<*, omUE>) + public fun deleteTableAfterModuleUpgrade(table: Table): Table - public fun exportTable(table: Table<*, omUE, IK>) + public fun exportTable(table: Table<*, omUE>) public fun importTable( - table: Table, - namespace: Namespace = this.rootNs, name: String - ): Table + table: Table, + namespace: Namespace = this.rootNs, name: String + ): Table public fun importAndUpgradeTable( - table: Table, - namespace: Namespace = this.rootNs, name: String, - upgrade: Table.Upgrade - ): Table + table: Table, + namespace: Namespace = this.rootNs, name: String, + upgrade: Table.Upgrade + ): Table // Object ------------------------------------------------------------------ - public fun keepModuleScopedObject(obj: ModuleScopedObject): ModuleScopedObject + public fun keepModuleScopedObject(obj: ModuleScopedObject): ModuleScopedObject public fun renameModuleScopedObject( - obj: ModuleScopedObject, - newNamespace: Namespace? = null, newName: String - ): ModuleScopedObject + obj: ModuleScopedObject, + newNamespace: Namespace? = null, newName: String + ): ModuleScopedObject - public fun deleteModuleScopedObject(obj: ModuleScopedObject) - public fun deleteModuleScopedObjectAfterModuleUpgrade(obj: ModuleScopedObject): ModuleScopedObject + public fun deleteModuleScopedObject(obj: ModuleScopedObject) + public fun deleteModuleScopedObjectAfterModuleUpgrade(obj: ModuleScopedObject): ModuleScopedObject - public fun exportModuleScopedObject(obj: ModuleScopedObject<*, omUE, IK>) + public fun exportModuleScopedObject(obj: ModuleScopedObject<*, omUE>) public fun importModuleScopedObject( - obj: ModuleScopedObject, - namespace: Namespace = this.rootNs, name: String - ): ModuleScopedObject + obj: ModuleScopedObject, + namespace: Namespace = this.rootNs, name: String + ): ModuleScopedObject // Module ------------------------------------------------------------------ - public fun keepModule(module: Module): Module - public fun keepAndMoveModule(oldModule: Module, newNs: Namespace): Module + public fun keepModule(module: Module): Module + public fun keepAndMoveModule(oldModule: Module, newNs: Namespace): Module - public fun upgradeModule(oldModule: Module<*, IK>, template: Module.Template): Module + public fun upgradeModule(oldModule: Module<*>, template: Module.Template): Module public fun upgradeAndMoveModule( - oldModule: Module<*, IK>, - newNamespace: Namespace, + oldModule: Module<*>, + newNamespace: Namespace, template: Module.Template - ): Module + ): Module - public fun deleteModule(oldModule: Module<*, IK>) - public fun deleteModuleAfterUpgrade(oldModule: Module): Module + public fun deleteModule(oldModule: Module<*>) + public fun deleteModuleAfterUpgrade(oldModule: Module): Module - public fun exportModule(table: Module<*, IK>) + public fun exportModule(table: Module<*>) public fun importModule( - module: Module, - namespace: Namespace, - ): Module + module: Module, + namespace: Namespace, + ): Module public fun importAndUpgradeModule( - module: Module, - namespace: Namespace, - upgrade: Module.Upgrade - ): Module + module: Module, + namespace: Namespace, + upgrade: Module.Upgrade + ): Module // Statements -------------------------------------------------------------- - public fun addStatementAfterUpgrade(stmt: _Statement.Void2Void<*, IK>) + public fun addStatementAfterUpgrade(stmt: _Statement.Void2Void<*>) public fun addStatementAfterUpgrade(stmt: RawStatement.Void2Void.ImplementationsProvider<*>) @LowLevelApi - public fun _addStatementAfterUpgrade(stmt: _Statement.Params2Void): InputRow._Scope + public fun _addStatementAfterUpgrade(stmt: _Statement.Params2Void): InputRow._Scope @LowLevelApi - public fun _addStatementAfterUpgrade(stmt: RawStatement.Params2Void.ImplementationsProvider): InputRow._Scope + public fun _addStatementAfterUpgrade(stmt: RawStatement.Params2Void.ImplementationsProvider): InputRow._Scope } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/Namespace.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/Namespace.kt index 4f69005..ed3aef6 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/Namespace.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/module/Namespace.kt @@ -3,7 +3,7 @@ package ru.landgrafhomyak.db.skeleton1.api.module import kotlin.jvm.JvmName import ru.landgrafhomyak.db.skeleton1.api.ReflectionApi -public interface Namespace { +public interface Namespace { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getName") @@ -12,5 +12,5 @@ public interface Namespace { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getPath") - public val parent: Namespace? + public val parent: Namespace? } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/Executor.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/Executor.kt index 5f58031..6f2c480 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/Executor.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/Executor.kt @@ -2,8 +2,8 @@ package ru.landgrafhomyak.db.skeleton1.api.runtime import ru.landgrafhomyak.db.skeleton1.api.LowLevelApi -public interface Executor { +public interface Executor { @Suppress("FunctionName") @LowLevelApi - public suspend fun _startTransaction(): Transaction + public suspend fun _startTransaction(): Transaction } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/InputRow.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/InputRow.kt index 11f56f7..f8074ee 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/InputRow.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/InputRow.kt @@ -4,27 +4,27 @@ import kotlin.jvm.JvmName import ru.landgrafhomyak.db.skeleton1.api.LowLevelApi import ru.landgrafhomyak.db.skeleton1.api.statement.InputParam -public interface InputRow { +public interface InputRow { @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("uExt") public val uExt: qUE - public operator fun set(c: InputParam, value: RuntimeType) + public operator fun set(c: InputParam, value: RuntimeType) - public operator fun set(c: InputParam, value: Byte): Unit = this.set(c, value) - public operator fun set(c: InputParam, value: UByte): Unit = this.set(c, value) - public operator fun set(c: InputParam, value: Short): Unit = this.set(c, value) - public operator fun set(c: InputParam, value: UShort): Unit = this.set(c, value) - public operator fun set(c: InputParam, value: Int): Unit = this.set(c, value) - public operator fun set(c: InputParam, value: UInt): Unit = this.set(c, value) - public operator fun set(c: InputParam, value: Long): Unit = this.set(c, value) - public operator fun set(c: InputParam, value: ULong): Unit = this.set(c, value) - public operator fun set(c: InputParam, value: Char): Unit = this.set(c, value) - public operator fun set(c: InputParam, value: Boolean): Unit = this.set(c, value) + public operator fun set(c: InputParam, value: Byte): Unit = this.set(c, value) + public operator fun set(c: InputParam, value: UByte): Unit = this.set(c, value) + public operator fun set(c: InputParam, value: Short): Unit = this.set(c, value) + public operator fun set(c: InputParam, value: UShort): Unit = this.set(c, value) + public operator fun set(c: InputParam, value: Int): Unit = this.set(c, value) + public operator fun set(c: InputParam, value: UInt): Unit = this.set(c, value) + public operator fun set(c: InputParam, value: Long): Unit = this.set(c, value) + public operator fun set(c: InputParam, value: ULong): Unit = this.set(c, value) + public operator fun set(c: InputParam, value: Char): Unit = this.set(c, value) + public operator fun set(c: InputParam, value: Boolean): Unit = this.set(c, value) @Suppress("ClassName") @LowLevelApi - public interface _Scope : InputRow { + public interface _Scope : InputRow { @Suppress("FunctionName") @LowLevelApi public suspend fun _finish(): Next @@ -36,7 +36,7 @@ public interface InputRow { @Suppress("ClassName") @LowLevelApi - public interface _Iterator : _Scope, InputRow { + public interface _Iterator : _Scope, InputRow { @Suppress("FunctionName") @LowLevelApi public suspend fun _next(): Boolean diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/OutputRow.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/OutputRow.kt index 4574e1e..cee61c0 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/OutputRow.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/OutputRow.kt @@ -4,27 +4,27 @@ import kotlin.jvm.JvmName import ru.landgrafhomyak.db.skeleton1.api.LowLevelApi import ru.landgrafhomyak.db.skeleton1.api.statement.OutputColumn -public interface OutputRow { +public interface OutputRow { @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("uExt") public val uExt: qUE - public operator fun get(c: OutputColumn): RuntimeType + public operator fun get(c: OutputColumn): RuntimeType - public operator fun get(c: OutputColumn): Byte = this.get(c) - public operator fun get(c: OutputColumn): UByte = this.get(c) - public operator fun get(c: OutputColumn): Short = this.get(c) - public operator fun get(c: OutputColumn): UShort = this.get(c) - public operator fun get(c: OutputColumn): Int = this.get(c) - public operator fun get(c: OutputColumn): UInt = this.get(c) - public operator fun get(c: OutputColumn): Long = this.get(c) - public operator fun get(c: OutputColumn): ULong = this.get(c) - public operator fun get(c: OutputColumn): Char = this.get(c) - public operator fun get(c: OutputColumn): Boolean = this.get(c) + public operator fun get(c: OutputColumn): Byte = this.get(c) + public operator fun get(c: OutputColumn): UByte = this.get(c) + public operator fun get(c: OutputColumn): Short = this.get(c) + public operator fun get(c: OutputColumn): UShort = this.get(c) + public operator fun get(c: OutputColumn): Int = this.get(c) + public operator fun get(c: OutputColumn): UInt = this.get(c) + public operator fun get(c: OutputColumn): Long = this.get(c) + public operator fun get(c: OutputColumn): ULong = this.get(c) + public operator fun get(c: OutputColumn): Char = this.get(c) + public operator fun get(c: OutputColumn): Boolean = this.get(c) @Suppress("ClassName") @LowLevelApi - public interface _Scope : OutputRow { + public interface _Scope : OutputRow { @Suppress("FunctionName") @LowLevelApi public suspend fun _finish(): Next @@ -36,7 +36,7 @@ public interface OutputRow { @Suppress("ClassName") @LowLevelApi - public interface _Iterator : _Scope, OutputRow { + public interface _Iterator : _Scope, OutputRow { @Suppress("FunctionName") @LowLevelApi public suspend fun _next(): Boolean diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/Transaction.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/Transaction.kt index c141f85..51aebd7 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/Transaction.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/runtime/Transaction.kt @@ -3,40 +3,40 @@ package ru.landgrafhomyak.db.skeleton1.api.runtime import ru.landgrafhomyak.db.skeleton1.api.LowLevelApi import ru.landgrafhomyak.db.skeleton1.api.statement._Statement -public interface Transaction { - public suspend fun executeQuery_void2void(compiledQuery: _Statement.Void2Void) +public interface Transaction { + public suspend fun executeQuery_void2void(compiledQuery: _Statement.Void2Void) @Suppress("FunctionName") @LowLevelApi - public suspend fun _executeQuery_void2row(compiledQuery: _Statement.Void2Row): OutputRow._Scope + public suspend fun _executeQuery_void2row(compiledQuery: _Statement.Void2Row): OutputRow._Scope @Suppress("FunctionName") @LowLevelApi - public suspend fun _executeQuery_void2rowOrNull(compiledQuery: _Statement.Void2RowOrNull): OutputRow._Scope? + public suspend fun _executeQuery_void2rowOrNull(compiledQuery: _Statement.Void2RowOrNull): OutputRow._Scope? @Suppress("FunctionName") @LowLevelApi - public suspend fun _executeQuery_void2table(compiledQuery: _Statement.Void2RowOrNull): OutputRow._Iterator + public suspend fun _executeQuery_void2table(compiledQuery: _Statement.Void2RowOrNull): OutputRow._Iterator @Suppress("FunctionName") @LowLevelApi - public suspend fun _executeQuery_params2void(compiledQuery: _Statement.Void2Void): InputRow._Scope + public suspend fun _executeQuery_params2void(compiledQuery: _Statement.Void2Void): InputRow._Scope @Suppress("FunctionName") @LowLevelApi - public suspend fun _executeQuery_params2row(compiledQuery: _Statement.Void2Row): InputRow._Scope> + public suspend fun _executeQuery_params2row(compiledQuery: _Statement.Void2Row): InputRow._Scope> @Suppress("FunctionName") @LowLevelApi - public suspend fun _executeQuery_params2rowOrNull(compiledQuery: _Statement.Void2RowOrNull): InputRow._Scope?> + public suspend fun _executeQuery_params2rowOrNull(compiledQuery: _Statement.Void2RowOrNull): InputRow._Scope?> @Suppress("FunctionName") @LowLevelApi - public suspend fun _executeQuery_params2table(compiledQuery: _Statement.Void2RowOrNull): InputRow._Scope> + public suspend fun _executeQuery_params2table(compiledQuery: _Statement.Void2RowOrNull): InputRow._Scope> @Suppress("FunctionName") @LowLevelApi - public suspend fun _executeBatch_params2void(compiledQuery: _Statement.Void2Void): InputRow._Iterator + public suspend fun _executeBatch_params2void(compiledQuery: _Statement.Void2Void): InputRow._Iterator public suspend fun rollback() diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/InputParam.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/InputParam.kt index a68870d..3cf388b 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/InputParam.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/InputParam.kt @@ -3,7 +3,7 @@ package ru.landgrafhomyak.db.skeleton1.api.statement import kotlin.jvm.JvmName import ru.landgrafhomyak.db.skeleton1.api.ReflectionApi -public interface InputParam<@Suppress("unused") RT, sUE : Any, IK : Any> { +public interface InputParam<@Suppress("unused") RT, sUE : Any> { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getName") @@ -12,5 +12,5 @@ public interface InputParam<@Suppress("unused") RT, sUE : Any, IK : Any> { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getStatement") - public val statement: _Statement + public val statement: _Statement } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/OutputColumn.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/OutputColumn.kt index 7fa07c4..02b8c17 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/OutputColumn.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/OutputColumn.kt @@ -3,7 +3,7 @@ package ru.landgrafhomyak.db.skeleton1.api.statement import kotlin.jvm.JvmName import ru.landgrafhomyak.db.skeleton1.api.ReflectionApi -public interface OutputColumn<@Suppress("unused") RT, sUE : Any, IK : Any> { +public interface OutputColumn<@Suppress("unused") RT, sUE : Any> { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("name") @@ -12,5 +12,5 @@ public interface OutputColumn<@Suppress("unused") RT, sUE : Any, IK : Any> { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getStatement") - public val statement: _Statement + public val statement: _Statement } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/QueriesCompiler.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/QueriesCompiler.kt index ebfe1d9..7b8942b 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/QueriesCompiler.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/QueriesCompiler.kt @@ -1,12 +1,12 @@ package ru.landgrafhomyak.db.skeleton1.api.statement -public interface QueriesCompiler { - public fun raw_void2void(constructor: RawStatement.Void2Void.ImplementationsProvider): RawStatement.Void2Void - public fun raw_void2row(constructor: RawStatement.Void2Row.ImplementationsProvider): RawStatement.Void2Row - public fun raw_void2rowOrNull(constructor: RawStatement.Void2RowOrNull.ImplementationsProvider): RawStatement.Void2RowOrNull - public fun raw_void2table(constructor: RawStatement.Void2Table.ImplementationsProvider): RawStatement.Void2Table - public fun raw_params2void(constructor: RawStatement.Params2Void.ImplementationsProvider): RawStatement.Params2Void - public fun raw_params2row(constructor: RawStatement.Params2Row.ImplementationsProvider): RawStatement.Params2Row - public fun raw_params2rowOrNull(constructor: RawStatement.Params2RowOrNull.ImplementationsProvider): RawStatement.Params2RowOrNull - public fun raw_params2table(constructor: RawStatement.Params2Table.ImplementationsProvider): RawStatement.Params2Table +public interface QueriesCompiler { + public fun raw_void2void(constructor: RawStatement.Void2Void.ImplementationsProvider): RawStatement.Void2Void + public fun raw_void2row(constructor: RawStatement.Void2Row.ImplementationsProvider): RawStatement.Void2Row + public fun raw_void2rowOrNull(constructor: RawStatement.Void2RowOrNull.ImplementationsProvider): RawStatement.Void2RowOrNull + public fun raw_void2table(constructor: RawStatement.Void2Table.ImplementationsProvider): RawStatement.Void2Table + public fun raw_params2void(constructor: RawStatement.Params2Void.ImplementationsProvider): RawStatement.Params2Void + public fun raw_params2row(constructor: RawStatement.Params2Row.ImplementationsProvider): RawStatement.Params2Row + public fun raw_params2rowOrNull(constructor: RawStatement.Params2RowOrNull.ImplementationsProvider): RawStatement.Params2RowOrNull + public fun raw_params2table(constructor: RawStatement.Params2Table.ImplementationsProvider): RawStatement.Params2Table } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/RawStatement.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/RawStatement.kt index e116539..22c215e 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/RawStatement.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/RawStatement.kt @@ -2,10 +2,10 @@ package ru.landgrafhomyak.db.skeleton1.api.statement import ru.landgrafhomyak.db.skeleton1.api.DriverMetainfo -public interface RawStatement : _Statement { +public interface RawStatement : _Statement { public override val uExt: sUE - public interface Void2Void : RawStatement, _Statement.Void2Void { + public interface Void2Void : RawStatement, _Statement.Void2Void { override val uExt: sUE public interface Constructor<@Suppress("unused") sUE : Any?> @@ -25,7 +25,7 @@ public interface RawStatement : _Statement { } } - public interface Void2Row : RawStatement, _Statement.Void2Row { + public interface Void2Row : RawStatement, _Statement.Void2Row { override val uExt: sUE public interface Constructor { @@ -47,7 +47,7 @@ public interface RawStatement : _Statement { } } - public interface Void2RowOrNull : RawStatement, _Statement.Void2RowOrNull { + public interface Void2RowOrNull : RawStatement, _Statement.Void2RowOrNull { override val uExt: sUE public interface Constructor { @@ -70,7 +70,7 @@ public interface RawStatement : _Statement { } - public interface Void2Table : RawStatement, _Statement.Void2Table { + public interface Void2Table : RawStatement, _Statement.Void2Table { override val uExt: sUE public interface Constructor { @@ -92,7 +92,7 @@ public interface RawStatement : _Statement { } } - public interface Params2Void : RawStatement, _Statement.Params2Void { + public interface Params2Void : RawStatement, _Statement.Params2Void { override val uExt: sUE public interface Constructor { @@ -114,7 +114,7 @@ public interface RawStatement : _Statement { } } - public interface Params2Row : RawStatement, _Statement.Params2Row { + public interface Params2Row : RawStatement, _Statement.Params2Row { override val uExt: sUE public interface Constructor { @@ -136,7 +136,7 @@ public interface RawStatement : _Statement { } } - public interface Params2RowOrNull : RawStatement, _Statement.Params2RowOrNull { + public interface Params2RowOrNull : RawStatement, _Statement.Params2RowOrNull { override val uExt: sUE public interface Constructor { @@ -158,7 +158,7 @@ public interface RawStatement : _Statement { } } - public interface Params2Table : RawStatement, _Statement.Params2Table { + public interface Params2Table : RawStatement, _Statement.Params2Table { override val uExt: sUE public interface Constructor { diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/StatementIODeclarationScope.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/StatementIODeclarationScope.kt index 1a38d72..0c7da2d 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/StatementIODeclarationScope.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/StatementIODeclarationScope.kt @@ -2,14 +2,14 @@ package ru.landgrafhomyak.db.skeleton1.api.statement import ru.landgrafhomyak.db.skeleton1.api.DatabaseType -public interface StatementIODeclarationScope<@Suppress("unused") sUE : Any, @Suppress("unused") IK : Any> { - public interface Input : StatementIODeclarationScope { - public fun inputParam(type: DatabaseType.ImplementationsProvider): InputParam +public interface StatementIODeclarationScope<@Suppress("unused") sUE : Any> { + public interface Input : StatementIODeclarationScope { + public fun inputParam(type: DatabaseType.ImplementationsProvider): InputParam } - public interface Output : StatementIODeclarationScope { - public fun outputColumn(type: DatabaseType.ImplementationsProvider): OutputColumn + public interface Output : StatementIODeclarationScope { + public fun outputColumn(type: DatabaseType.ImplementationsProvider): OutputColumn } - public interface InputOutput : StatementIODeclarationScope, Input, Output + public interface InputOutput : StatementIODeclarationScope, Input, Output } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/_Statement.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/_Statement.kt index cd9940b..c7f5908 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/_Statement.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/_Statement.kt @@ -4,17 +4,17 @@ import kotlin.jvm.JvmName @Suppress("ClassName") -public interface _Statement { +public interface _Statement { @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("uExt") public val uExt: sUE - public interface Void2Void : _Statement - public interface Void2Row : _Statement - public interface Void2RowOrNull : _Statement - public interface Void2Table : _Statement - public interface Params2Void : _Statement - public interface Params2Row : _Statement - public interface Params2RowOrNull : _Statement - public interface Params2Table : _Statement + public interface Void2Void : _Statement + public interface Void2Row : _Statement + public interface Void2RowOrNull : _Statement + public interface Void2Table : _Statement + public interface Params2Void : _Statement + public interface Params2Row : _Statement + public interface Params2RowOrNull : _Statement + public interface Params2Table : _Statement } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/Column.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/Column.kt index 6d57404..88d6dea 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/Column.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/Column.kt @@ -4,7 +4,7 @@ import kotlin.jvm.JvmName import ru.landgrafhomyak.db.skeleton1.api.ReflectionApi import ru.landgrafhomyak.db.skeleton1.api.DatabaseType -public interface Column { +public interface Column { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("name") @@ -17,7 +17,7 @@ public interface Column { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getTable") - public val table: Table + public val table: Table @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/Table.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/Table.kt index cdafb38..86face6 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/Table.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/Table.kt @@ -3,9 +3,8 @@ package ru.landgrafhomyak.db.skeleton1.api.table import kotlin.jvm.JvmName import ru.landgrafhomyak.db.skeleton1.api.ReflectionApi import ru.landgrafhomyak.db.skeleton1.api.module.Module -import ru.landgrafhomyak.db.skeleton1.api.module.Namespace -public interface Table { +public interface Table { @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("uExt") public val uExt: UE @@ -23,7 +22,7 @@ public interface Table { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getModule") - public val module: Module + public val module: Module public enum class LifeTime { DATABASE_SCOPE, @@ -40,28 +39,28 @@ public interface Table { @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getMemberColumns") - public val memberColumns: Collection> + public val memberColumns: Collection> @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getMemberObjects") - public val memberObjects: Collection> + public val memberObjects: Collection> @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getMemberColumnsWhileUpgrade") - public val memberColumnsWhileUpgrade: Collection> + public val memberColumnsWhileUpgrade: Collection> @ReflectionApi @Suppress("INAPPLICABLE_JVM_NAME") @get:JvmName("getMemberObjectsWhileUpgrade") - public val memberObjectsWhileUpgrade: Collection> + public val memberObjectsWhileUpgrade: Collection> - public interface Constructor { - public fun createTable(context: TableConstructorScope): tUE + public interface Constructor { + public fun createTable(context: TableConstructorScope): tUE } - public interface Upgrade { - public fun upgradeTable(oldTable: toUE, context: TableUpgradeScope): tnUE + public interface Upgrade { + public fun upgradeTable(oldTable: toUE, context: TableUpgradeScope): tnUE } } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableConstructorScope.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableConstructorScope.kt index 8eeb68c..13fd62c 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableConstructorScope.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableConstructorScope.kt @@ -8,38 +8,38 @@ import ru.landgrafhomyak.db.skeleton1.api.statement._Statement import ru.landgrafhomyak.db.skeleton1.api.runtime.InputRow -public interface TableConstructorScope { - public fun column(name: String, type: DatabaseType.ImplementationsProvider): Column +public interface TableConstructorScope { + public fun column(name: String, type: DatabaseType.ImplementationsProvider): Column public fun column( name: String, type: DatabaseType.ImplementationsProvider, - alterCreateColumn: _Statement.Void2Void<*, IK> - ): Column + alterCreateColumn: _Statement.Void2Void<*> + ): Column public fun column( name: String, type: DatabaseType.ImplementationsProvider, alterCreateColumn: RawStatement.Void2Void.ImplementationsProvider<*> - ): Column + ): Column @LowLevelApi public fun _column( name: String, type: DatabaseType.ImplementationsProvider, - alterCreateColumn: _Statement.Void2Void - ): InputRow._Scope> + alterCreateColumn: _Statement.Void2Void + ): InputRow._Scope> @LowLevelApi public fun _column( name: String, type: DatabaseType.ImplementationsProvider, alterCreateColumn: RawStatement.Params2Void.ImplementationsProvider - ): InputRow._Scope> + ): InputRow._Scope> - public fun tableScopedObject(name: String, metadata: ObjectOperations.ImplementationsProvider): TableScopedObject + public fun tableScopedObject(name: String, metadata: ObjectOperations.ImplementationsProvider): TableScopedObject - public fun addAlterStatement(stmt: _Statement.Void2Void<*, IK>) + public fun addAlterStatement(stmt: _Statement.Void2Void<*>) public fun addAlterStatement(stmt: RawStatement.Void2Void.ImplementationsProvider<*>) @LowLevelApi - public fun _addAlterStatement(stmt: _Statement.Void2Void): InputRow._Scope + public fun _addAlterStatement(stmt: _Statement.Void2Void): InputRow._Scope @LowLevelApi - public fun _addAlterStatement(stmt: RawStatement.Params2Void.ImplementationsProvider): InputRow._Scope + public fun _addAlterStatement(stmt: RawStatement.Params2Void.ImplementationsProvider): InputRow._Scope } \ No newline at end of file diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableScopedObject.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableScopedObject.kt index 8c4c13b..753d29f 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableScopedObject.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableScopedObject.kt @@ -4,14 +4,14 @@ import kotlin.jvm.JvmName import ru.landgrafhomyak.db.skeleton1.api.ReflectionApi import ru.landgrafhomyak.db.skeleton1.api.ObjectOperations -public interface TableScopedObject { +public interface TableScopedObject { public val uExt: oUE @ReflectionApi public val name: String @ReflectionApi - public val table: Table + public val table: Table @ReflectionApi public val meta: ObjectOperations.ImplementationsProvider diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableUpgradeScope.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableUpgradeScope.kt index 85d0524..d066328 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableUpgradeScope.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/table/TableUpgradeScope.kt @@ -5,23 +5,23 @@ import ru.landgrafhomyak.db.skeleton1.api.statement.RawStatement import ru.landgrafhomyak.db.skeleton1.api.statement._Statement import ru.landgrafhomyak.db.skeleton1.api.runtime.InputRow -public interface TableUpgradeScope : TableConstructorScope { - public fun keepColumn(c: Column): Column - public fun renameColumn(c: Column, newName: String): Column - public fun deleteColumn(c: Column<*, toUE, IK>) - public fun deleteColumnAfterUpgrade(c: Column): Column +public interface TableUpgradeScope : TableConstructorScope { + public fun keepColumn(c: Column): Column + public fun renameColumn(c: Column, newName: String): Column + public fun deleteColumn(c: Column<*, toUE>) + public fun deleteColumnAfterUpgrade(c: Column): Column - public fun keepTableScopedObject(obj: TableScopedObject): TableScopedObject - public fun renameTableScopedObject(obj: TableScopedObject, newName: String): TableScopedObject - public fun deleteTableScopedObject(obj: TableScopedObject) - public fun deleteTableScopedObjectAfterUpgrade(obj: TableScopedObject): TableScopedObject + public fun keepTableScopedObject(obj: TableScopedObject): TableScopedObject + public fun renameTableScopedObject(obj: TableScopedObject, newName: String): TableScopedObject + public fun deleteTableScopedObject(obj: TableScopedObject) + public fun deleteTableScopedObjectAfterUpgrade(obj: TableScopedObject): TableScopedObject - public fun addAlterStatementAfterUpgrade(stmt: _Statement.Void2Void<*, IK>) + public fun addAlterStatementAfterUpgrade(stmt: _Statement.Void2Void<*>) public fun addAlterStatementAfterUpgrade(stmt: RawStatement.Void2Void.ImplementationsProvider<*>) @LowLevelApi - public fun _addAlterStatementAfterUpgrade(stmt: _Statement.Params2Void): InputRow._Scope + public fun _addAlterStatementAfterUpgrade(stmt: _Statement.Params2Void): InputRow._Scope @LowLevelApi - public fun _addAlterStatementAfterUpgrade(stmt: RawStatement.Params2Void.ImplementationsProvider): InputRow._Scope + public fun _addAlterStatementAfterUpgrade(stmt: RawStatement.Params2Void.ImplementationsProvider): InputRow._Scope } \ No newline at end of file