mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-03 16:04:13 +02:00
sqlite-utils memory handles files with same filename, closes #325
This commit is contained in:
parent
7427a9137f
commit
c1b26eed03
3 changed files with 35 additions and 1 deletions
|
|
@ -281,6 +281,10 @@ The in-memory tables will be named after the files without their extensions. The
|
|||
|
||||
$ sqlite-utils memory example.csv "select * from t"
|
||||
|
||||
If two files have the same name they will be assigned a numeric suffix::
|
||||
|
||||
$ sqlite-utils memory foo/data.csv bar/data.csv "select * from data_2"
|
||||
|
||||
To read from standard input, use either ``-`` or ``stdin`` as the filename - then use ``stdin`` or ``t`` or ``t1`` as the table name::
|
||||
|
||||
$ cat example.csv | sqlite-utils memory - "select * from stdin"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue