ai.platon.pulsar.ql.h2.H2Ext.kt Maven / Gradle / Ivy
The newest version!
package ai.platon.pulsar.ql.h2
import org.h2.tools.SimpleResultSet
import org.h2.value.DataType
import org.h2.value.Value
fun SimpleResultSet.addColumn(name: String) {
addColumn(name, DataType.convertTypeToSQLType(Value.STRING), 0, 0)
}
fun SimpleResultSet.addColumns(vararg names: String) {
names.forEach { addColumn(it) }
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy