2

The CSV example at https://calcite.apache.org/docs/tutorial.html shows how to access the CSV data using sqlline.

Does anyone know of any tutorial that show how to create a standalone JDBC driver from scratch for CSV example, so that it can be use for example using squirrelsql?

weejim
  • 23
  • 1
  • 4

1 Answers1

0

You shouldn't need to repackage anything as the standard artifacts contain a JDBC driver. You can see examples of valid JDBC connection strings in the documentation.

For the CSV adapter, you might have a connection string like the following (substituting the appropriate path).

jdbc:calcite:schemaFactory=org.apache.calcite.adapter.csv.CsvSchemaFactory; schema.directory=/path/to/csv/files
Michael Mior
  • 28,107
  • 9
  • 89
  • 113