diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/catalogue.lil | 10 | ||||
-rw-r--r-- | src/test.csv | 6 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/catalogue.lil b/src/catalogue.lil index 52afd69..ab6b20a 100644 --- a/src/catalogue.lil +++ b/src/catalogue.lil @@ -39,8 +39,14 @@ catalogue:table catalogue # alternate syntax to make a table, # t: insert food:("Eggs","Pancakes","Grapefruit") quantity:(3,4,1) tasty:(1,1,0) into 0 +# validate that I can write a table to disk and read it back in show[catalogue] - out:writecsv[catalogue] +show[out] +write["test.csv" out] + +data:read["test.csv"] +newtable:readcsv[data] +show[newtable] +# HUGE SUCCESS! -show[out] \ No newline at end of file diff --git a/src/test.csv b/src/test.csv new file mode 100644 index 0000000..cfb85c6 --- /dev/null +++ b/src/test.csv @@ -0,0 +1,6 @@ +entry_type,parent,title,body,reference,created_date +folder,0,read,0,0,2022-12-07 +folder,0,to read,0,0,2022-12-07 +note,0,what an idea,what if I made a lil cli,0,2022-12-07 +link,0,Oatmeal,0,https://eli.li,2022-12-07 +link,0,sans,0,https://smallandnearlysilent.com,2022-12-07 \ No newline at end of file |