An open API service indexing awesome lists of open source software.

https://github.com/darkleaf/pg-nosql


https://github.com/darkleaf/pg-nosql

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

# pg-nosql

Основа - http://jsonapi.org/format/

```
#Базовая табличка
id: int
data: jsonb
mixins: array[string]
type: strign??

#Доступные функции
upsert???
find_TYPE
find_MIXIN
wrap_TYPE(row): json
getId

удалять ничего нельзя

#Схема data
{
id: int,
type: string,
attributes: {},
relationships: {},
meta: {}
}

mixin: {
validate(data),
beforeUpsert(data, diff), #добавить блокировки
upsert(data, diff),
filter(obj): req_builder
reduce(obj, row): obj # добавляет в итоговый объект необозимые данные
}

#вопросы
1. full_text highlight
2. counter_cache
```