Temp tables can be created through a module object
This commit is contained in:
parent
77f32fc5b6
commit
c88ec6d232
@ -3,6 +3,8 @@ package ru.landgrafhomyak.db.serdha0.api.module
|
|||||||
import kotlin.jvm.JvmName
|
import kotlin.jvm.JvmName
|
||||||
import ru.landgrafhomyak.db.serdha0.api.queries._Query
|
import ru.landgrafhomyak.db.serdha0.api.queries._Query
|
||||||
import ru.landgrafhomyak.db.serdha0.api.runtime.Executor
|
import ru.landgrafhomyak.db.serdha0.api.runtime.Executor
|
||||||
|
import ru.landgrafhomyak.db.serdha0.api.table.Table
|
||||||
|
import ru.landgrafhomyak.db.serdha0.api.table.TableConstructor
|
||||||
|
|
||||||
|
|
||||||
public interface Module<mUE : Any> {
|
public interface Module<mUE : Any> {
|
||||||
@ -16,6 +18,10 @@ public interface Module<mUE : Any> {
|
|||||||
|
|
||||||
public fun <R : Any> createQuery(c: _Query.Constructor<R>): R
|
public fun <R : Any> createQuery(c: _Query.Constructor<R>): R
|
||||||
|
|
||||||
|
public fun <tUE : Any> createSessionScopeTemporaryTable(name: String, initializer: TableConstructor<tUE>): Table<tUE, Nothing>
|
||||||
|
|
||||||
|
public fun <tUE : Any> createTransactionScopeTemporaryTable(name: String, initializer: TableConstructor<tUE>): Table<tUE, Nothing>
|
||||||
|
|
||||||
@Suppress("INAPPLICABLE_JVM_NAME")
|
@Suppress("INAPPLICABLE_JVM_NAME")
|
||||||
@get:JvmName("executor")
|
@get:JvmName("executor")
|
||||||
public val executor: Executor
|
public val executor: Executor
|
||||||
|
@ -42,7 +42,5 @@ public interface UpgradeModuleScope<omUE : Any> : CreateModuleScope {
|
|||||||
|
|
||||||
public fun deleteTableAfterModuleUpgraded(table: Table<*, *>)
|
public fun deleteTableAfterModuleUpgraded(table: Table<*, *>)
|
||||||
|
|
||||||
public fun <tUE : Any> createModuleUpgradeScopeTemporaryTable(namespace: Namespace, name: String, initializer: TableConstructor<tUE>): Table<tUE, Nothing>
|
|
||||||
|
|
||||||
public fun <smUE : Any> upgradeModule(oldModule: Module<*>, rootNs: Namespace, template: ModuleTemplate<smUE>): Module<smUE>
|
public fun <smUE : Any> upgradeModule(oldModule: Module<*>, rootNs: Namespace, template: ModuleTemplate<smUE>): Module<smUE>
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user