Skip to content

KevinRecuerda/DocumentStore

Repository files navigation

Document Store

This project is a sample for document store database, using:

it shows:

  • Sub class (Issue)
  • Sub array (Assignee)
  • Inheritance (Smurf)
  • Indexing sub array (Mapping)
  • Indexing text (TextSearch)

Postgresql

need pg_trgm extension

Marten

Id generation

Migrations

Marten migration

-- rename column
update example
set js = js - 'old' || jsonb_build_object('new', js->'old')
where js ? 'old'

-- transform array<T> to T
update example
set js = jsonb_set(
            js #- '{prefixPath,old}',
            '{prefixPath,new}',
            js #> '{prefixPath,old,0}') -- take only first item
where js ? '{prefixPath,old}'

Note

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published