Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] use phantom types to restrict roles #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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