Skip to main content

//clika-runtime/io.clika.runtime/Table/Companion

Companion

[common]
object Companion

Functions​

NameSummary
create[common]
fun create(): Table
An empty frame.
csvToJsonArray[common]
fun csvToJsonArray(csvText: String): String
CSV text (a header row plus rows) straight to a JSON array of objects, cells typed as the reader infers them.
jsonArrayToCsv[common]
fun jsonArrayToCsv(jsonText: String): String
A JSON array of objects straight to CSV text: the keys become columns in first-seen order, a missing key or a null is an empty cell.
readCsv[common]
fun readCsv(path: String, options: CsvReadOptions = CsvReadOptions()): Table
Read a CSV file into a frame; the column types are inferred.
readCsvString[common]
fun readCsvString(text: String, options: CsvReadOptions = CsvReadOptions()): Table
Parse CSV text into a frame; malformed text fails typed.