embedded-database

How to use the Embedded PostgreSQL Server Java component as a separate service?

二次信任 提交于 2019-12-03 08:52:00
I am trying to create a comprehensive integration test suite for a RESTful (Services) Java-based application that runs in Tomcat(7.x) and depends on an Postgresql (9.x) instance. Further, I would like to be able to run this suite as a self-contained process, exclusively from maven 3.x, if possible, by using the maven failsafe plugin. That way, the tests can be run across the 3 major platforms (Mac OSX, Linux & Windows). From what I have learned, I believe that the key to making this happen is doing something like these steps (in this order): Start an "embedded" version of the postgresql DB

Which embedded DB written in Java for a simple key/value store? [closed]

空扰寡人 提交于 2019-12-03 05:46:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I recently asked a question about Neo4j, which I got working and which seems nice. It's embeddable and it's written in Java and there aren't (too) many dependencies. However it's a graph DB and I don't know if it's a good idea or not to use it as a simply key/value store. Basically I've got a big map, which in

If possible how can one embed PostgreSQL?

有些话、适合烂在心里 提交于 2019-12-03 04:17:40
If it's possible, I'm interested in being able to embed a PostgreSQL database, similar to sqllite . I've read that it's not possible . I'm no database expert though, so I want to hear from you. Essentially I want PostgreSQL without all the configuration and installation. If it's possible, tell me how. Unless you do a major rewrite of code, it is not possible to run Postgres "embedded". Either run it as a separate process or use something else. SQLite is an excellent choice. But there are others. MySQL has an embedded version. See it at http://mysql.com/oem/ . Also several java choices, and Mac

Highest Performance Database in Java

江枫思渺然 提交于 2019-12-03 03:18:13
问题 I need ideas to implement a (really) high performance in-memory Database/Storage Mechanism in Java. In the range of storing 20,000+ java objects, updated every 5 or so seconds. Some options I am open to: Pure JDBC/database combination JDO JPA/ORM/database combination An Object Database Other Storage Mechanisms What is my best option? What are your experiences? EDIT: I also need like to be able to Query these objects 回答1: You could try something like Prevayler (basically an in-memory cache

Is there a lightweight, embeddable, key/value database? (something like diet couchdb) [closed]

半世苍凉 提交于 2019-12-02 19:30:24
I was wondering if there was a lightweight, embeddable, key/value database out there. Something like a lightweight Couchdb (RESTful, key/value, etc) where you just send it the key and it responds with appropriate values. Thanks! Evan On the Related Projects page of the CouchDB wiki, under "Alternatives" they mention some similar projects: Feather DB * CouchDB clone in java. StrokeDB * A CouchDB-like database written in Ruby to make embedding into Ruby apps easier. mongoDB A high-performance, open source, schema-free document-oriented database. And of course Tokyo Cabinet which has already been

How to specify a variable expression list in a Pro*C query?

情到浓时终转凉″ 提交于 2019-12-02 08:38:25
I have a problem with a Pro*C query I'm trying to optimise. To explain, our application searches for rows in a huge database. These rows exist in several languages and the old code selected a row for each language in an array. Now as these queries are the most time consuming part of our app, I wanted to make only one query which writes directly in an array. The language codes are 2 letter ISO-639 codes (en for english, fr for french). Old way (this is only a simplified code to show the intention) struct ROW arr[MAX_LAN]; struct ROW_IND arr_ind[MAX_LAN]; uint_t LanIdx; for(LanIdx=0; LanIdx<MAX

How to create an embedded Neo4j database in c#

爱⌒轻易说出口 提交于 2019-12-02 00:12:31
问题 How do I create an embedded Neo4j database in c#? I want to perform queries on this embedded database for testing and then discard it. Currently i'm using neo4jclient for performing queries on the database running on my system(localhost) but want to do this on an embedded database. How do I go about this? This feature is present in Java in the following way: GraphDatabaseFactory graphDbFactory = new GraphDatabaseFactory(); GraphDatabaseService graphDb = graphDbFactory .newEmbeddedDatabase(

How to create an embedded Neo4j database in c#

眉间皱痕 提交于 2019-12-01 21:26:29
How do I create an embedded Neo4j database in c#? I want to perform queries on this embedded database for testing and then discard it. Currently i'm using neo4jclient for performing queries on the database running on my system(localhost) but want to do this on an embedded database. How do I go about this? This feature is present in Java in the following way: GraphDatabaseFactory graphDbFactory = new GraphDatabaseFactory(); GraphDatabaseService graphDb = graphDbFactory .newEmbeddedDatabase("data/dbName"); Looking for something along these lines in c#. It's not possible to do that. Neo4j is a

Is there embedded DB with PL/SQL support and Java API?

隐身守侯 提交于 2019-12-01 19:47:55
问题 I'm looking for embedded db with Java API for testing purposes. Also i need pl/sql support because we use oracle in production and migrations are written in pl/sql. I want to test my DAO objects and i need to create db in memory in process of unit test using migration scripts. Now we use HSQLDB but it does't support pl/sql. Can you recommend anything? 回答1: According to the wikipedia page about PL/SQL, the databases supporting PL/SQL are Oracle and DB2: Embedded DB2 Embedded Oracle If these

Embedded database for windows 8 app [closed]

ⅰ亾dé卋堺 提交于 2019-12-01 17:48:44
Is there any kind of embed-able database for windows 8 app development? I was looking for something like Sqlite or etc which integrate with visual studio 11. For JavaScript, you're probably best off just using HTML5 IndexedDB. Unfortunately, that is not directly available to other languages. There is a stock second option: Windows has an integrated embedded database in form of Extensible Storage Engine . It's a relatively simple ISAM DB (no SQL, you need to query indices directly). It is a whitelisted API for Metro applications. Using it from C++ is straightforward - just #include <esent.h>