into sqlite
for conversions
Convert table into a SQLite database.
Signature
> into sqlite {flags} (file-name)
Flags
--table-name, -t {string}
: Specify table name to store the data in
Parameters
file-name
: Specify the filename to save the database to.
Input/output types:
input | output |
---|---|
record | nothing |
table | nothing |
Examples
Convert ls entries into a SQLite database with 'main' as the table name
> ls | into sqlite my_ls.db
Convert ls entries into a SQLite database with 'my_table' as the table name
> ls | into sqlite my_ls.db -t my_table
Convert table literal into a SQLite database with 'main' as the table name
> [[name]; [-----] [someone] [=====] [somename] ['(((((']] | into sqlite filename.db
Insert a single record into a SQLite database
> { foo: bar, baz: quux } | into sqlite filename.db