Skip to content

Preventing you from running write actions against your slave database, at compile time.

License

Notifications You must be signed in to change notification settings

dwestheide/slick-effect-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a tiny, over-simplified example demonstrating how to prevent at compile time that you are writing to your slave database, leveraging Slick's DB action effect types.

Please read my corresponding blog post, Put your writes where your master is: Compile-time restriction of Slick effect types for more information.

Usage

The main goal of this is to show how to provoke compile errors when trying to run undesired actions against a certain database. If you want to do more than compiling and actually run the application, you need to install H2 and run it in server mode. On OS X, with Homebrew, it is as simple as this:

brew install h2
h2

About

Preventing you from running write actions against your slave database, at compile time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages