Got any examples of meta data you want to store? What's wrong with having another table?
I ended up with date_, set_, dict_ prefixes.
date_
set_
dict_
dict_media TEXT NOT NULL DEFAULT '{}', set_cardId TEXT NOT NULL DEFAULT '{}', -- I wonder if this can be indexed date_nextReview DATETIME NOT NULL,
and, how to use
JOIN deck d ON json_extract(d.set_cardId, '$.'||c.uid) = 1
for (const k of Object.keys(r)) { const [k1, k2] = k.split('_') if (k2 && r[k]) { if (k1 === 'dict') { r[k2] = JSON.parse(r[k]) delete r[k] } else if (k1 === 'set') { r[k2] = Object.keys(JSON.parse(r[k])) delete r[k] } else if (k1 === 'date') { r[k2] = new Date(r[k]) delete r[k] } } }
Nothing wrong, but I want to know the standard of notifying that,
Really depends on the data. I've not had a use case yet for JSON type
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Got any examples of meta data you want to store? What's wrong with having another table?
I ended up with
date_
,set_
,dict_
prefixes.and, how to use
Nothing wrong, but I want to know the standard of notifying that,
Really depends on the data. I've not had a use case yet for JSON type