Skip to content

Nested and related data? #18

Answered by jamesgpearce
ianwalter asked this question in Q&A
Discussion options

You must be logged in to vote

@ianwalter sorry for the delay! Somehow I wasn't getting notifications for GitHub discussions.

Yes, this is true - relationships are one-one or many-one, and so currently for a tagging system you would need to do something pretty grungy like a JSON-encoded array or imperatively work your way through a many-many join table. Not ideal.

I'm making decent progress on a more expressive query engine (in a personal fork at https://github.com/jamesgpearce/tinybase/tree/v1.4.0) that allows for responsive views that straddle multiple tables. It's not quite ready to be used - give me a week? - and so far it supports star-like joins, grouping etc. eg:

queries.setQueryDefinition('query1', 'table1', ({s…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@ianwalter
Comment options

@jamesgpearce
Comment options

Answer selected by ianwalter
Comment options

You must be logged in to vote
2 replies
@jamesgpearce
Comment options

@dave-irvine
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants