slick.util

package slick.util

Helper code for various things. Tuples, Logging, SQL, ...

Attributes

Members list

Concise view

Type members

Classlikes

trait AsyncExecutor extends Closeable

A connection pool for asynchronous execution of blocking I/O actions. This is used for the asynchronous query execution API on top of blocking back-ends like JDBC.

A connection pool for asynchronous execution of blocking I/O actions. This is used for the asynchronous query execution API on top of blocking back-ends like JDBC.

Attributes

Companion:
object
Source:
AsyncExecutor.scala
Graph
Supertypes
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
object AsyncExecutor extends Logging

Attributes

Companion:
trait
Source:
AsyncExecutor.scala
Graph
Supertypes
trait Logging
class Object
trait Matchable
class Any
Self type

The information that is exposed by an AsyncExecutor via JMX.

The information that is exposed by an AsyncExecutor via JMX.

Attributes

Source:
AsyncExecutor.scala
Graph
Supertypes
class Object
trait Matchable
class Any
object BeanConfigurator extends Logging

Configure Java Beans reflectively, using Typesafe Config for data type conversions.

Configure Java Beans reflectively, using Typesafe Config for data type conversions.

Attributes

Source:
BeanConfigurator.scala
Graph
Supertypes
trait Logging
class Object
trait Matchable
class Any
Self type

Utilities for working with classloaders

Utilities for working with classloaders

Attributes

Source:
ClassLoaderUtil.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class ConfigExtensionMethods(val c: Config) extends AnyVal

Extension methods to make Typesafe Config easier to use

Extension methods to make Typesafe Config easier to use

Attributes

Companion:
object
Source:
GlobalConfig.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Attributes

Companion:
class
Source:
GlobalConfig.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class ConstArray[+T] extends Product

An efficient immutable array implementation which is used in the AST. Semantics are generally the same as for Scala collections but for performance reasons it does not implement any standard collection traits.

An efficient immutable array implementation which is used in the AST. Semantics are generally the same as for Scala collections but for performance reasons it does not implement any standard collection traits.

Attributes

Companion:
object
Source:
ConstArray.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
object ConstArray

Attributes

Companion:
class
Source:
ConstArray.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class ConstArrayBuilder[T](initialCapacity: Int, growFactor: Double)

A mutable builder for ConstArrays.

A mutable builder for ConstArrays.

Attributes

Source:
ConstArray.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
trait ConstArrayOp[+T]

A lazy operation on a ConstArray, produced by withFilter, zip, zipWithIndex and ConstArrayOp.from(Range).

A lazy operation on a ConstArray, produced by withFilter, zip, zipWithIndex and ConstArrayOp.from(Range).

Attributes

Companion:
object
Source:
ConstArray.scala
Graph
Supertypes
class Any
Known subtypes

Attributes

Companion:
trait
Source:
ConstArray.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class DumpInfo(name: String, mainInfo: String, attrInfo: String, children: Iterable[(String, Dumpable)])

The information required for dumping a single object

The information required for dumping a single object

Attributes

Companion:
object
Source:
TreePrinter.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object DumpInfo

Attributes

Companion:
class
Source:
TreePrinter.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
trait Dumpable

Interface for types that can be used in a tree dump

Interface for types that can be used in a tree dump

Attributes

Source:
TreePrinter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Node
class Aggregate
class Bind
class Distinct
class Drop
class Filter
class GroupBy
class Insert
class Take
class Union
trait DefNode
class ForUpdate
class SortBy
class Comprehension[Fetch]
class Join
class RangeFrom
class Ref
class TableNode
class RowNum
class RowNumGen
class Select
class Apply
class First
class GetOrElse
class Pure
class RowNumber
class Subquery
trait UnaryNode
trait Type
trait BaseTypedType[T]
class ScalaBaseType[T]
trait JdbcType[T]
class MappedJdbcType[T, U]
class MappedColumnType[T, U]
object UnassignedType.type
trait TypedType[T]
trait ScalaType[T]
trait DBIOAction[R, S, E]
class AndThenAction[R, S, E]
class AsTryAction[R, E]
class CleanUpAction[R, S, E]
trait DatabaseAction[R, S, E]
trait BasicAction[R, S, E]
trait BasicStreamingAction[R, T, E]
trait SqlStreamingAction[R, T, E]
trait StreamingInvokerAction[R, T, E]
trait FixedBasicAction[R, S, E]
trait SqlAction[R, S, E]
trait FixedSqlAction[R, S, E]
trait SynchronousDatabaseAction[R, S, C, SC, E]
class SuccessAction[R]
trait Fused[R, S, C, SC, E]
class FusedAndThenAction[R, S, C, SC, E]
class FailedAction[E]
class FlatMapAction[R, S, P, E]
class FutureAction[R]
class NamedAction[R, S, E]
class SequenceAction[R, R2, E]
trait ResultConverter[R, W, U, T]
class CompoundResultConverter[R, W, U, T]
class GetOrElseResultConverter[R, W, U, T]
class ProductResultConverter[R, W, U, T]
class TypeMappingResultConverter[R, W, U, T, C]
class UnitResultConverter[R, W, U]
object Ellipsis

Create a wrapper for a Dumpable to omit some nodes.

Create a wrapper for a Dumpable to omit some nodes.

Attributes

Source:
TreePrinter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Singleton object with Slick's configuration, loaded from the application config. This includes configuration for the global profile objects and settings for debug logging.

Singleton object with Slick's configuration, loaded from the application config. This includes configuration for the global profile objects and settings for debug logging.

In addition to being listed in reference.conf, all essential config options also have their default values hardcoded here because we cannot rely on getting reference.conf on the classpath in all cases (e.g. the tsql macro).

Attributes

Source:
GlobalConfig.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Source:
QueryInterpolator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Logging

Attributes

Source:
Logging.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ManagedArrayBlockingQueue(maximumInUse: Int, capacity: Int, fair: Boolean) extends AbstractQueue[PrioritizedRunnable] with BlockingQueue[PrioritizedRunnable] with Logging

A simplified copy of java.util.concurrent.ArrayBlockingQueue with additional logic for temporarily rejecting elements based on the current size. All features of the original ArrayBlockingQueue have been ported, except the mutation methods of the iterator. See java.util.concurrent.ArrayBlockingQueue for documentation.

A simplified copy of java.util.concurrent.ArrayBlockingQueue with additional logic for temporarily rejecting elements based on the current size. All features of the original ArrayBlockingQueue have been ported, except the mutation methods of the iterator. See java.util.concurrent.ArrayBlockingQueue for documentation.

Furthermore this implementation has a pause feature where it does not pass through low- or mid-priority tasks when paused.

Attributes

Source:
ManagedArrayBlockingQueue.scala
Graph
Supertypes
trait Logging
trait BlockingQueue[PrioritizedRunnable]
class AbstractQueue[PrioritizedRunnable]
trait Queue[PrioritizedRunnable]
class AbstractCollection[PrioritizedRunnable]
trait Collection[PrioritizedRunnable]
trait Iterable[PrioritizedRunnable]
class Object
trait Matchable
class Any
Self type
final class ProductWrapper(val seq: IndexedSeq[Any]) extends Product

A Product to represent larger arities than Tuple22

A Product to represent larger arities than Tuple22

Attributes

Source:
TupleSupport.scala
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
QueryInterpolator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class QueryInterpolator(context: StringContext)

Attributes

Companion:
object
Source:
QueryInterpolator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
final class RangeConstArrayOp(val r: Range) extends ConstArrayOp[Int]

Attributes

Source:
ConstArray.scala
Graph
Supertypes
trait ConstArrayOp[Int]
class Object
trait Matchable
class Any
final case class RefId[E <: AnyRef](e: E)

A wrapper for a value, which uses reference equality of the wrapped value as its own equality. This can be used, for example, to get the equivalent of an IdentityHashMap from a regular HashMap.

A wrapper for a value, which uses reference equality of the wrapped value as its own equality. This can be used, for example, to get the equivalent of an IdentityHashMap from a regular HashMap.

Attributes

Source:
RefId.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
final class SQLBuilder

Attributes

Companion:
object
Source:
SQLBuilder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
object SQLBuilder

Attributes

Companion:
class
Source:
SQLBuilder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
final class SlickLogger(val slf4jLogger: Logger)

Attributes

Companion:
object
Source:
Logging.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
Logging.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
class TableDump(maxColumnWidth: Int)

Utility methods for creating result set debug output.

Utility methods for creating result set debug output.

Attributes

Source:
TableDump.scala
Graph
Supertypes
class Object
trait Matchable
class Any
case class TreePrinter(name: String, prefix: String, firstPrefix: String, narrow: Dumpable => Dumpable, mark: Dumpable => Boolean)

Create a readable printout of a tree.

Create a readable printout of a tree.

Attributes

Companion:
object
Source:
TreePrinter.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

Companion:
class
Source:
TreePrinter.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Extension methods for prepending and appending values to tuples

Extension methods for prepending and appending values to tuples

Attributes

Source:
TupleSupport.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Utility functions for working with tuples of different arities

Utility functions for working with tuples of different arities

Attributes

Source:
TupleSupport.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def ??: Nothing

Throw an UnsupportedOperationException. Like ??? but NonFatal.

Throw an UnsupportedOperationException. Like ??? but NonFatal.

Attributes

Source:
package.scala

Concrete fields

val ignoreFollowOnError: PartialFunction[Throwable, Unit]

An exception handler which ignores NonFatal exceptions. It is used when running cleanup code inside of another exception handler to prevent an exception during cleanup from overriding the original one.

An exception handler which ignores NonFatal exceptions. It is used when running cleanup code inside of another exception handler to prevent an exception during cleanup from overriding the original one.

Attributes

Source:
package.scala