Simplified very-high-level
This commit is contained in:
parent
78f6752598
commit
ab65e62ab0
@ -1,26 +0,0 @@
|
|||||||
package ru.landgrafhomyak.db.sql_skeleton_0.api.runtime
|
|
||||||
|
|
||||||
import kotlin.jvm.JvmName
|
|
||||||
import ru.landgrafhomyak.db.sql_skeleton_0.api.LowLevelApi
|
|
||||||
import ru.landgrafhomyak.db.sql_skeleton_0.api.module.Module
|
|
||||||
import ru.landgrafhomyak.db.sql_skeleton_0.api.module.ModuleTemplate
|
|
||||||
|
|
||||||
@LowLevelApi
|
|
||||||
public interface DatabaseConnection {
|
|
||||||
@Suppress("FunctionName")
|
|
||||||
@LowLevelApi
|
|
||||||
public fun <UE : Any> _createModuleTemplates(x: ModuleTemplate.VersionsInitializer<UE>): UE
|
|
||||||
|
|
||||||
@Suppress("FunctionName")
|
|
||||||
@LowLevelApi
|
|
||||||
public fun <mUE : Any> _setRootModuleAndLockSchema(t: ModuleTemplate<mUE>): Module<mUE>
|
|
||||||
|
|
||||||
@Suppress("FunctionName")
|
|
||||||
@LowLevelApi
|
|
||||||
public fun _finishSetup()
|
|
||||||
|
|
||||||
@Suppress("PropertyName", "INAPPLICABLE_JVM_NAME")
|
|
||||||
@LowLevelApi
|
|
||||||
@get:JvmName("_getExecutor")
|
|
||||||
public val _executor: Executor
|
|
||||||
}
|
|
@ -1,35 +1,9 @@
|
|||||||
package ru.landgrafhomyak.db.sql_skeleton_0.api.runtime
|
package ru.landgrafhomyak.db.sql_skeleton_0.api.runtime
|
||||||
|
|
||||||
import ru.landgrafhomyak.db.sql_skeleton_0.api.LowLevelApi
|
import ru.landgrafhomyak.db.sql_skeleton_0.api.LowLevelApi
|
||||||
import ru.landgrafhomyak.db.sql_skeleton_0.api.table.RowId
|
|
||||||
import ru.landgrafhomyak.db.sql_skeleton_0.api.table.Table
|
|
||||||
import ru.landgrafhomyak.db.sql_skeleton_0.api.queries._Statement
|
|
||||||
|
|
||||||
public interface Executor {
|
public interface Executor<RUNTIME_KEY : Any> {
|
||||||
@Suppress("FunctionName")
|
@Suppress("FunctionName")
|
||||||
@LowLevelApi
|
@LowLevelApi
|
||||||
public suspend fun _startTransaction(): Transaction
|
public suspend fun _startTransaction(): Transaction<RUNTIME_KEY>
|
||||||
|
|
||||||
@Suppress("FunctionName")
|
|
||||||
@LowLevelApi
|
|
||||||
public suspend fun <QueryUserExtension : Any> _executeAutoTransactedQuery(compiledQuery: _Statement.Void2Table<QueryUserExtension>): OutputRow._Iterator<QueryUserExtension, Unit>
|
|
||||||
|
|
||||||
@Suppress("FunctionName")
|
|
||||||
@LowLevelApi
|
|
||||||
public suspend fun <QueryUserExtension : Any> _executeAutoTransactedQuery(compiledQuery: _Statement.Params2Table<QueryUserExtension>): InputRow._Scope<QueryUserExtension, OutputRow._Iterator<QueryUserExtension, Unit>>
|
|
||||||
|
|
||||||
@Suppress("FunctionName")
|
|
||||||
@LowLevelApi
|
|
||||||
public suspend fun <QueryUserExtension : Any> _executeAutoTransactedQuery(compiledQuery: _Statement.Table2Void<QueryUserExtension>): InputRow._Iterator<QueryUserExtension, Unit>
|
|
||||||
|
|
||||||
@Suppress("FunctionName")
|
|
||||||
@LowLevelApi
|
|
||||||
public suspend fun <QueryUserExtension : Any> _executeAutoTransactedQuery(compiledQuery: _Statement.Params2Void<QueryUserExtension>): InputRow._Scope<QueryUserExtension, Unit>
|
|
||||||
|
|
||||||
public fun <TableUserException : Any, V> mapOfRowIds(
|
|
||||||
table: Table<TableUserException, *>,
|
|
||||||
builder: (MutableMap<OutputRow<TableUserException>, V>) -> Unit
|
|
||||||
): Map<RowId<TableUserException>, V>
|
|
||||||
|
|
||||||
public fun <TableUserException : Any, V> mutableMapOfRowIds(table: Table<TableUserException, *>): MutableMap<RowId<TableUserException>, V>
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user