ForeignKeyDeclaration are to be manipulated only during the Schema definition (this is why all public methods have the implicit arg (implicit ev: Schema))
For use with View[A] or Table[A], when A extends KeyedEntity[K], lookup and delete by key become implicitly available Example :
This class can be used for read only tables or (database) views for an updatable view, or table use Table[T]
Thrown to indicate that an error has occurred in the SQL database
(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
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)