slick

jdbc

package jdbc

JDBC-related code, including all facilities for Plain SQL queries and JDBC-specific driver components.

Source
package.scala
Linear Supertypes
AnyRef, Any
Content Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. jdbc
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. final class ActionBasedSQLInterpolation extends AnyVal

  2. class BaseResultConverter[T] extends ResultConverter[JdbcResultConverterDomain, T]

    Specialized JDBC ResultConverter for non-Option values.

  3. class ConnectionPreparer extends (Connection) ⇒ Unit

    Set parameters on a new Connection.

    Set parameters on a new Connection. This is used by DataSourceJdbcDataSource.

  4. class DataSourceJdbcDataSource extends JdbcDataSource

    A JdbcDataSource for a DataSource

  5. class DatabaseUrlDataSource extends DriverDataSource

    A DataSource that wraps the DriverManager API.

    A DataSource that wraps the DriverManager API. It can be configured as a Java Bean and used both stand-alone and as a source for a connection pool. This implementation is design specifically to handle a non-JDBC Database URL in the format defined by the libpq standard.

  6. class DefaultingResultConverter[T] extends ResultConverter[JdbcResultConverterDomain, T]

    Specialized JDBC ResultConverter for handling non-Option values with a default.

    Specialized JDBC ResultConverter for handling non-Option values with a default. A (possibly specialized) function for the default value is used to translate SQL NULL values.

  7. class DriverDataSource extends DataSource with Closeable with Logging

    A DataSource that wraps the DriverManager API.

    A DataSource that wraps the DriverManager API. It can be configured as a Java Bean and used both stand-alone and as a source for a connection pool.

  8. trait GetResult[+T] extends (PositionedResult) ⇒ T

    Basic conversions for extracting values from PositionedResults.

  9. class GetTupleResult[+T <: Product] extends GetResult[T]

    GetResult for tuple types.

  10. trait Invoker[+R] extends AnyRef

    Base trait for all statement invokers of result element type R.

  11. class IsDefinedResultConverter[T] extends ResultConverter[JdbcResultConverterDomain, Boolean]

    Specialized JDBC ResultConverter for handling isDefined checks for Option values.

  12. trait JdbcBackend extends RelationalBackend

    A JDBC-based database back-end which can be used for Plain SQL queries and with all slick.driver.JdbcProfile-based drivers.

    A JDBC-based database back-end which can be used for Plain SQL queries and with all slick.driver.JdbcProfile-based drivers.

  13. trait JdbcDataSource extends Closeable

    A JdbcDataSource provides a way to create a Connection object for a database.

    A JdbcDataSource provides a way to create a Connection object for a database. It is similar to a javax.sql.DataSource but simpler. Unlike JdbcBackend.DatabaseDef it is not a part of the backend cake. This trait defines the SPI for 3rd-party connection pool support.

  14. trait JdbcDataSourceFactory extends AnyRef

    Create a JdbcDataSource from a Config object and an optional JDBC Driver.

    Create a JdbcDataSource from a Config object and an optional JDBC Driver. This is used with the "connectionPool" configuration option in JdbcBackend.DatabaseFactoryDef.forConfig.

  15. abstract class JdbcFastPath[T] extends ResultConverter[JdbcResultConverterDomain, T]

    A ResultConverter that simplifies the implementation of fast path converters for JdbcProfile.

    A ResultConverter that simplifies the implementation of fast path converters for JdbcProfile. It always wraps a TypeMappingResultConverter on top of a ProductResultConverter, allowing direct access to the product elements.

  16. trait JdbcMappingCompilerComponent extends AnyRef

    JDBC driver component which contains the mapping compiler and insert compiler

  17. class JdbcModelBuilder extends Logging

    Build a Slick model from introspecting the JDBC metadata.

    Build a Slick model from introspecting the JDBC metadata.

    In most cases you are better off transforming the generated model instead of overriding functionality here. It is only useful if you need easy access to the JDBC metadata in order to influence how the model is generated. A good use case would be interpreting column types or default values that Slick doesn't understand out of the box. If you just want to remove or hard code some default values, transform the resulting model instead.

    The tight coupling can easily lead to source code incompatibilities in future versions. Avoid hooking in here if you don't have to.

  18. trait JdbcResultConverterDomain extends ResultConverterDomain

  19. trait JdbcType[T] extends BaseTypedType[T]

    A JdbcType object represents a Scala type that can be used as a column type in the database.

    A JdbcType object represents a Scala type that can be used as a column type in the database. Implicit JdbcTypes for the standard types of a profile are provided by the drivers.

  20. class LoggingPreparedStatement extends LoggingStatement with PreparedStatement

    A wrapper for java.sql.PreparedStatement that logs statements and benchmark results to the appropriate JdbcBackend loggers.

  21. class LoggingStatement extends Statement

    A wrapper for java.sql.Statement that logs statements and benchmark results to the appropriate JdbcBackend loggers.

  22. class OptionResultConverter[T] extends ResultConverter[JdbcResultConverterDomain, Option[T]]

    Specialized JDBC ResultConverter for handling values of type Option[T].

    Specialized JDBC ResultConverter for handling values of type Option[T]. Boxing is avoided when the result is None.

  23. class PositionedParameters extends AnyRef

    A wrapper for a JDBC PreparedStatement which allows inceremental setting of parameters without having to sepcify the column index each time.

  24. abstract class PositionedResult extends Closeable

    A database result positioned at a row and column.

  25. abstract class PositionedResultIterator[+T] extends ReadAheadIterator[T] with CloseableIterator[T]

    An CloseableIterator for a PositionedResult.

  26. sealed abstract class ResultSetConcurrency extends AnyRef

    Represents a result set concurrency mode.

  27. sealed abstract class ResultSetHoldability extends AnyRef

    Represents a result set holdability mode .

  28. abstract class ResultSetInvoker[+R] extends Invoker[R]

    An invoker which calls a function to retrieve a ResultSet.

    An invoker which calls a function to retrieve a ResultSet. This can be used for reading information from a java.sql.DatabaseMetaData object which has many methods that return ResultSets.

    For convenience, if the function returns null, this is treated like an empty ResultSet.

  29. trait ResultSetMutator[T] extends AnyRef

  30. sealed abstract class ResultSetType extends AnyRef

    Represents a result set type.

  31. case class SQLActionBuilder(queryParts: Seq[Any], unitPConv: SetParameter[Unit]) extends Product with Serializable

  32. trait SetParameter[-T] extends (T, PositionedParameters) ⇒ Unit

    Basic conversions for setting parameters in PositionedParameters.

  33. class SetTupleParameter[-T <: Product] extends SetParameter[T]

    SetParameter for tuple types.

  34. case class SimpleJdbcAction[+R](f: (JdbcActionContext) ⇒ R) extends SynchronousDatabaseAction[R, NoStream, JdbcBackend, All] with Product with Serializable

    A non-streaming Action that wraps a JDBC call.

  35. abstract class StatementInvoker[+R] extends Invoker[R]

    An invoker which executes an SQL statement through JDBC.

  36. trait StreamingInvokerAction[R, T, -E <: Effect] extends SynchronousDatabaseAction[R, Streaming[T], JdbcBackend, E] with FixedSqlStreamingAction[R, T, E]

    A streaming Action that wraps an Invoker.

    A streaming Action that wraps an Invoker. It is used for the Lifted Embedding, Direct Embedding, Plain SQL queries, and JDBC metadata.

  37. sealed abstract class TransactionIsolation extends AnyRef

    Represents a transaction isolation level.

  38. trait DriverBasedJdbcDataSource extends JdbcDataSource

    A JdbcDataSource which can load a JDBC Driver from a class name

    A JdbcDataSource which can load a JDBC Driver from a class name

    Annotations
    @deprecated
    Deprecated

    (Since version 3.1) Use DataSourceJdbcDataSource with DriverDataSource instead

  39. class DriverJdbcDataSource extends DriverBasedJdbcDataSource

    A JdbcDataSource for lookup via a Driver or the DriverManager

    A JdbcDataSource for lookup via a Driver or the DriverManager

    Annotations
    @deprecated
    Deprecated

    (Since version 3.1) Use DataSourceJdbcDataSource with DriverDataSource instead

Value Members

  1. object ActionBasedSQLInterpolation

  2. object DataSourceJdbcDataSource extends JdbcDataSourceFactory

  3. object GetResult

  4. object JdbcBackend extends JdbcBackend

  5. object JdbcDataSource extends Logging

  6. object ResultSetAction

  7. object ResultSetConcurrency

  8. object ResultSetHoldability

  9. object ResultSetInvoker

  10. object ResultSetType

  11. object SetParameter

  12. object SpecializedJdbcResultConverter

    Factory methods for JdbcResultConverters which are manually specialized on the underlying JdbcType.

    Factory methods for JdbcResultConverters which are manually specialized on the underlying JdbcType. A generic implementation of this factory still provides allocation free call paths but performs almost 100% slower in the fast path benchmark.

  13. object TransactionIsolation

  14. package meta

Deprecated Value Members

  1. object DriverJdbcDataSource extends JdbcDataSourceFactory

    Annotations
    @deprecated
    Deprecated

    (Since version 3.1) Use DataSourceJdbcDataSource with DriverDataSource instead

Inherited from AnyRef

Inherited from Any

Ungrouped