object DatabaseConfig
- Source
- DatabaseConfig.scala
- Alphabetic
- By Inheritance
- DatabaseConfig
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def forConfig[P <: BasicProfile](path: String, config: Config = ConfigFactory.load(), classLoader: ClassLoader = ClassLoaderUtil.defaultClassLoader)(implicit arg0: ClassTag[P]): DatabaseConfig[P]
Load a Profile and database configuration through Typesafe Config.
Load a Profile and database configuration through Typesafe Config.
The following config parameters are available:
profile
(String, required): The fully qualified name of a class or object which implements the specified profile. If the name ends with$
it is assumed to be an object name, otherwise a class name.db
(Config, optional): The configuration of a database for the profile's backend. For profiles extendingJdbcProfile
(which always useJdbcBackend
), seeJdbcBackend.DatabaseFactory.forConfig
for parameters that should be defined inside ofdb
.
Note: Slick 3.2 also supports the old
driver
parameter as an alternative toprofile
. Old profile names (e.g.
forslick.driver.DerbyDriver$
) are recognized and translated to the new names. This feature is deprecated and will be removed in a future release.slick.jdbc.DerbyProfile$
- path
The path in the configuration file for the database configuration (e.g.
foo.bar
would find a profile name at config keyfoo.bar.profile
) or an empty string for the top level of theConfig
object.- config
The
Config
object to read from. This defaults to the global app config (e.g. inapplication.conf
at the root of the class path) if not specified.- classLoader
The ClassLoader to use to load any custom classes from. The default is to try the context ClassLoader first and fall back to Slick's ClassLoader.
- def forURI[P <: BasicProfile](uri: URI, classLoader: ClassLoader = ClassLoaderUtil.defaultClassLoader)(implicit arg0: ClassTag[P]): DatabaseConfig[P]
Load a profile and database configuration from the specified URI.
Load a profile and database configuration from the specified URI. If only a fragment name is given, it is resolved as a path in the global app config (e.g. in
application.conf
at the root of the class path), otherwise as a path in the configuration located at the URI without the fragment, which must be a valid URL. Without a fragment, the whole config object is used. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
edit this text on github
Scala Language-Integrated Connection Kit
This is the API documentation for the Slick database library. It should be used as an additional resource to the user manual.
Further documentation for Slick can be found on the documentation pages.
To the slick package list...