SQLite Plus: Missing SQLite functions
github.com
github.com
Similar for regex: https://sqlite.org/src/file?name=ext/misc/regexp.c&ci=trunk
And percentiles: https://sqlite.org/src/file?name=ext/misc/percentile.c&ci=tr...
https://github.com/nalgeon/sqlite-plus/blob/main/docs/vsv.md
Whether the team benefits from tarting up the SQL beyond SELECT * is worth examining, however.
Sure, one can look over the actual code to make sense if the functions do what they should, but one of main SQLite's features is its in-depth testing.
It'd be nice to have the same testing approach extended to this set of utilities.
It's OLAP, not OLTP like SQLite.
My very crude shorthand is that olap == optimized for time series (usually column oriented) and oltp == optimized for transactional processing (row oriented).
In effect, SQLite already is both an OLTP and OLAP database.
This allows for stored procedures in a T-SQL variant that gets compiled to C. It is on my list to check out but I don't have any experience with it yet.
Learning how to use the SQLite extension API was a little mind-expanding but it worked like a charm.
But most third-party extensions, like this one, aren't. (This extension is MIT licensed.) If you think SQLite being in the public domain is a positive, then that's a positive these extensions lack.
(Or a public domain near-equivalent license like Unlicense or CC0, which contains an ultra-permissive copyright license for those jurisdictions which don't allow one to voluntarily put stuff in the public domain.)
What sort of problems do you envisage having with an MIT license that public domain would fix?
https://sqlite.org/copyright.html
Including having their closed contributors sign affidavits and stored in a physical location. This may be what OP is referring to.
Compare that with an MIT license with no "hardening" like affidavits so that it's easy to mutate to another license type, I can see their point.
Interesting stuff since I never knew this "public domain" approach before!
* The author disclaims copyright to this source code. In place of a legal notice, here is a blessing:
* May you do good and not evil.
* May you find forgiveness for yourself and forgive others.
* May you share freely, never taking more than you give.
edit: thanks for the correction about the jquery license.
It gets even worse when you consider that there are MIT-like licenses, which can have fundamentally the same terms as MIT, but with slightly different wording. Then you can have to ship multiple variant license texts too.
Public domain (and public domain-equivalent licenses) you don't have to worry about this, because there is no requirement to include copyright notices or copy of license text.
I'm not saying you shouldn't credit people whose contributions you use, but you can make that a non-legal expectation of courtesy rather than a make-work legal requirement.
#VivaLaPublicDomain
You may sense why the need of effort by SQLite to confirm its public domain status and left other not compiled in.
Another issue is the free vs open source debate. Does it have to be pure. Another time but SQLite seems allow both, just not in its core.
My (somewhat educated) understanding is that public domain is a rejection of copyright, and is therefore the lack of a license. Rather that saying "I'm the owner, and you can do whatever you want", it instead says "I am not the owner", and indeed, even further "No one is the owner". Naturally, this can only be said by the person who would have held the copyright, so paperwork is still necessary to show this.
Stanford[0] has a page about this that's pretty interesting (among other things, it mentions public domain works can be copyrighted again if they are gathered into collections, which I find fascinating). The intro text on public domain says this:
> The term “public domain” refers to creative materials that are not protected by intellectual property laws such as copyright, trademark, or patent laws. The public owns these works, not an individual author or artist. Anyone can use a public domain work without obtaining permission, but no one can ever own it.
In the case of sqlite, I think it falls under "dedicated works"[1], which is one of the four ways they mention that leads to a work falling into the public domain.
[0]: https://fairuse.stanford.edu/overview/public-domain/welcome/
[1]: https://fairuse.stanford.edu/overview/public-domain/welcome/...
If you read the CC0 – https://creativecommons.org/publicdomain/zero/1.0/legalcode – it is structured into two parts, a waiver (in section 2) and a fallback license (in section 3). The license is certainly a license, but is the waiver a license? Especially since the license, by its terms, only applies if the waiver does not – if the waiver is judged valid in some legal jurisdiction, the license does not apply.
Some of the language in section 2 could even be read as settling a trust, with the general public as the beneficiary, the copyright as the trust property, and the copyright owner as both settlor and trustee.
A similar project python-based
What do you want to gain by using JSON files specifically? Unless you want a document database but then SQLite is the wrong kind of tool anyways.
That should be hackable with something like json2csv[1], but I imagine the intent is a desire for something supported, rather than awfully hacked up.
https://github.com/nalgeon/sqlite-plus/blob/main/docs/vsv.md
Kinda disappointed this doesn’t fix that.