Compare commits

...

4 Commits
v0.1 ... master

3 changed files with 9 additions and 9 deletions

View File

@ -14,7 +14,7 @@ buildscript {
} }
group = "ru.landgrafhomyak.db" group = "ru.landgrafhomyak.db"
version = "0.1" version = "0.2"
repositories { repositories {
mavenCentral() mavenCentral()
@ -34,12 +34,6 @@ xomrk {
dependencies { dependencies {
} }
} }
jvmMain {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1")
}
}
} }
} }

View File

@ -8,5 +8,8 @@ public class Column(
) { ) {
public constructor(table: Table, name: String, type: String) : this(table, name, type, type) public constructor(table: Table, name: String, type: String) : this(table, name, type, type)
override fun toString(): String = this.name public val asSqlReference: String = "\"${this.name}\""
public val asSqlString: String = "\'${this.name}\'"
override fun toString(): String = this.asSqlReference
} }

View File

@ -37,6 +37,9 @@ public class Namespace(
} }
public companion object { public companion object {
public val ROOT: Namespace = Namespace("", arrayOf()) @Deprecated("Root namespace isn't global object, so you need to create it again each time you use it", replaceWith = ReplaceWith("this.newRootNamespace()"))
public val ROOT: Namespace get() = this.newRootNamespace()
public fun newRootNamespace(): Namespace = Namespace("", arrayOf())
} }
} }