embedded-database

How to make embedded mongodb keep the data on application shutdown?

孤人 提交于 2021-02-07 09:33:43
问题 I don't want to install the full mongodb, so I created a simple spring-boot application with the following pom: <!-- This dependency is to have an embedded mongodb --> <dependency> <groupId>de.flapdoodle.embed</groupId> <artifactId>de.flapdoodle.embed.mongo</artifactId> <version>1.50.5</version> </dependency> <!-- while this provides a spring factory bean for the embedded mongodb --> <dependency> <groupId>cz.jirutka.spring</groupId> <artifactId>embedmongo-spring</artifactId> <version>RELEASE<

java embedded library on-disk key-value database [closed]

◇◆丶佛笑我妖孽 提交于 2021-02-06 08:23:42
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Improve this question What I think I'm looking for is a no-SQL, library-embedded, on disk (ie not in-memory) database, thats accessible from java (and preferably runs inside my instance of the JVM). That's not really much of a database, and I'm tempted to roll-my-own. Basically I'm

is there a way to prevent duplication of entries in neDB collection's array?

杀马特。学长 韩版系。学妹 提交于 2021-01-28 00:07:34
问题 var addNewUser = function (id, chatId) { db.update({ _id: id }, { $push: { users: chatId } }, {}, function (err, numAffected) { // code after the record is updated }); } in this code I want to push new Id to the array if it is not in it. I've read the docs of neDB but it seems there is no way to do that I'm beginner so I think there is a way to do that but I cant see it. 回答1: To push new chatId to users array only if it does not exist, you can use $addToSet . According to the nedb document:

Why does my flapdoodle Embedded MongoDB test fail to run? (creating 'embeddedMongoServer' could not start process EOF)

陌路散爱 提交于 2020-05-26 12:10:34
问题 I'm having trouble getting my brand new project to build. I used https://start.spring.io/ to generate a fresh new Spring 2.0 MongoDB Maven project, and I want to have an embedded MongoDB database for my integration tests. The spring initializer added a dependency for de.flapdoodle.embed.mongo to that end. But every time I try to run a "mvn clean package", I get the following error during my test: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name

What executes SQL commands submitted by an application program, if no DBMS is running?

橙三吉。 提交于 2020-01-15 10:33:45
问题 When you are writing a program which uses a database driver, from Why is programming interface to database called driver? There are databases that allow you to embed them within your process (like sqlite) , but if you're working with a database that has its own process[es] (like postgresql), then yes, it(they) must be up and running in order to work against that database. So some databases "allow you to embed them within your process (like sqlite)". If there is no DMBS running, to what does

What's a good “mobile” .NET database that supports LINQ?

笑着哭i 提交于 2020-01-03 10:05:09
问题 I'm in the process of refactoring an application and I've decided to use a mobile/embedded database. I've been reading about SQL Server Compact Edition, but I was wondering if any of you knew of any other databases that could be used and don't have huge download sizes, as my current application is about ~2MB (installer). SQLite would be nice, but AFAIK the GSoC implementation of LINQ-to-SQLite is rather buggy at the moment. Thanks! 回答1: VistaDB and (as you mentioned) Sql Server Compact

What will be the best embedded database to be used with a small Java desktop application? [closed]

我与影子孤独终老i 提交于 2020-01-02 20:18:34
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . My requirements are Embedded Database Easy Integration with Netbeans IDE Should be able to develop using JPA Free of cost Size of the

What will be the best embedded database to be used with a small Java desktop application? [closed]

别来无恙 提交于 2020-01-02 20:18:19
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . My requirements are Embedded Database Easy Integration with Netbeans IDE Should be able to develop using JPA Free of cost Size of the

SQlite/Firebird: Does any of them support multiple concurrent write access?

老子叫甜甜 提交于 2020-01-02 06:57:31
问题 Question: I currently store ASP.net application data in XML files. Now the problem is I have asynchronous operations, which means I ran into the problem of simultanous write access on a XML file... Now, I'm considering moving to an embedded database to solve the issue. I'm currently considering SQlite and embeddable Firebird. I'm not sure however if SQlite or Firebird can handle multiple concurrent write access. And I certainly don't want the same problem again. Anybody knows ? SQlite

Core Data “Upsert” from SQLite Database

久未见 提交于 2019-12-30 07:42:29
问题 I am currently writing an App that needs the ability to modify and persist various pieces of data. I've decided to use Core Data for this purpose. When the user opens the Application for the first time I need to import a large amount of data from a sqlite database, this data consists of the many-to-many relationships. I'd like to find out the best way to insert all of this data into my code data store. Right now I am using an NSOperation to do the import while that rest of the application