For SQLite, have a look at the doco
[db_sqlite](https://nim-lang.org/docs/db_sqlite.html)
import db_sqlite, math
let theDb = open(":memory:",nil,nil,nil)
#
# now do create tables, insert data, select data,
# using SQL (sqlite flavoured)
#
theDb.exec(
Thank you all !
@Stevo, can you pls provide some examples of how to use it ?
I've recently been working with LMDB. While it is not in memory, it is light
weight and uses smart btree based memory mapping. Let me know if you want some
examples of how to use it or would like to find out more.
There are semi-official Redis bindings here:
[https://github.com/nim-lang/redis](https://github.com/nim-lang/redis)
Redis would probably be my recommended approach, as it can do replication and
all sorts of fancy things. The semi-official just recently got async support
too.
Well there are [tables](https://nim-lang.org/docs/tables.html#initTable,int)
all in memory, just not very persistent
Do
nimble search
There are definately bindings for redis and several others.
I dont know any of them on that list but are you aware of that you can use
sqlite as in-memory database by just using ":memory:" as database name?
Hello, Is there any In-Memory Database project around for Nim ? Or any wrapper
available for any of these
[https://githubreviews.com/explore/databases/popular-in-memory](https://githubreviews.com/explore/databases/popular-in-memory)
? TIA