From 6bf9fc078a0e605a432f1c880fe0fbb16211a0b7 Mon Sep 17 00:00:00 2001 From: elioat Date: Fri, 9 Dec 2022 14:32:06 -0500 Subject: * --- src/catalogue.lil | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') diff --git a/src/catalogue.lil b/src/catalogue.lil index f1869f9..52d1e60 100644 --- a/src/catalogue.lil +++ b/src/catalogue.lil @@ -50,3 +50,19 @@ newtable:readcsv[data "sissss"] # this column spec. syntax looks hilarious show[newtable] # HUGE SUCCESS! +# Not sure how to programmatically access/view the implicit ID column...or if that is wise? +# in lieu of using the implicit IDs when referencing a row, I think maybe I'll come up with +# my own ID and use that instead...a well known ID? + +on entry d t do + t:insert entry_type:(d.entry_type) title:(d.title) into t +end + +# where d is a table representing a new row to be added to t, an existing table + +row.entry_type:"note" +row.title:"in which we test adding a row with a function" +row:table row +test:entry[row catalogue] + +show[test] # NOTE, keep in mind that this generates a totally new table -- cgit 1.4.1-2-gfad0