slick.jdbc
Contains the abstract JdbcProfile and related code. This includes all JDBC-related code,
facilities for Plain SQL queries, and JDBC-specific profile components.
Attributes
Members list
Type members
Classlikes
Attributes
- Source:
- StaticQuery.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Specialized JDBC ResultConverter for non-Option values.
Specialized JDBC ResultConverter for non-Option values.
Attributes
- Source:
- JdbcResultConverter.scala
- Graph
- Supertypes
Set parameters on a new Connection. This is used by DataSourceJdbcDataSource.
Set parameters on a new Connection. This is used by DataSourceJdbcDataSource.
Attributes
- Source:
- JdbcDataSource.scala
- Graph
- Supertypes
- trait Connection => Unitclass Objecttrait Matchableclass Any
Slick profile for IBM DB2 UDB.
Slick profile for IBM DB2 UDB.
This profile implements slick.jdbc.JdbcProfile ''without'' the following capabilities:
-
slick.relational.RelationalCapabilities.reverse: This String function is not available in DB2.
-
slick.jdbc.JdbcCapabilities.insertOrUpdate: InsertOrUpdate operations are emulated on the client side if generated keys should be returned. Otherwise the operation is performed natively on the server side.
-
slick.jdbc.JdbcCapabilities.booleanMetaData: DB2 doesn't have booleans, so Slick maps to SMALLINT instead. Other JDBC drivers like MySQL map TINYINT(1) back to a Scala Boolean. DB2 maps SMALLINT to an Integer and that's how it shows up in the JDBC meta data, thus the original type is lost.
-
slick.jdbc.JdbcCapabilities.supportsByte: DB2 does not have a BYTE type.
Note: The DB2 JDBC driver has problems with quoted identifiers. Columns which are returned from inserts must not require quoted names (in particular, they must not contain lower-case characters or be equal to a reserved word), otherwise a bug in the DB2 JDBC driver triggers a SQL Error -206 (SQLState 42703).
Attributes
- Companion:
- object
- Source:
- DB2Profile.scala
- Graph
- Supertypes
- trait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Known subtypes
- object DB2Profile.type
Attributes
- Companion:
- trait
- Source:
- DB2Profile.scala
- Graph
- Supertypes
- trait DB2Profiletrait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Self type
- DB2Profile.type
A JdbcDataSource for a DataSource
A JdbcDataSource for a DataSource
Attributes
- Companion:
- object
- Source:
- JdbcDataSource.scala
- Graph
- Supertypes
Attributes
- Companion:
- class
- Source:
- JdbcDataSource.scala
- Graph
- Supertypes
- Self type
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.
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.
Attributes
- Source:
- DatabaseUrlDataSource.scala
- Graph
- Supertypes
- class DriverDataSourcetrait Loggingtrait Closeabletrait AutoCloseabletrait DataSourcetrait Wrappertrait CommonDataSourceclass Objecttrait Matchableclass Any
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.
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.
Attributes
- Source:
- JdbcResultConverter.scala
- Graph
- Supertypes
Slick profile for Derby/JavaDB.
Slick profile for Derby/JavaDB.
This profile implements slick.jdbc.JdbcProfile ''without'' the following capabilities:
-
slick.relational.RelationalCapabilities.functionDatabase:
Functions.databaseis not available in Derby. Slick will return an empty string instead. -
slick.relational.RelationalCapabilities.replace, slick.relational.RelationalCapabilities.reverse: These String functions are not available in Derby.
-
slick.relational.RelationalCapabilities.pagingNested: See DERBY-5911.
-
slick.jdbc.JdbcCapabilities.returnInsertOther: When returning columns from an INSERT operation, only a single column may be specified which must be the table's AutoInc column.
-
slick.sql.SqlCapabilities.sequenceCurr:
Sequence.currto get the current value of a sequence is not supported by Derby. Trying to generate SQL code which uses this feature throws a SlickException. -
slick.sql.SqlCapabilities.sequenceCycle: Sequence cycling is supported but does not conform to SQL:2008 semantics. Derby cycles back to the START value instead of MINVALUE or MAXVALUE.
-
slick.relational.RelationalCapabilities.zip: Ordered sub-queries and window functions with orderings are currently not supported by Derby. These are required by
zipandzipWithIndex. Trying to generate SQL code which uses this feature causes the DB to throw an exception. We do not prevent these queries from being generated because we expect future Derby versions to support them with the standard SQL:2003 syntax (see <a href="http://wiki.apache.org/db-derby/OLAPRowNumber" target="_parent" -
slick.relational.RelationalCapabilities.joinFull: Full outer joins are emulated because there is not native support for them.
-
slick.jdbc.JdbcCapabilities.insertOrUpdate: InsertOrUpdate operations are emulated on the client side because there is no native support for them (but there is work in progress: see DERBY-3155).
-
slick.jdbc.JdbcCapabilities.booleanMetaData: Derby <= 10.6 doesn't have booleans, so Slick maps to SMALLINT instead. Other jdbc drivers like MySQL map TINYINT(1) back to a Scala Boolean. Derby maps SMALLINT to an Integer and that's how it shows up in the jdbc meta data, thus the original type is lost.
-
slick.jdbc.JdbcCapabilities.supportsByte: Derby doesn't have a corresponding type for Byte. SMALLINT is used instead and mapped to Short in the Slick model.
-
slick.relational.RelationalCapabilities.repeat: There's not builtin string function repeat in Derby. <a href="https://db.apache.org/derby/docs/10.10/ref/rrefsqlj29026.html" target="_parent"
https://db.apache.org/derby/docs/10.10/ref/rrefsqlj29026.html
-
slick.jdbc.JdbcCapabilities.returnMultipleInsertKey: Derby's driver is unable to properly return the generated key for insert statements with multiple values. (DERBY-3609)
Attributes
- Companion:
- object
- Source:
- DerbyProfile.scala
- Graph
- Supertypes
- trait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Known subtypes
- object DerbyProfile.type
Attributes
- Companion:
- trait
- Source:
- DerbyProfile.scala
- Graph
- Supertypes
- trait DerbyProfiletrait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Self type
- DerbyProfile.type
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.
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.
Attributes
- Source:
- DriverDataSource.scala
- Graph
- Supertypes
- trait Loggingtrait Closeabletrait AutoCloseabletrait DataSourcetrait Wrappertrait CommonDataSourceclass Objecttrait Matchableclass Any
- Known subtypes
- class DatabaseUrlDataSource
Basic conversions for extracting values from PositionedResults.
Basic conversions for extracting values from PositionedResults.
Attributes
- Companion:
- object
- Source:
- GetResult.scala
- Graph
- Supertypes
- Known subtypes
- object GetBigDecimal.typeobject GetBigDecimalOption.typeobject GetBoolean.typeobject GetBooleanOption.typeobject GetByte.typeobject GetByteOption.typeobject GetDate.typeobject GetDateOption.typeobject GetDouble.typeobject GetDoubleOption.typeobject GetFloat.typeobject GetFloatOption.typeobject GetInt.typeobject GetIntOption.typeobject GetLong.typeobject GetLongOption.typeobject GetShort.typeobject GetShortOption.typeobject GetString.typeobject GetStringOption.typeobject GetTime.typeobject GetTimeOption.typeobject GetTimestamp.typeobject GetTimestampOption.typeclass GetTupleResult[T]
- Self type
- GetResult[T]
Attributes
- Companion:
- trait
- Source:
- GetResult.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- GetResult.type
GetResult for tuple types.
Slick profile for H2.
Slick profile for H2.
This profile implements slick.jdbc.JdbcProfile ''without'' the following capabilities:
-
slick.relational.RelationalCapabilities.reverse: This String function is not available in H2.
-
slick.sql.SqlCapabilities.sequenceMin, slick.sql.SqlCapabilities.sequenceMax, slick.sql.SqlCapabilities.sequenceCycle: H2 does not support MINVALUE, MAXVALUE and CYCLE
-
slick.jdbc.JdbcCapabilities.returnInsertOther: When returning columns from an INSERT operation, only a single column may be specified which must be the table's AutoInc column.
-
slick.relational.RelationalCapabilities.joinFull: Full outer joins are emulated because there is not native support for them.
-
slick.jdbc.JdbcCapabilities.insertOrUpdate: InsertOrUpdate operations are emulated on the client side if the data to insert contains an
AutoIncfields. Otherwise the operation is performed natively on the server side.
Attributes
- Companion:
- object
- Source:
- H2Profile.scala
- Graph
- Supertypes
- trait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Known subtypes
- object H2Profile.type
Attributes
- Companion:
- trait
- Source:
- H2Profile.scala
- Graph
- Supertypes
- trait H2Profiletrait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Self type
- H2Profile.type
Slick profile for HyperSQL (starting with version 2.0).
Slick profile for HyperSQL (starting with version 2.0).
This profile implements the slick.jdbc.JdbcProfile ''without'' the following capabilities:
-
slick.sql.SqlCapabilities.sequenceCurr:
Sequence.currto get the current value of a sequence is not supported by Hsqldb. Trying to generate SQL code which uses this feature throws a SlickException. -
slick.jdbc.JdbcCapabilities.insertOrUpdate: InsertOrUpdate operations are emulated on the client side if generated keys should be returned. Otherwise the operation is performed natively on the server side.
Attributes
- Companion:
- object
- Source:
- HsqldbProfile.scala
- Graph
- Supertypes
- trait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Known subtypes
- object HsqldbProfile.type
Attributes
- Companion:
- trait
- Source:
- HsqldbProfile.scala
- Graph
- Supertypes
- trait HsqldbProfiletrait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Self type
- HsqldbProfile.type
Attributes
- Source:
- JdbcStatementBuilderComponent.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Base trait for all statement invokers of result element type R.
Base trait for all statement invokers of result element type R.
Attributes
- Source:
- Invoker.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- Self type
- Invoker[R]
Specialized JDBC ResultConverter for handling isDefined checks for Option values.
Specialized JDBC ResultConverter for handling isDefined checks for Option values.
Attributes
- Source:
- JdbcResultConverter.scala
- Graph
- Supertypes
Attributes
- Companion:
- object
- Source:
- JdbcActionComponent.scala
- Graph
- Supertypes
- Known subtypes
- trait DB2Profileobject DB2Profile.typetrait DerbyProfileobject DerbyProfile.typetrait H2Profileobject H2Profile.typetrait HsqldbProfileobject HsqldbProfile.typetrait MySQLProfileobject MySQLProfile.typetrait PostgresProfileobject PostgresProfile.typetrait SQLServerProfileobject SQLServerProfile.typetrait SQLiteProfileobject SQLiteProfile.typetrait OneRowPerStatementOnlyobject OracleProfile.typetrait JdbcProfiletrait OracleProfile
- Self type
Attributes
- Companion:
- trait
- Source:
- JdbcActionComponent.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- JdbcActionComponent.type
A JDBC-based database back-end that is used by slick.jdbc.JdbcProfile.
A JDBC-based database back-end that is used by slick.jdbc.JdbcProfile.
Attributes
- Companion:
- object
- Source:
- JdbcBackend.scala
- Graph
- Supertypes
- Known subtypes
- object JdbcBackend.type
Attributes
- Companion:
- trait
- Source:
- JdbcBackend.scala
- Graph
- Supertypes
- Self type
- JdbcBackend.type
Capabilities for slick.jdbc.JdbcProfile.
Capabilities for slick.jdbc.JdbcProfile.
Attributes
- Source:
- JdbcCapabilities.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- JdbcCapabilities.type
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.JdbcDatabaseDef it is not a
part of the backend cake. This trait defines the SPI for 3rd-party connection pool support.
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.JdbcDatabaseDef it is not a
part of the backend cake. This trait defines the SPI for 3rd-party connection pool support.
Attributes
- Companion:
- object
- Source:
- JdbcDataSource.scala
- Graph
- Supertypes
- trait Closeabletrait AutoCloseableclass Objecttrait Matchableclass Any
- Known subtypes
- class DataSourceJdbcDataSource
Attributes
- Companion:
- trait
- Source:
- JdbcDataSource.scala
- Graph
- Supertypes
- Self type
- JdbcDataSource.type
Create a JdbcDataSource from a Config object and an optional JDBC Driver.
This is used with the "connectionPool" configuration option in
JdbcBackend.DatabaseFactoryDef.forConfig.
Create a JdbcDataSource from a Config object and an optional JDBC Driver.
This is used with the "connectionPool" configuration option in
JdbcBackend.DatabaseFactoryDef.forConfig.
Attributes
- Source:
- JdbcDataSource.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object DataSourceJdbcDataSource.type
Attributes
- Source:
- JdbcInvokerComponent.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait JdbcProfiletrait DB2Profileobject DB2Profile.typetrait DerbyProfileobject DerbyProfile.typetrait H2Profileobject H2Profile.typetrait HsqldbProfileobject HsqldbProfile.typetrait MySQLProfileobject MySQLProfile.typetrait OracleProfileobject OracleProfile.typetrait PostgresProfileobject PostgresProfile.typetrait SQLServerProfileobject SQLServerProfile.typetrait SQLiteProfileobject SQLiteProfile.type
- Self type
JDBC profile component which contains the mapping compiler and insert compiler
JDBC profile component which contains the mapping compiler and insert compiler
Attributes
- Source:
- JdbcMappingCompilerComponent.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait JdbcProfiletrait DB2Profileobject DB2Profile.typetrait DerbyProfileobject DerbyProfile.typetrait H2Profileobject H2Profile.typetrait HsqldbProfileobject HsqldbProfile.typetrait MySQLProfileobject MySQLProfile.typetrait OracleProfileobject OracleProfile.typetrait PostgresProfileobject PostgresProfile.typetrait SQLServerProfileobject SQLServerProfile.typetrait SQLiteProfileobject SQLiteProfile.type
- Self type
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.
Attributes
- ignoreInvalidDefaults
see JdbcModelBuilder#ColumnBuilder#default
- Source:
- JdbcModelBuilder.scala
- Graph
- Supertypes
- Known subtypes
- class ModelBuilderclass H2ModelBuilderclass HsqldbModelBuilderclass MySQLModelBuilderclass OracleModelBuilderclass ModelBuilderclass ModelBuilderclass SQLiteModelBuilder
Attributes
- Source:
- JdbcModelComponent.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait JdbcProfiletrait DB2Profileobject DB2Profile.typetrait DerbyProfileobject DerbyProfile.typetrait H2Profileobject H2Profile.typetrait HsqldbProfileobject HsqldbProfile.typetrait MySQLProfileobject MySQLProfile.typetrait OracleProfileobject OracleProfile.typetrait PostgresProfileobject PostgresProfile.typetrait SQLServerProfileobject SQLServerProfile.typetrait SQLiteProfileobject SQLiteProfile.type
- Self type
Abstract profile for accessing SQL databases via JDBC.
Abstract profile for accessing SQL databases via JDBC.
Attributes
- Source:
- JdbcProfile.scala
- Graph
- Supertypes
- trait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Known subtypes
- trait DB2Profileobject DB2Profile.typetrait DerbyProfileobject DerbyProfile.typetrait H2Profileobject H2Profile.typetrait HsqldbProfileobject HsqldbProfile.typetrait MySQLProfileobject MySQLProfile.typetrait OracleProfileobject OracleProfile.typetrait PostgresProfileobject PostgresProfile.typetrait SQLServerProfileobject SQLServerProfile.typetrait SQLiteProfileobject SQLiteProfile.type
Attributes
- Source:
- JdbcStatementBuilderComponent.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait JdbcProfiletrait DB2Profileobject DB2Profile.typetrait DerbyProfileobject DerbyProfile.typetrait H2Profileobject H2Profile.typetrait HsqldbProfileobject HsqldbProfile.typetrait MySQLProfileobject MySQLProfile.typetrait OracleProfileobject OracleProfile.typetrait PostgresProfileobject PostgresProfile.typetrait SQLServerProfileobject SQLServerProfile.typetrait SQLiteProfileobject SQLiteProfile.type
- Self type
A JdbcType object represents a Scala type that can be used as a column type in the database. Implicit JdbcTypes for the standard types are provided by the profile.
A JdbcType object represents a Scala type that can be used as a column type in the database. Implicit JdbcTypes for the standard types are provided by the profile.
Attributes
- Source:
- JdbcType.scala
- Graph
- Supertypes
- trait BaseTypedType[T]trait AtomicTypetrait TypedType[T]trait Typetrait Dumpableclass Objecttrait Matchableclass Any
- Known subtypes
- class DriverJdbcType[T]class BigDecimalJdbcTypeclass BlobJdbcTypeclass OracleBlobJdbcTypeclass BooleanJdbcTypeclass DB2BooleanJdbcTypeclass DerbyBooleanJdbcTypeclass OracleBooleanJdbcTypeclass SQLServerBooleanJdbcTypeclass SQLiteBooleanJdbcTypeclass ByteArrayJdbcTypeclass OracleByteArrayJdbcTypeclass ByteJdbcTypeclass SQLServerByteJdbcTypeclass CharJdbcTypeclass ClobJdbcTypeclass DateJdbcTypeclass SQLServerDateJdbcTypeclass SQLiteDateJdbcTypeclass DoubleJdbcTypeclass FloatJdbcTypeclass InstantJdbcTypeclass DB2InstantJdbcTypeclass DerbyInstantJdbcTypeclass HsqldbInstantJdbcTypeclass OracleInstantJdbcTypeclass PostgresInstantJdbcTypeclass SQLServerInstantJdbcTypeclass SQLiteInstantJdbcTypeclass IntJdbcTypeclass LocalDateJdbcTypeclass OracleLocalDateJdbcTypeclass SQLiteLocalDateJdbcTypeclass LocalDateTimeJdbcTypeclass LocalTimeJdbcTypeclass LongJdbcTypeclass NullJdbcTypeclass OffsetDateTimeJdbcTypeclass OffsetTimeJdbcTypeclass HsqldbOffsetTimeJdbcTypeclass OracleOffsetTimeJdbcTypeclass ShortJdbcTypeclass StringJdbcTypeclass OracleStringJdbcTypeclass TimeJdbcTypeclass OracleTimeJdbcTypeclass SQLServerTimeJdbcTypeclass SQLiteTimeJdbcTypeclass TimestampJdbcTypeclass SQLiteTimestampJdbcTypeclass UUIDJdbcTypeclass DB2UUIDJdbcTypeclass DerbyUUIDJdbcTypeclass OracleUUIDJdbcTypeclass PostgresUUIDJdbcTypeclass SQLServerUUIDJdbcTypeclass SQLiteUUIDJdbcTypeclass ZonedDateTimeJdbcType
- Self type
- JdbcType[T]
Attributes
- Companion:
- object
- Source:
- JdbcTypesComponent.scala
- Graph
- Supertypes
- Known subtypes
- trait JdbcProfiletrait DB2Profileobject DB2Profile.typetrait DerbyProfileobject DerbyProfile.typetrait H2Profileobject H2Profile.typetrait HsqldbProfileobject HsqldbProfile.typetrait MySQLProfileobject MySQLProfile.typetrait OracleProfileobject OracleProfile.typetrait PostgresProfileobject PostgresProfile.typetrait SQLServerProfileobject SQLServerProfile.typetrait SQLiteProfileobject SQLiteProfile.type
- Self type
Attributes
- Companion:
- trait
- Source:
- JdbcTypesComponent.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- JdbcTypesComponent.type
A wrapper for java.sql.PreparedStatement that logs statements, parameters and benchmark results
to the appropriate JdbcBackend loggers.
A wrapper for java.sql.PreparedStatement that logs statements, parameters and benchmark results
to the appropriate JdbcBackend loggers.
Attributes
- Source:
- LoggingStatement.scala
- Graph
- Supertypes
- trait PreparedStatementclass LoggingStatementtrait Statementtrait AutoCloseabletrait Wrapperclass Objecttrait Matchableclass Any
A wrapper for java.sql.Statement that logs statements and benchmark results
to the appropriate JdbcBackend loggers.
A wrapper for java.sql.Statement that logs statements and benchmark results
to the appropriate JdbcBackend loggers.
Attributes
- Source:
- LoggingStatement.scala
- Graph
- Supertypes
- trait Statementtrait AutoCloseabletrait Wrapperclass Objecttrait Matchableclass Any
- Known subtypes
- class LoggingPreparedStatement
Slick profile for MySQL.
Slick profile for MySQL.
This profile implements slick.jdbc.JdbcProfile ''without'' the following capabilities:
-
slick.jdbc.JdbcCapabilities.returnInsertOther: When returning columns from an INSERT operation, only a single column may be specified which must be the table's AutoInc column.
-
slick.sql.SqlCapabilities.sequenceLimited: Non-cyclic sequence may not have an upper limit.
-
slick.relational.RelationalCapabilities.joinFull: Full outer joins are emulated because there is not native support for them.
-
slick.jdbc.JdbcCapabilities.nullableNoDefault: Nullable columns always have NULL as a default according to the SQL standard. Consequently MySQL treats no specifying a default value just as specifying NULL and reports NULL as the default value. Some other dbms treat queries with no default as NULL default, but distinguish NULL from no default value in the meta data.
Sequences are supported through an emulation which requires the schema to
be created by Slick. You can also use an existing schema with your own
sequence emulation if you provide for each sequence ''s'' a pair of
functions s_nextval and s_currval.
The default type for strings of unlimited length is "TEXT", falling back to
"VARCHAR(254)" if a Default or PrimaryKey column option is set. This can be
changed by overriding slick.jdbc.MySQLProfile.defaultStringType
in application.conf.
Note: Slick 3.2 also checks the old config path "slick.driver.MySQL" that was used by Slick 3.0 and 3.1, and logs a warning if anything is found there. Values from the old path are not used anymore. This deprecation warning will be removed in a future version.
Attributes
- Companion:
- object
- Source:
- MySQLProfile.scala
- Graph
- Supertypes
- trait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Known subtypes
- object MySQLProfile.type
- Self type
Attributes
- Companion:
- trait
- Source:
- MySQLProfile.scala
- Graph
- Supertypes
- trait MySQLProfiletrait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Self type
- MySQLProfile.type
Specialized JDBC ResultConverter for handling values of type Option[T].
Boxing is avoided when the result is None.
Specialized JDBC ResultConverter for handling values of type Option[T].
Boxing is avoided when the result is None.
Attributes
- Source:
- JdbcResultConverter.scala
- Graph
- Supertypes
Slick profile for Oracle.
Slick profile for Oracle.
This profile implements slick.jdbc.JdbcProfile ''without'' the following capabilities:
-
slick.relational.RelationalCapabilities.foreignKeyActions: Foreign key actions ''Cascade'', ''SetNull'' and ''NoAction'' are directly supported for ''onDelete''. ''Restrict'' and ''SetDefault'' are ignored (i.e. equals to ''NoAction''). No ''onUpdate'' actions are supported but specifying ''Cascade'' adds the option INITIALLY DEFERRED to the foreign key constraint, thus allowing you to perform the cascading update manually before committing the current transaction. Other ''onUpdate'' actions are ignored.
-
slick.jdbc.JdbcCapabilities.insertOrUpdate: InsertOrUpdate operations are emulated on the client side if generated keys should be returned. Otherwise the operation is performed natively on the server side.
-
slick.jdbc.JdbcCapabilities.booleanMetaData: Oracle doesn't have booleans, so Slick maps to CHAR instead and that's how it appears in model and generated code.
-
slick.jdbc.JdbcCapabilities.distinguishesIntTypes: Oracle doesn't distinguish integer types and Slick uses NUMBER, which is always mapped back to BigDecimal in model and generated code.
-
slick.jdbc.JdbcCapabilities.supportsByte: Oracle does not have a BYTE type.
-
slick.jdbc.JdbcCapabilities.returnMultipleInsertKey: Oracle returns the last generated key only.
-
slick.jdbc.JdbcCapabilities.insertMultipleRowsWithSingleStatement: Oracle doesn't support this feature directly. There are several alternative ways, but the library doesn't support them, so far.
Note: The Oracle JDBC driver has problems with quoted identifiers. Columns which are returned from inserts must not require quoted names (in particular, they must not contain lower-case characters or be equal to a reserved word), otherwise a bug in the Oracle JDBC driver triggers an ORA-00904 error. The same issue arises when trying to update such a column in a mutable result set.
Updating Blob values in updatable result sets is not supported.
Attributes
- Companion:
- object
- Source:
- OracleProfile.scala
- Graph
- Supertypes
- trait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Known subtypes
- object OracleProfile.type
Attributes
- Companion:
- trait
- Source:
- OracleProfile.scala
- Graph
- Supertypes
- trait OneRowPerStatementOnlytrait OracleProfiletrait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Self type
- OracleProfile.type
Attributes
- Source:
- PostgresProfile.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- PGUtils.type
A wrapper for a JDBC PreparedStatement which allows inceremental setting of
parameters without having to sepcify the column index each time.
A wrapper for a JDBC PreparedStatement which allows inceremental setting of
parameters without having to sepcify the column index each time.
Attributes
- Source:
- PositionedParameters.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
A database result positioned at a row and column.
A database result positioned at a row and column.
Attributes
- Source:
- PositionedResult.scala
- Graph
- Supertypes
- trait Closeabletrait AutoCloseableclass Objecttrait Matchableclass Any
- Self type
Slick profile for PostgreSQL.
Slick profile for PostgreSQL.
This profile implements slick.jdbc.JdbcProfile ''without'' the following capabilities:
-
slick.jdbc.JdbcCapabilities.insertOrUpdate: InsertOrUpdate operations are emulated on the server side with a single JDBC statement executing multiple server-side statements in a transaction. This is faster than a client-side emulation but may still fail due to concurrent updates. InsertOrUpdate operations with
returningare emulated on the client side. -
slick.jdbc.JdbcCapabilities.nullableNoDefault: Nullable columns always have NULL as a default according to the SQL standard. Consequently Postgres treats no specifying a default value just as specifying NULL and reports NULL as the default value. Some other dbms treat queries with no default as NULL default, but distinguish NULL from no default value in the meta data.
-
slick.jdbc.JdbcCapabilities.supportsByte: Postgres doesn't have a corresponding type for Byte. SMALLINT is used instead and mapped to Short in the Slick model.
Notes:
- slick.relational.RelationalCapabilities.typeBlob:
The default implementation of the
Blobtype uses the database typeloand the stored procedurelo_manage, both of which are provided by the "lo" extension in PostgreSQL.
Attributes
- Companion:
- object
- Source:
- PostgresProfile.scala
- Graph
- Supertypes
- trait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Known subtypes
- object PostgresProfile.type
Attributes
- Companion:
- trait
- Source:
- PostgresProfile.scala
- Graph
- Supertypes
- trait PostgresProfiletrait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Self type
- PostgresProfile.type
Ensure that every expression in a GroupBy's "by" clause contains a reference to a proper source field. If this is not the case, wrap the source in a Subquery boundary.
Ensure that every expression in a GroupBy's "by" clause contains a reference to a proper source field. If this is not the case, wrap the source in a Subquery boundary.
Attributes
- Source:
- SQLServerProfile.scala
- Graph
- Supertypes
Attributes
- Source:
- ResultSetInvoker.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ResultSetAction.type
Represents a result set concurrency mode.
Represents a result set concurrency mode.
Attributes
- Companion:
- object
- Source:
- ResultSetConcurrency.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- Self type
Attributes
- Companion:
- class
- Source:
- ResultSetConcurrency.scala
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- ResultSetConcurrency.type
Represents a result set holdability mode .
Represents a result set holdability mode .
Attributes
- Companion:
- object
- Source:
- ResultSetHoldability.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object Auto.typeobject CloseCursorsAtCommit.typeobject Default.typeobject HoldCursorsOverCommit.type
- Self type
Attributes
- Companion:
- class
- Source:
- ResultSetHoldability.scala
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- ResultSetHoldability.type
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.
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.
Attributes
- Companion:
- object
- Source:
- ResultSetInvoker.scala
- Graph
- Supertypes
- Self type
Attributes
- Companion:
- class
- Source:
- ResultSetInvoker.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- ResultSetInvoker.type
Attributes
- Source:
- Invoker.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class Mutator
Represents a result set type.
Represents a result set type.
Attributes
- Companion:
- object
- Source:
- ResultSetType.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- Self type
Attributes
- Companion:
- class
- Source:
- ResultSetType.scala
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- ResultSetType.type
Attributes
- Companion:
- object
- Source:
- RowsPerStatement.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion:
- trait
- Source:
- RowsPerStatement.scala
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- RowsPerStatement.type
Attributes
- Source:
- StaticQuery.scala
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Attributes
- Source:
- StaticQuery.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- SQLInterpolation.type
Slick profile for Microsoft SQL Server.
Slick profile for Microsoft SQL Server.
This profile implements slick.jdbc.JdbcProfile ''without'' the following capabilities:
-
slick.jdbc.JdbcCapabilities.returnInsertOther: When returning columns from an INSERT operation, only a single column may be specified which must be the table's AutoInc column.
-
slick.sql.SqlCapabilities.sequence: Sequences are not supported because SQLServer does not have this feature.
-
slick.jdbc.JdbcCapabilities.forceInsert: Inserting explicit values into AutoInc columns with ''forceInsert'' operations is not supported.
-
slick.jdbc.JdbcCapabilities.createModel: Reading the database schema is not supported.
-
slick.jdbc.JdbcCapabilities.insertOrUpdate: InsertOrUpdate operations are emulated on the client side if generated keys should be returned. Otherwise the operation is performed natively on the server side.
-
slick.jdbc.JdbcCapabilities.supportsByte: SQL Server's TINYINT is unsigned. It doesn't have a signed Byte-like type. Slick maps Byte to SMALLINT instead and that's how it shows up in model and code-generation.
The default type for strings of unlimited length is "VARCHAR(MAX)", falling back to
"VARCHAR(254)" if a PrimaryKey column option is set. This can be
changed by overriding slick.jdbc.SQLServerProfile.defaultStringType
in application.conf.
Attributes
- Companion:
- object
- Source:
- SQLServerProfile.scala
- Graph
- Supertypes
- trait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Known subtypes
- object SQLServerProfile.type
Attributes
- Companion:
- trait
- Source:
- SQLServerProfile.scala
- Graph
- Supertypes
- trait SQLServerProfiletrait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Self type
- SQLServerProfile.type
Slick profile for SQLite.
Slick profile for SQLite.
This profile implements slick.jdbc.JdbcProfile ''without'' the following capabilities:
-
slick.relational.RelationalCapabilities.functionDatabase, slick.relational.RelationalCapabilities.functionUser:
Functions.userandFunctions.databaseare not available in SQLite. Slick will return empty strings for both. -
slick.relational.RelationalCapabilities.joinFull, slick.relational.RelationalCapabilities.joinRight: Right and full outer joins are emulated because there is not native support for them.
-
slick.jdbc.JdbcCapabilities.mutable: SQLite does not allow mutation of result sets. All cursors are read-only.
-
slick.sql.SqlCapabilities.sequence: Sequences are not supported by SQLite.
-
slick.jdbc.JdbcCapabilities.returnInsertOther: When returning columns from an INSERT operation, only a single column may be specified which must be the table's AutoInc column.
-
slick.relational.RelationalCapabilities.typeBigDecimal: SQLite does not support a decimal type.
-
slick.relational.RelationalCapabilities.typeBlob: Blobs are not supported by the SQLite JDBC driver (but binary data in the form of
Array[Byte]is). -
slick.relational.RelationalCapabilities.zip: Row numbers (required by
zipandzipWithIndex) are not supported. Trying to generate SQL code which uses this feature throws a SlickException. -
slick.jdbc.JdbcCapabilities.insertOrUpdate: InsertOrUpdate operations are emulated on the client side if the data to insert contains an
AutoIncfield. Otherwise the operation is performed natively on the server side. -
slick.jdbc.JdbcCapabilities.defaultValueMetaData: The stable xerial sqlite-jdbc driver 3.7.2 does not return default values for columns in the DatabaseMetaData. Consequently they also do not appear in Slick's model. This has been fixed in sqlite-jdbc, but the only released version that contains the fix is milestone 3.7.15-M1. You can use it instead of the stable 3.7.2 in order to get default values with SQLite. Also see https://code.google.com/p/sqlite-jdbc/issues/detail?id=27
-
slick.jdbc.JdbcCapabilities.booleanMetaData: SQLite doesn't have booleans, so Slick maps to INTEGER instead. Other jdbc drivers like MySQL map TINYINT(1) back to a Scala Boolean. SQLite maps INTEGER to an Integer and that's how it shows up in the jdbc meta data, thus the original type is lost.
-
slick.jdbc.JdbcCapabilities.distinguishesIntTypes: SQLite does not distinguish integer types and maps them all to Int in the meta data.
-
slick.jdbc.JdbcCapabilities.supportsByte: SQLite does not distinguish integer types and maps them all to Int in the meta data.
-
slick.jdbc.JdbcCapabilities.returnMultipleInsertKey: SQLite returns the last generated key only.
Attributes
- Companion:
- object
- Source:
- SQLiteProfile.scala
- Graph
- Supertypes
- trait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Known subtypes
- object SQLiteProfile.type
Attributes
- Companion:
- trait
- Source:
- SQLiteProfile.scala
- Graph
- Supertypes
- trait SQLiteProfiletrait JdbcProfiletrait JdbcModelComponenttrait JdbcTypesComponenttrait JdbcInvokerComponenttrait JdbcActionComponenttrait SqlProfiletrait SqlUtilsComponenttrait SqlActionComponenttrait SqlTableComponenttrait RelationalProfiletrait RelationalTypesComponenttrait RelationalTableComponenttrait BasicProfiletrait BasicActionComponentclass Objecttrait Matchableclass Any
- Self type
- SQLiteProfile.type
Basic conversions for setting parameters in PositionedParameters.
Basic conversions for setting parameters in PositionedParameters.
Attributes
- Companion:
- object
- Source:
- SetParameter.scala
- Graph
- Supertypes
- Known subtypes
- object SetBigDecimal.typeobject SetBigDecimalOption.typeobject SetBoolean.typeobject SetBooleanOption.typeobject SetByte.typeobject SetByteOption.typeobject SetDate.typeobject SetDateOption.typeobject SetDouble.typeobject SetDoubleOption.typeobject SetFloat.typeobject SetFloatOption.typeobject SetInt.typeobject SetIntOption.typeobject SetLong.typeobject SetLongOption.typeobject SetNothing.typeobject SetShort.typeobject SetShortOption.typeobject SetSimpleProduct.typeobject SetString.typeobject SetStringOption.typeobject SetTime.typeobject SetTimeOption.typeobject SetTimestamp.typeobject SetTimestampOption.typeobject SetUnit.typeclass SetTupleParameter[T]
- Self type
- SetParameter[T]
Attributes
- Companion:
- trait
- Source:
- SetParameter.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- SetParameter.type
SetParameter for tuple types.
A non-streaming Action that wraps a JDBC call.
A non-streaming Action that wraps a JDBC call.
Attributes
- Source:
- StreamingInvokerAction.scala
- Graph
- Supertypes
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.
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.
Attributes
- Source:
- SpecializedJdbcResultConverters.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
An invoker which executes an SQL statement through JDBC.
An invoker which executes an SQL statement through JDBC.
Attributes
- Source:
- StatementInvoker.scala
- Graph
- Supertypes
- Known subtypes
- trait QueryInvoker[R]class QueryInvokerImpl[R]
- Self type
A streaming Action that wraps an Invoker. It is used for the Lifted Embedding, Direct Embedding, Plain SQL queries, and JDBC metadata.
A streaming Action that wraps an Invoker. It is used for the Lifted Embedding, Direct Embedding, Plain SQL queries, and JDBC metadata.
Attributes
- Source:
- StreamingInvokerAction.scala
- Graph
- Supertypes
- Self type
Converts between TIMESTAMPTZ and java.time times and back.
Oracle jar not on path at compile time (but must be a run time)
Use reflection to get access to TIMESTAMPTZ class
Converts between TIMESTAMPTZ and java.time times and back.
Oracle jar not on path at compile time (but must be a run time)
Use reflection to get access to TIMESTAMPTZ class
Attributes
- Source:
- OracleProfile.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- TimestamptzConverter.type
Represents a transaction isolation level.
Represents a transaction isolation level.
Attributes
- Companion:
- object
- Source:
- TransactionIsolation.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object ReadCommitted.typeobject ReadUncommitted.typeobject RepeatableRead.typeobject Serializable.type
Attributes
- Companion:
- class
- Source:
- TransactionIsolation.scala
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- TransactionIsolation.type
Attributes
- Companion:
- object
- Source:
- StaticQuery.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Companion:
- class
- Source:
- StaticQuery.scala
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- TypedParameter.type