Just a thought/suggestion for v4, why not embed an sqlite interface for JS, and use that for all the data files by default?
This would make it much easier to have other utilities interface with the same data, only needing to use an sqlite3 client library.
I know it may not
be as effecient as SMB, and other formats, but it would allow for much broader access with some room to grow.
Not suggesting throwing all data into a single db/file, but that db file(s) be sqlite3 based... possibly with most system/account data in one db, a per-user db, and a per-message-group db, and a single db for file areas. This could consolidate some data sources.
Just a thought/suggestion for v4, why not embed an sqlite interface for
JS, and use that for all the data files by default?
I prefer plain text where possible/practical.
This would make it much easier to have other utilities interface
with the same data, only needing to use an sqlite3 client library.
I believe plain-text makes it even *easier*.
I know it may not be as effecient as SMB, and other formats, but
it would allow for much broader access with some room to grow.
It's not all about efficiency. I have a list of things for v4 and
chaning some of the data storage formats is in the cards, for sure,
but I was not planning on moving to a 3rd party library for the
data storage.
There are definitely debts to be paid for the use of 3rd party
libraries, even if they are supposedly "free of cost". I'm not
saying it won't happen, but it's not always the best choice for
every project.
Not suggesting throwing all data into a single db/file, but that
db file(s) be sqlite3 based... possibly with most system/account
data in one db, a per-user db, and a per-message-group db, and
a single db for file areas. This could consolidate some data
sources.
I suppose. I certainly will take a second look at sqlite and think
about it for some use cases.
I was just thinking that going to a fairly standard and well supported database format would be a practical, and by exposing it in the JS model, would allow for extension/access of all data even if not expressly exposed in the api directly.
model,I was just thinking that going to a fairly standard and well supported database format would be a practical, and by exposing it in the JS
while.would allow for extension/access of all data even if not expressly exposed in the api directly.
Adding JS support for sqlite has been on my perpetual TODO list for a
If I shake a few hours loose, I may add that at sompe point.
Just a thought/suggestion for v4, why not embed an sqlite interface for JS, and
use that for all the data files by default?
Sysop: | MCMLXXIX |
---|---|
Location: | Prospect, CT |
Users: | 325 |
Nodes: | 10 (0 / 10) |
Uptime: | 08:52:09 |
Calls: | 510 |
Messages: | 220571 |