Created
December 22, 2018 23:15
-
-
Save vichu/03dd603a660064aa39edd6d49663d7f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.outworkers.phantom.dsl._ | |
// This class will encapsulate all the valid database instances | |
class UserDatabase(implicit cassandraConnection: CassandraConnection) | |
extends Database[UserDatabase](connector = cassandraConnection) { | |
object userByIdInstance extends UserById with Connector | |
object userByFirstName extends UserByFirstName with Connector | |
} | |
// This trait will act as a database instance provider. | |
trait UserDbProvider extends DatabaseProvider[UserDatabase] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment