sqlite

Allows to perform queries on a data stored in an SQLite database.

Syntax

  1. sqlite('db_path', 'table_name')

Arguments

  • db_path — Path to a file with an SQLite database. String.
  • table_name — Name of a table in the SQLite database. String.

Returned value

  • A table object with the same columns as in the original SQLite table.

Example

Query:

  1. SELECT * FROM sqlite('sqlite.db', 'table1') ORDER BY col2;

Result:

  1. ┌─col1──┬─col2─┐
  2. line1 1
  3. line2 2
  4. line3 3
  5. └───────┴──────┘

See Also