realn2s, to random

My impression is, that #SQLCipher is not compatible with the #SQLite Encryption Extension (or the other way around 😞 )

At least I didn't find a way to specify the key in such a way that #SQLite3 works with the database wich works using SQLCipher.

Can someone confirm or point me to some documentation regarding this?

paulox, (edited ) to django
@paulox@fosstodon.org avatar

Django 5.0 has been released 🎉

After months of work, everyone can use this great new version 🙌

My favorite features are:
• 🤖 generated fields
• ✅ database default values
• 🔑 prefetch related for generic foreign keys

Which are your favorite features?
https://www.djangoproject.com/weblog/2023/dec/04/django-50-released/

tomayac, to webassembly
@tomayac@toot.cafe avatar

Spoke at the Santiago de Compostela 🎒🐚 yesterday (in broken-ish Spanish, but the slides are in English) on going "From Web SQL to implemented in and backed by the Origin Private File System" (OPFS): https://goo.gle/devfest-santiago.

Even if you don't care about how we got there (that is, why Web SQL was deprecated), the SQLite and the OPFS parts are super exciting technologies well worth your attention—and they work in all modern browsers!

phundrak, to rust
@phundrak@emacs.ch avatar

On another note, I found out yesterday does not support 64-bit integers. This is unfortunate, as I’m working on a Discord bot that needs to store identifiers that are unsigned 64-bit integers (u64 in ).

I didn’t want to spin up a whole database just to store a single table holding two IDs on each row. So, I opted in favour of storing them as strings. This should not be too much of an issue, as the bot is far from being resource-intensive.

But I’m wondering if anyone knows of an alternative to SQLite that’s still light and compatible with Rust’s ?

paulox, to django
@paulox@fosstodon.org avatar

After Django 5.0rc1 release, I updated my generated fields article ✨

I also tried to improve the titles as suggested by @adamchainz whom I thank 🎨

All feedback is welcome 🤗

https://www.paulox.net/2023/11/07/database-generated-columns-part-1-django-and-sqlite/

doomy, to rust
@doomy@mastodon.social avatar

hey people is there a better solution than / atm? im making a app and it just keeps getting in the way. i tried sled and a few other similar solutions but they all seem pretty far off from being ergonomic for a general purpose db. i just wanna like, store my rust data in something and retrieve it with some basic relationships. not have to worry about endianness.

gnulinux, to linux German
@gnulinux@social.anoxinon.de avatar

SQL auf CSV im Terminal

SQL-Abfragen im Terminal mit SQLite3.

https://gnulinux.ch/sql-auf-csv-im-terminal

paulox, (edited ) to django
@paulox@fosstodon.org avatar

I published an introduction to database generated columns, using SQLite and the new GeneratedField added in Django 5.0 🤖

I'd be very happy to have your feedback on my article 🤗

https://www.paulox.net/2023/11/07/database-generated-columns-part-1-django-and-sqlite/

teruhirojp, to random Japanese
boilingsteam, to linux
@boilingsteam@mastodon.cloud avatar
mackuba, to bluesky
@mackuba@martianbase.net avatar

I don't always write extended commit descriptions, but when I do…

VinceAggrippino, to random
@VinceAggrippino@techhub.social avatar

Foreign Key Mismatch

If you have a composite primary key (uses more than one field) on one table and a second table has a foreign key which references the first, the foreign key must also be composite rather than individual foreign keys for the individual fields or you'll get the error message above even if you've already checked and double-checked that the required records are present.

audiodude, to foss

It's amazing how writing down your thoughts about something, even if it's not to explicitly remember those things, can help give you clarity.

I just updated https://travisbriggs.com/garden/bandcamp/ with my progress on my FOSS Bandcamp release page alternative. In the process of explaining it, I realized that I could use a SQLite database without problem.

blacklight, to random

This is such a simple and useful SQLite hack.

Get the best out of and by having your database versioned in a human-readable format:

# Create a local git repo and a db file  
$ git init  
$ sqlite3 ./test.db  
sqlite> create table test(id int primary key, value text);  
$ git add test.db  
# Set the diff format for *.db files  
$ git config diff.sqlite3.binary true  
$ git config diff.sqlite3.textconv "echo .dump | sqlite3"  
$ echo '*.db diff=sqlite3' >> .gitattributes  
# Do some stuff with the db  
$ sqlite3 ./test.db  
sqlite> insert into test values(1, 'a');  
sqlite> insert into test values(2, 'b');  
sqlite> insert into test values(3, 'c');  
sqlite> update test set text = 'aaa' where id = 1;  
sqlite> delete from test where id = 3;  
# Check the diff  
$ git diff  
diff --git a/test.db b/test.db  
index 9d6e6db..c9a7a08 100644  
--- a/test.db  
+++ b/test.db  
@@ -1,4 +1,6 @@  
 ...  
 CREATE TABLE test(id int primary key, text text);  
+INSERT INTO test VALUES(1,'aaa');  
+INSERT INTO test VALUES(2,'b');  
 COMMIT;  

https://garrit.xyz/posts/2023-11-01-tracking-sqlite-database-changes-in-git

theskumar, to random

Excellent article on why you should probably be using SQLite

https://www.epicweb.dev/why-you-should-probably-be-using-sqlite

tomayac, to webassembly
@tomayac@toot.cafe avatar

I’ll be in Milan, Italy 🇮🇹 for tomorrow and (half of) the day after to talk about , (), and the Origin Private File System (). My talk is tomorrow, 16:30 🕟: https://conferences.codemotion.com/milan2023-live/agenda/. If you’re at the conference, be sure to say “ciao” 🤌!

rademaker, to random
@rademaker@mastodon.social avatar

Do we all agree that GRDB https://swiftpackageindex.com/groue/GRDB.swift is the “best” SQLite wrapper to use for iOS development?

helge, (edited )
@helge@mastodon.social avatar

@mackuba @rademaker There is no such thing as a "best" one, it completely depends on the task at hand. At the low abstraction end you can use just the API, it is really easy to deal with! At the very high abstraction end you have / .
But yes, is a really good choice somewhere in the middle. Very well done and maintained.

paulox, to opensource
@paulox@fosstodon.org avatar

I didn't know about this SQLite fork. ⎇

I wonder if it can be used with the same SQLite backend for the Django ORM. 🤔

You can read more about our goals and motivation in the announcement article 👇
https://itnext.io/sqlite-qemu-all-over-again-aedad19c9a1c

#sqlite #libsql #fork #opensource #python #django #orm

lispi314, to email

Regarding , screw the old -centric non approach btw.

Both and suck.

Program crashed while you were modifying a mail? Who knows what the on-disk file looks like now. You had it git-versioned? Good. If all goes well and git or the computer itself doesn't crash while updating things, that might be enough.

Even key-value like do it better, and they did so before even existed.

So why can't I have tools using DBs?

supergarv, to PostgreSQL German
@supergarv@phpc.social avatar

Ich würde gern für SQL-Kompatibilitätstests eine Query auf diversen , , , und evtl Instanzen laufen lassen.

Also bestenfalls(?) pro DB-Typ&Version ein Docker-Image auf eigenem Port. Gern direkt mit initialen DBs&Tabellen aus nem zentralen SQL-Dump. Dann kann ich ein PHP Script damit connecten und iterieren.

Sowas muss doch schonmal jemand gemacht haben und ein docker-compose dafür besitzen, zB für QA/Testing? Finde aber nix.

@isotopp @tim ?

wraptile, to python
@wraptile@fosstodon.org avatar

being used as a message queue for

https://github.com/litements/litequeue

Ideal for small projects that need a persistent, easy to package msg queue. Great for

iamkale, to python

TIL Python 3.12 introduces a new command line interface for simple querying of SQLite databases 🎉 🐍

python -m sqlite3 [-h] [-v] [filename] [sql]<br></br>

https://docs.python.org/3.12/library/sqlite3.html#sqlite3-cli

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

hitting ctrl+c (sending SIGINT) at random times is all you need to find an infinite supply of software bugs

lispi314,

@fasterthanlime Ah yes, using the instead of or something else was a mistake.

skwee357, to random

Anyone got experience with using SQLite in production? Please share!

smallcircles, to random
@smallcircles@social.coop avatar

🤔 What if #OpenDocument used #SQLite?

Benefits would include:

  • Smaller documents
  • Faster File/Save times
  • Faster startup times
  • Less memory used
  • Document versioning
  • A better user experience

A nice thought experiment by the SQLite folks..

https://www.sqlite.org/affcase1.html

https://news.ycombinator.com/item?id=37553574

teotimepacreau,
@teotimepacreau@mastodon.design avatar

@sebsauvage sans lien direct mais petit billet de blog sur les avantages d'utiliser en production pour le web : https://www.teotimepacreau.fr/blog/sqlite/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • InstantRegret
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • tacticalgear
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • lostlight
  • All magazines