embedded-database

Spring Boot. @DataJpaTest H2 embedded database create schema

和自甴很熟 提交于 2019-12-01 15:09:48
I have couple of entities in my data layer stored in particular schema. For example: @Entity @Table(name = "FOO", schema = "DUMMY") public class Foo {} I'm trying to setup H2 embedded database for integration testing of my data layer. I'm using @DataJpaTest annotation for my tests to get H2 embedded database configured automatically. However, the creation of tables fails because schema DUMMY is not created at DB initialization. Any ideas on how to create schema before creation of tables in test cases? I've tried to use @Sql(statements="CREATE SCHEMA IF NOT EXISTS DUMMY") but didn't succeed.

Multi-user application without need to install anything - embedded database that allows concurrent user writes? [closed]

泪湿孤枕 提交于 2019-12-01 14:52:24
I need to create an application, that is used by multiple users concurrently does not require any installation has a centralized data storage data must be stored inside company's network i don't have access to company's internal database servers or webservers These restrictions are not of my own - these are coming from my customer - this is a branch of a global company and there are some big IT policy restrictions on a global company level, that they can not impact on their level (something like that), but they still need a software. My intent was to find HOW to provide them with a working

Core Data “Upsert” from SQLite Database

你离开我真会死。 提交于 2019-12-01 01:11:02
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 remains active, so the user can do other things, but I'd like the import to happen as quickly as possible

Is it possible to use MongoDB as an embedded database?

假装没事ソ 提交于 2019-11-30 15:11:10
问题 As the title says I like to embedd the MongoDB server into my own C++ application. I haven't found this mode in the documentation. What I was looking for is something like SQLite or Firebird in the embedded mode. Is this also possible with MongoDB? (Without programming it myself). 回答1: There is no way to embed MongoDB right now - but on the wishlist of many people. 回答2: You should consider EJDB. EJDB is the C library based on modified version of Tokyo Cabinet. JSON representation of queries

Does SQLite support replication?

半世苍凉 提交于 2019-11-30 14:34:19
问题 In an application which embeds SQLite3 and uses an in-memory database, is it possible to replicate the database between two running instances of the application? I could do this by hand with a homebrew protocol duplicating all my DB accesses, but it seems like something that should be done inside the DB layer. 回答1: Brute force approach: Send it the ".dump" command to create a text representation of the data. Read that data in into the second database. Not sure you can use that. If you need a

Good embedded database solution (like SQLite) for .Net

瘦欲@ 提交于 2019-11-30 14:23:24
I am looking for file based storage solutions that I can use with a .Net project. THey need to have a sql-like interface for storing and retrieving data. They need to have relatively little overhead and must not require any additional components installed by the end user. I am hopping for a .dll that I can reference and use. Cool points awarded if it is closely tied to an ORM. My current favourite is SQLite, are there any better ones out there that I should know about? I have a (health?) bias against access because I feel it is overcomplicated for what I need, I am open to being convinced

Which embedded database has maximum SQL compliance, and concurrency support?

喜欢而已 提交于 2019-11-30 13:46:02
问题 My application at present uses Microsoft Access, but now may be hosted on Linux boxes. Additionally while being accessed from multiple computers, one of these may update the records (when its being read by other users). I also require that the embedded database should support complex SQL queries - like inner SQL, Joins, etc. I tried SQLite, but many of the existing queries fail, or need to be fixed (like in a simple query using inner join the brackets after FROM was not acceptable to SQLite,

Full text search with embedded DB in Delphi

孤街醉人 提交于 2019-11-30 12:56:54
问题 We are creating an open source Twitter client and are looking for an embedded DB with the smallest footprint possible that works with Delphi and that lends itself well to full text search (I know that doesn't go with small footprint very well). Ideally it should be free or open source too (demanding I know). I am leaning toward SQLite, but I have not used it before and don't know if it supports full text search, or how well it works with Delphi. I've used DBISAM before and it is embedded with

Saving in-memory H2 database to disk

删除回忆录丶 提交于 2019-11-30 11:25:30
How can I save/load full embedded h2 in-memory database to some file or directory in binary mode for faster loading. I want to use this for caching data so I don't have to run all the lines of create table/insert clauses every time. Thomas Mueller Instead of using an in-memory database, you could use a regular (persisted) database. You can still use in-memory tables even then (create memory table). The easiest way to persist a completely in-memory database to disk is to use the SCRIPT TO 'fileName' SQL statement. This will create an SQL script. The data is stored in text form, which doesn't

Does SQLite support replication?

强颜欢笑 提交于 2019-11-30 10:53:23
In an application which embeds SQLite3 and uses an in-memory database, is it possible to replicate the database between two running instances of the application? I could do this by hand with a homebrew protocol duplicating all my DB accesses, but it seems like something that should be done inside the DB layer. Brute force approach: Send it the ".dump" command to create a text representation of the data. Read that data in into the second database. Not sure you can use that. If you need a fine grained update (sending a copy of each upto the other copy), have a look at sqlite3_update_hook But how