Skip to content

Conversation

@jpfuentes2
Copy link

@jpfuentes2 jpfuentes2 commented Jan 23, 2017

Just an idea I'm tossing around right now. Use phantom types to restrict a Database to specific roles: Primary and Replica. The former can do all-the-things and the latter can do read-only queries.

Learn more about phantom types:

@jpfuentes2 jpfuentes2 force-pushed the phantom_types_for_primary_or_readonly_roles branch from 4253ae0 to c73180a Compare January 23, 2017 15:13
@jpfuentes2 jpfuentes2 changed the title WIP: use phantom types to restrict roles [WIP] use phantom types to restrict roles Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant