TableMetadata

class TableMetadata(val name: String, val schemaName: String?, val catalogue: String?)

Represents a table metadata to store information about a database table, including its name, schema name, and catalogue name.

NOTE: we need to extract both, schemaName and catalogue because the different databases have different implementations of metadata.

Constructors

Link copied to clipboard
constructor(name: String, schemaName: String?, catalogue: String?)

Properties

Link copied to clipboard

the name of the catalogue the table belongs to (optional).

Link copied to clipboard

the name of the table.

Link copied to clipboard

the name of the schema the table belongs to (optional).

Functions

Link copied to clipboard
fun copy(name: String = this.name, schemaName: String? = this.schemaName, catalogue: String? = this.catalogue): TableMetadata

Creates a copy of the TableMetadata instance with optional modifications.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String