Normal tables now can be immutable

This commit is contained in:
Andrew Golovashevich 2025-02-07 17:20:29 +03:00
parent aec144d37c
commit 7ca7f9878e
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ public interface CreateModuleScope {
* @param initializer Table-related descriptors initializer.
* @return Table descriptor.
*/
public fun <tUE : Any> createTable(namespace: Namespace = this.rootNs, name: String, initializer: TableConstructor<tUE>): Table<tUE, Nothing>
public fun <tUE : Any> createTable(namespace: Namespace = this.rootNs, name: String, initializer: TableConstructor<tUE>, mutable: Boolean = true): Table<tUE, Nothing>
/**
* Creates a temporary table that exits only until connection to the database not [closed][SynchronizedDatabase._close].

View File

@ -15,6 +15,7 @@ public interface Table<UserExtension : Any, PreviousUserExtension : Any> : _Sele
public val temporaryType: TemporaryType?
// todo make nullable for temp tables
public val namespacesFromModuleRoot: List<String>
public val isMutable: Boolean
}