package util
Helper code for various things. Tuples, Logging, SQL, ...
- Source
- package.scala
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait AsyncExecutor extends Closeable
A connection pool for asynchronous execution of blocking I/O actions.
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.
- trait AsyncExecutorMXBean extends AnyRef
The information that is exposed by an AsyncExecutor via JMX.
- trait CloseableIterator[+T] extends Iterator[T] with Closeable
An Iterator with a
close
method to close the underlying data source.An Iterator with a
close
method to close the underlying data source. Implementers must close the data source whenhasNext
returnsfalse
. - final class ConfigExtensionMethods extends AnyVal
Extension methods to make Typesafe Config easier to use
- final class ConstArray[+T] extends Product
An efficient immutable array implementation which is used in the AST.
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.
- final class ConstArrayBuilder[T] extends AnyRef
A mutable builder for ConstArrays.
- trait ConstArrayOp[+T] extends Any
A lazy operation on a ConstArray, produced by
withFilter
,zip
,zipWithIndex
andConstArrayOp.from(Range)
. - case class DumpInfo(name: String, mainInfo: String = "", attrInfo: String = "", children: Iterable[(String, Dumpable)] = Vector.empty) extends Product with Serializable
The information required for dumping a single object
- trait Dumpable extends AnyRef
Interface for types that can be used in a tree dump
- trait InterpolationContext extends AnyRef
- trait Logging extends AnyRef
- class ManagedArrayBlockingQueue 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.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. Seejava.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. - final class ProductWrapper extends Product
A Product to represent larger arities than Tuple22
- class QueryInterpolator extends AnyRef
- final class RangeConstArrayOp extends ConstArrayOp[Int]
- trait ReadAheadIterator[+T] extends BufferedIterator[T]
An iterator on top of a data source which does not offer a hasNext() method without doing a next()
- final case class RefId[E <: AnyRef](e: E) extends Product with Serializable
A wrapper for a value, which uses reference equality of the wrapped value as its own equality.
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 regularHashMap
. - final class SQLBuilder extends AnyRef
- final class SlickLogger extends AnyRef
- class TableDump extends AnyRef
Utility methods for creating result set debug output.
- case class TreePrinter(name: String = "", prefix: String = "", firstPrefix: String = null, narrow: (Dumpable) => Dumpable = identity, mark: (Dumpable) => Boolean = _ => false) extends Product with Serializable
Create a readable printout of a tree.
Value Members
- def ??: Nothing
Throw an
UnsupportedOperationException
.Throw an
UnsupportedOperationException
. Like???
butNonFatal
. - val ignoreFollowOnError: PartialFunction[Throwable, Unit]
An exception handler which ignores
NonFatal
exceptions.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. - object AsyncExecutor extends Logging
- object BeanConfigurator extends Logging
Configure Java Beans reflectively, using Typesafe Config for data type conversions.
- object ClassLoaderUtil
Utilities for working with classloaders
- object CloseableIterator
- object ConfigExtensionMethods
- object ConstArray
- object ConstArrayOp
- object DumpInfo extends Serializable
- object Ellipsis
Create a wrapper for a
Dumpable
to omit some nodes. - object GlobalConfig
Singleton object with Slick's configuration, loaded from the application config.
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). - object QueryInterpolator
- object SQLBuilder
- object SlickLogger
- object TreePrinter extends Serializable
- object TupleMethods
Extension methods for prepending and appending values to tuples
- object TupleSupport
Utility functions for working with tuples of different arities
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...