Re: In-Memory Database

2017-07-17 Thread jlp765
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(

Re: In-Memory Database

2017-07-16 Thread alfrednewman
Thank you all ! @Stevo, can you pls provide some examples of how to use it ?

Re: In-Memory Database

2017-07-15 Thread stevo
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.

Re: In-Memory Database

2017-07-14 Thread euant
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.

Re: In-Memory Database

2017-07-14 Thread Krux02
Well there are [tables](https://nim-lang.org/docs/tables.html#initTable,int) all in memory, just not very persistent

Re: In-Memory Database

2017-07-14 Thread cdome
Do nimble search There are definately bindings for redis and several others.

Re: In-Memory Database

2017-07-14 Thread sky_khan
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?

In-Memory Database

2017-07-14 Thread alfrednewman
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