All Projects → BedquiltDB → Bedquilt Core

BedquiltDB / Bedquilt Core

Licence: mit
A JSON document store on PostgreSQL

Projects that are alternatives of or similar to Bedquilt Core

Nano Sql
Universal database layer for the client, server & mobile devices. It's like Lego for databases.
Stars: ✭ 717 (+180.08%)
Mutual labels:  sql, database, nosql
Db
Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
Stars: ✭ 2,832 (+1006.25%)
Mutual labels:  sql, database, nosql
Griddb
GridDB is a next-generation open source database that makes time series IoT and big data fast,and easy.
Stars: ✭ 1,587 (+519.92%)
Mutual labels:  sql, database, nosql
Orientdb
OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text and Geospatial models in one Multi-Model product. OrientDB can run distributed (Multi-Master), supports SQL, ACID Transactions, Full-Text indexing and Reactive Queries. OrientDB Community Edition is Open Source using a liberal Apache 2 license.
Stars: ✭ 4,394 (+1616.41%)
Mutual labels:  sql, database, nosql
Cosyan
Transactional SQL based RDBMS with sophisticated multi table constraint logic.
Stars: ✭ 45 (-82.42%)
Mutual labels:  sql, database, nosql
Fluent
Vapor ORM (queries, models, and relations) for NoSQL and SQL databases
Stars: ✭ 1,071 (+318.36%)
Mutual labels:  sql, database, nosql
Db Tutorial
💾 db-tutorial 是一个数据库教程。
Stars: ✭ 128 (-50%)
Mutual labels:  sql, database, nosql
Omniscidb
OmniSciDB (formerly MapD Core)
Stars: ✭ 2,601 (+916.02%)
Mutual labels:  sql, database
Materialize
Materialize lets you ask questions of your live data, which it answers and then maintains for you as your data continue to change. The moment you need a refreshed answer, you can get it in milliseconds. Materialize is designed to help you interactively explore your streaming data, perform data warehousing analytics against live relational data, or just increase the freshness and reduce the load of your dashboard and monitoring tasks.
Stars: ✭ 3,341 (+1205.08%)
Mutual labels:  sql, database
Scany
Library for scanning data from a database into Go structs and more
Stars: ✭ 228 (-10.94%)
Mutual labels:  sql, database
Sparrow
A simple database toolkit for PHP
Stars: ✭ 236 (-7.81%)
Mutual labels:  sql, database
Fluentmigrator
Fluent migrations framework for .NET
Stars: ✭ 2,636 (+929.69%)
Mutual labels:  sql, database
Grdbcombine
GRDB ❤️ Combine
Stars: ✭ 220 (-14.06%)
Mutual labels:  sql, database
Massive Js
A data mapper for Node.js and PostgreSQL.
Stars: ✭ 2,521 (+884.77%)
Mutual labels:  sql, database
Granite
ORM Model with Adapters for mysql, pg, sqlite in the Crystal Language.
Stars: ✭ 238 (-7.03%)
Mutual labels:  sql, database
Liquibase
Main Liquibase Source
Stars: ✭ 2,910 (+1036.72%)
Mutual labels:  sql, database
Clear
Advanced ORM between postgreSQL and Crystal
Stars: ✭ 220 (-14.06%)
Mutual labels:  sql, database
React Agent
Client and server-side state management library
Stars: ✭ 235 (-8.2%)
Mutual labels:  sql, database
Data
ATK Data - Data Access Framework for high-latency databases (Cloud SQL/NoSQL).
Stars: ✭ 243 (-5.08%)
Mutual labels:  sql, nosql
Sqlfiddle3
New version based on vert.x and docker
Stars: ✭ 242 (-5.47%)
Mutual labels:  sql, database

Bedquilt

Join the chat at https://gitter.im/BedquiltDB/bedquilt-core

Bedquilt

BedquiltDB is a A JSON document-store built on PostgreSQL.

CircleCI

Releases

Release packages for BedquiltDB can be found on pgxn.

Goals

  • Borrow some of the good ideas and positive attributes of json object-stores and bring them to PostgreSQL
  • Harness the new jsonb functionality of PostgreSQL and wrap it in a nice programmatic API that is consistent across languages
  • Make use of SQL strong-points, such as schema constraints and table joins
  • Build a tool which is actually useful for developers

Documentation

Project documnetation hosted at Read The Docs.

To build documentation, install the mkdocs utility and run:

$ make docs

Examples

This extension provides the core functionality of BedquiltDB, and can be used from ordinary SQL queries, though it is recommended to use one of the driver libraries for you favourite programming language instead.

-- Insert two documents into the 'people' collection.
select bq_insert(
    'people',
    '{"_id": "[email protected]",
      "name": "Sarah",
      "likes": ["icecream", "code"]}'
);
select bq_insert(
    'people',
    '{"name": "Mike",
      "likes": ["code", "rabbits"]}'
);


-- Find a single document,
-- where the "name" field is the string value "Mike".
select bq_find_one(
    'people',
    '{"name":  "Mike"}'
);


-- Find all documents in the 'people' collection
select bq_find('people', '{}');


-- Find all people who like icecream
select bq_find('people', '{"likes": ["icecream"]}');


-- Find a single document by its "_id" field.
-- This query hits the primary key index on the _id field
select bq_find_one_by_id('people', '[email protected]');


-- Create an empty collection
select bq_create_collection('things');


-- Get a list of existing collections
select bq_list_collections();

Drivers

BedquiltDB is intended to be used with client libraries (aka Drivers), such as:

Installation instructions and documentation for each driver can be found on the respective driver repositories.

BedquiltDB can also be used directly through SQL queries: select bq_find('users', '{...}').

Prerequisites

  • PostgreSQL >= 9.5
  • PL/pgSQL
  • PL/Python3u
  • The pgcrypto extension

Development prerequisites

  • python >=2.7
  • psycopg2 python library (pip install pyscopg2)
  • a local installation of PostgreSQL, with pgxs
  • mkdocs, for building documentation
  • gnu make

Installation

From a pre-built package (recommended)

To install BedquiltDB on your PostgreSQL server, follow the instructions here:

http://bedquiltdb.readthedocs.org/en/latest/guide/installation/

From source

If you would prefer to install from source, first clone this repositroy:

$ git clone https://github.com/BedquiltDB/bedquilt-core.git
$ cd bedquilt-core

Run the following to build the extension and install it to the local database:

$ sudo make install

Run this to build to a zip file:

$ make dist

Then, on the postgres server:

CREATE EXTENSION IF NOT EXISTS pgcrypto;
CREATE EXTENSION IF NOT EXISTS plpython3u;
CREATE EXTENSION bedquilt;

Test out the bedquilt extension by running a simple find operation:

select bq_find('stuff', '{}');

Tests

Run make test to run the test suite. Requires a bedquilt_test database that the current user owns.

Contributing

Contributions are welcome, to any of the BedquiltDB projects. Just open an issue, or get in touch directly.

License

Bedquilt is released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].