Skip to content

Commit

Permalink
Connection now exposes ConnectionProvider.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralph Gasser <[email protected]>
  • Loading branch information
ppanopticon committed Mar 28, 2024
1 parent 377308a commit 7ce8b38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import org.vitrivr.engine.core.model.metamodel.Schema
* @version 1.0.0
*/
@Suppress("UNCHECKED_CAST")
abstract class AbstractConnection(override val schemaName: String, private val provider: ConnectionProvider): Connection {
abstract class AbstractConnection(override val schemaName: String, override val provider: ConnectionProvider) : Connection {

/** An internal [Map] of registered [Reader], [Writer] and [Initializer] instances. */
private val readers: Map<Schema.Field<*, Descriptor>, DescriptorReader<*>> = HashMap()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ import java.io.Closeable
*/
sealed interface Connection: Closeable {

/** The [ConnectionProvider] used to create this [Connection]. */
val provider: ConnectionProvider

/** The name of the [Schema] managed by this [Connection]. */
val schemaName: String

Expand Down

0 comments on commit 7ce8b38

Please sign in to comment.