2017 © Pedro Peláez
 

library kola-db

Simple Information Storage Service

image

sinri/kola-db

Simple Information Storage Service

  • Tuesday, June 19, 2018
  • by sinri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

KolaDB

GitHub Packagist, (*1)

Simple Information Storage Service., (*2)

https://sinri.github.io/KolaDB/index.html, (*3)

composer require sinri/kola-db, (*4)

Structure

A simple three level object storage structure and simple key-value properties within objects., (*5)

Cluster::DIR {
    Collection::DIR {
        Object::JSON_FILE {
            field1:value1,
            field2:value2
        }
    }
}

Action

Action grammar is used to communicate with the server to do certain action., (*6)

Action for Drop

{
  "action":"drop",
  "cluster":"CLUSTER_NAME",
  "collection":"COLLECTION_NAME",
  "object":"OBJECT_NAME"
}

Fields collection and object are optional., (*7)

Action for Edit

{
  "action":"edit",
  "cluster":"CLUSTER_NAME",
  "collection":"COLLECTION_NAME",
  "object":"OBJECT_NAME",
  "data":{
    "KEY":"VALUE"
  }
}

Action for Rename

{
  "action":"rename",
  "cluster":"CLUSTER_NAME",
  "collection":"COLLECTION_NAME",
  "object":"OBJECT_NAME",
  "change":"NEW_NAME"
}

Fields collection and object are optional., (*8)

Action for Query

{
  "action":"query",
  "cluster":"CLUSTER_NAME",
  "collection":"COLLECTION_NAME",
  "query":[
    {
      "method":"EQUAL",
      "field":"FIELD_NAME",
      "reference":"REFERENCE"
    },
    {
      "method":"AND",
      "queries":[
        {
          "method":"EQUAL",
          "field":"FIELD_NAME",
          "reference":"REFERENCE"
        },
        {
          "method":"EQUAL",
          "field":"FIELD_NAME",
          "reference":"REFERENCE"
        }
      ]
    }
  ]
}

Action for List

{
  "action":"list",
  "cluster":"CLUSTER_NAME",
  "collection":"COLLECTION_NAME"
}

Field collection is optional., (*9)

The Versions

19/06 2018

dev-master

9999999-dev

Simple Information Storage Service

  Sources   Download

GPL-3.0-or-later

The Requires

 

19/06 2018

0.1.1

0.1.1.0

Simple Information Storage Service

  Sources   Download

GPL-3.0-or-later

The Requires

 

18/06 2018

0.1.0

0.1.0.0

Simple Information Storage Service

  Sources   Download

GPL-3.0-or-later

The Requires