maxmello
05/26/2021, 3:57 PMAndres
02/07/2024, 5:07 PMmaxmello
02/07/2024, 5:33 PMAndres
02/07/2024, 5:34 PMmaxmello
02/20/2024, 6:23 PMopen class HyperTable(name: String = "", timeColumnName: String = "time") : Table(name) {
val time = timestamp(timeColumnName)
override fun createStatement(): List<String> {
return super.createStatement() + listOf("SELECT create_hypertable('${this.tableName}','${time.name}')")
}
}
Most documentation recommends using timestampWithTimeZone, but for our specific use case, handling time zones manually works better. Right now, we only insert into the table and have not yet build any queries on top of it