support same DB but different table #6

Open
opened 2025-01-12 08:48:09 +00:00 by unusualevent · 0 comments
Owner

e.g. global open DB object, foobar, then per-table sub-objects,

linksdb = DB("foobar.sqlite")
shortcodes = linksdb.Table(name="shortcodes",columns=["shortcode","uuid7"])
longcodes = linksdb.Table(name="longcodes",columns=["longcode","uuid7"])
linkinfo = linksdb.Table(name="info",columns=["uuid7","author","link"])

linkinfo.New(uuid7,foobar,link)
etc etc

e.g. global open DB object, foobar, then per-table sub-objects, linksdb = DB("foobar.sqlite") shortcodes = linksdb.Table(name="shortcodes",columns=["shortcode","uuid7"]) longcodes = linksdb.Table(name="longcodes",columns=["longcode","uuid7"]) linkinfo = linksdb.Table(name="info",columns=["uuid7","author","link"]) linkinfo.New(uuid7,foobar,link) etc etc
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: use/basis#6
No description provided.