Thanks for your kind endorsement, jacdelad.

Or at the very least a sticky, perhaps.

+1
Thanks for your kind endorsement, jacdelad.
Hi Kiffi. In all honesty, I was simply jesting.
Very kind words, both of you. I'm truly obliged.
Hi jacdelad. An in-memory database works exactly like a normal file-based one. The only difference is, like you said, it's temporary. All the processed data will be lost when the program terminates unless it's saved to file.jacdelad wrote: Tue Aug 13, 2024 12:28 pm...how to use a database which is not written to a file, but into memory (for temporary usage).
Code: Select all
OpenDatabase(#sqLite, ":memory:", "", "")
Hi Miki. Trust you are well, dear friend.
Hi TI-994A,TI-994A wrote: Thu Aug 15, 2024 11:12 amHi jacdelad. An in-memory database works exactly like a normal file-based one. The only difference is, like you said, it's temporary. All the processed data will be lost when the program terminates unless it's saved to file.jacdelad wrote: Tue Aug 13, 2024 12:28 pm...how to use a database which is not written to a file, but into memory (for temporary usage).
To use an in-memory database, simply replace the database file name with the :memory: directive - that's all! Everything else works exactly the same way.
Code: Select all
OpenDatabase(#sqLite, ":memory:", "", "")
Here's a simple, working example which I had posted a few years ago, demonstrating an in-memory database in action:
> In-Memory SQLite Example
I hope it's helpful.![]()
That makes more sense. Great suggestion! Thank you, jacdelad.jacdelad wrote: Thu Aug 15, 2024 3:09 pm... I just thought this would be a great addendum to your tutorial, like a last chapter with some tipps and tricks.