Skip to content

✨ index access - #106

Open
kkharji wants to merge 6 commits into
masterfrom
new/index_access
Open

✨ index access#106
kkharji wants to merge 6 commits into
masterfrom
new/index_access

Conversation

@kkharji

@kkharjikkharji commented Sep 1, 2021

Copy link
Copy Markdown
Owner

Purpose

Make it possible to access sqlite.tbl operations using index access:

for example:

localkvtable=tbl("kvtable", {
key= { "text", primary=true, required=true, unique=true },
value="integer",
}, db)
--- access/insert-to/remove using primary keykvtable.a= { value=1 }
kvtable.a=nil--- access/update a row field value kvtable.a.value=2kvtable.a.value=nil--- sets a key field value without creating the key firstkvtable["some key with spaces :D"].value=4

closes#98

@kkharji
kkharjiforce-pushed the new/index_access branch 2 times, most recently from 7a8bbb5 to ce4949fCompareSeptember 2, 2021 04:22
@kkharji

Copy link
Copy Markdown
OwnerAuthor

... to be continued sometime next week. reviews are welcomed.

@kkharji
kkharjiforce-pushed the master branch 6 times, most recently from 216544e to 43f5e0cCompareSeptember 9, 2021 07:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(table) query/remove/update using index access

1 participant

@kkharji