All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sxtanna.db.struct.Database.kt Maven / Gradle / Ivy

There is a newer version: 1.6
Show newest version
package com.sxtanna.db.struct

import com.sxtanna.db.type.Named

abstract class Database : Named {

    override val name : String
        get() = this::class.simpleName ?: throw UnsupportedOperationException("Class ${this::class} cannot be a database")

    @PublishedApi
    internal val tables = mutableListOf>()


    inline fun  table() : Table {
        return Table.of().also { tables.add(it) }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy