placeos-models

Version, currently 9.72.0100 versions

github.com/PlaceOS/models

PlaceOS entity models.

2 stars
0 dependents
License: NOASSERTION

Nothing has been indexed for 9.72.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  placeos-models:
    github: PlaceOS/models
    version: ~> 9.72.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 9.72.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

PlaceOS Models

CI Documentation Changelog

The database models for PlaceOS in crystal.

PlaceOS is a distributed application, with many concurrent event sources that require persistence. We use RethinkDB to unify our database and event bus, giving us a consistent interface to state and events across the system.

Configuration

Environment

| Key | Description | Default | | ------------------------- | ---------------------------------------------- | ----------- | | PLACE_MAX_VERSIONS | Number of versions to keep of versioned models | 20 | | PG_HOST | Postgresql host | "localhost" | | PG_PORT | Postgresql port | 5432 | | PG_DB | Database name or PG_DATABASE | "test" | | PG_USER | Database user | "postgres" | | PG_PASSWORD | Database password | "" | | PG_QUERY | Query string, that can be used to configure pooling | "" | | PG_LOCK_TIMEOUT | Timeout on retrying Advisory lock in seconds | 5 | | PG_DATABASE_URL | Or provide a Database DSN | |

Testing

# prune docker images if you have new migrations that need to run
# since the last time migrations image was built
docker system prune --all

# builds migrations and runs tests in a containerised env
./test

Contributing

See CONTRIBUTING.md.