News for hackers. Stuff that matters.
Re:SQLite B-Tree Module by jstsch on Sunday April 03, 2022 @06:06AM (#30895777)
A bit off-topic, but SQLite continues to impress me. This year, we've added a simple form builder to our product which allows creators to quickly gather feedback/input from their audiences. Basically each form has it's own small sqlite database as a datastore and a json file for the form definition (field styling/constraints, etc). It's 'low tech', but performs great. Not having an additional service running also means having one less thing to maintain.
Re:SQLite B-Tree Module by ruslan_talpa on Sunday April 03, 2022 @06:31AM (#30895896)
Been feeling lately the fatigue of managing 3-5 different services for a every single trivial project. This pushed me to explore adding SQLite support in my product [1], i think I'll wrap a Litestream [2] process in the same container and call it "Backed in a Box" :)

[1] https://github.com/subzerocloud/blue-steel

[2] https://github.com/benbjohnson/litestream

edit: typo

Re:SQLite B-Tree Module by bob1029 on Sunday April 03, 2022 @01:38PM (#30898776)
SQLite is the cornerstone behind our "One zip file = one entire product instance" devops experience.
Re:SQLite B-Tree Module by nhatbui on Sunday April 03, 2022 @02:34PM (#30899405)
I would be interested in hearing more about how you deploy. I’m guessing the zip has the application(s) and SQLite is for configuration?
Re:SQLite B-Tree Module by ergocoder on Sunday April 03, 2022 @03:16PM (#30899764)
I used Sqlite and wasn't impressed.

Their SQL dialect is lacking. Parsing a date or regex extraction are extremely difficult. You have to resort to WITH RECURSIVE.

Re:SQLite B-Tree Module by quietbritishjim on Monday April 04, 2022 @01:34AM (#30903585)
You can just supply your own function to parse the date.

In most database systems that would be a disaster, because the database would have a send a request over the network back to your program for each argument it needs to process. For SQLite, it's no big deal, because it's executing in the same address space as your program so it's a simple function call.

I'll admit that it does make it harder to port your program to another language, so it's more of a workaround than an ideal solution.

Re:SQLite B-Tree Module by ergocoder on Tuesday April 05, 2022 @02:21AM (#30915852)
How would do that easily?

Did you mean writing a c extension of Sqlite?