diff options
author | elioat <elioat@tilde.institute> | 2022-12-09 14:32:06 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2022-12-09 14:32:06 -0500 |
commit | 6bf9fc078a0e605a432f1c880fe0fbb16211a0b7 (patch) | |
tree | 587b9dcdfef304ea2e6e6f43770d2bc7334fd388 | |
parent | 197803edc74e94c97e30b5d9ce962eb5e6a1f3fb (diff) | |
download | december-2022-6bf9fc078a0e605a432f1c880fe0fbb16211a0b7.tar.gz |
*
-rw-r--r-- | src/catalogue.lil | 16 |
1 files changed, 16 insertions, 0 deletions
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 |