package squeryl
- Alphabetic
- Public
- Protected
Package Members
Type Members
- trait AbstractSession extends AnyRef
- sealed trait CanLookup extends AnyRef
- trait EntityMember extends AnyRef
- class ForeignKeyDeclaration extends AnyRef
ForeignKeyDeclaration are to be manipulated only during the Schema definition (this is why all public methods have the implicit arg (implicit ev: Schema))
- trait IndirectKeyedEntity[K, T] extends KeyedEntity[K]
- trait KeyedEntity[K] extends PersistenceStatus
For use with View[A] or Table[A], when A extends KeyedEntity[K], lookup and delete by key become implicitly available Example :
For use with View[A] or Table[A], when A extends KeyedEntity[K], lookup and delete by key become implicitly available Example :
class Peanut(weight: Float) extends KeyedEntity[Long] val peanutJar = Table[Peanut]
Since Peanut extends KeyedEntity the delete(l:Long) method is available
def removePeanut(idOfThePeanut: Long) = peanutJar.delete(idOfThePeanut)
And lookup by id is also implicitly available :
peanutJar.lookup(idOfThePeanut)
- trait KeyedEntityDef[-A, K] extends OptionalKeyedEntityDef[A, K]
- Annotations
- @implicitNotFound()
- class LazySession extends AbstractSession
- trait Optimistic extends AnyRef
- trait OptionalKeyedEntityDef[-A, K] extends AnyRef
- trait PersistenceStatus extends AnyRef
- trait PrimitiveTypeMode extends QueryDsl with FieldMapper
- trait Query[R] extends Queryable[R]
- trait Queryable[T] extends AnyRef
- trait ReferentialAction extends AnyRef
- class Schema extends AnyRef
- class Session extends AbstractSession
- trait SessionFactory extends AnyRef
- class SquerylSQLException extends RuntimeException
- class StaleUpdateException extends RuntimeException
- class Table[T] extends View[T]
- class View[T] extends Queryable[T]
This class can be used for read only tables or (database) views for an updatable view, or table use Table[T]
Value Members
- object Session
- object SessionFactory
- object SquerylSQLException extends Serializable
Thrown to indicate that an error has occurred in the SQL database
Deprecated Value Members
- object PrimitiveTypeMode extends PrimitiveTypeMode
- Annotations
- @deprecated
- Deprecated
(Since version 0.9.6) the PrimitiveTypeMode companion object is deprecated, you should define a mix in the trait for your application. See : http://squeryl.org/0.9.6.html