SQLiteAdapter

org.squeryl.adapters.SQLiteAdapter

Attributes

Source
SQLiteAdapter.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Inherited classlikes

class Zip[T](val element: T, val isLast: Boolean, val isFirst: Boolean)

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
Supertypes
class Object
trait Matchable
class Any
class ZipIterable[T](iterable: Iterable[T])

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

override def intTypeDeclaration: String

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def isFullOuterJoinSupported: Boolean

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def isTableDoesNotExistException(e: SQLException): Boolean

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def longTypeDeclaration: String

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def supportsCommonTableExpressions: Boolean

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def supportsForeignKeyConstraints: Boolean

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def uuidTypeDeclaration: String

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def writeColumnDeclaration(fmd: FieldMetaData, isPrimaryKey: Boolean, schema: Schema): String

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def writeCompositePrimaryKeyConstraint(t: Table[_], cols: Iterable[FieldMetaData]): String

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def writeCreateTable[T](t: Table[T], sw: StatementWriter, schema: Schema): Unit

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def writeDropTable(tableName: String): String

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def writeEndOfQueryHint(isForUpdate: () => Boolean, qen: QueryExpressionElements, sw: StatementWriter): Unit

Attributes

Definition Classes
Source
SQLiteAdapter.scala
override def writeRegexExpression(left: ExpressionNode, pattern: String, sw: StatementWriter): ArrayBuffer[StatementParam]

Attributes

Definition Classes
Source
SQLiteAdapter.scala

Inherited methods

def aliasExport(parentOfTarget: QueryableExpressionNode, target: SelectElement): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
final def arrayCreationType(ptype: Class[_]): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def bigDecimalTypeDeclaration(precision: Int, scale: Int): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def binaryTypeDeclaration: String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def convertFromBooleanForJdbc(b: Boolean): Boolean

unused at the moment, since all jdbc drivers adhere to the standard that : 1 == true, false otherwise. If a new driver would not adhere to this, the call can be uncommented in method convertToJdbcValue

unused at the moment, since all jdbc drivers adhere to the standard that : 1 == true, false otherwise. If a new driver would not adhere to this, the call can be uncommented in method convertToJdbcValue

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def convertFromUuidForJdbc(u: UUID): AnyRef

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def convertToBooleanForJdbc(rs: ResultSet, i: Int): Boolean

unused for the same reason as def convertFromBooleanForJdbc (see comment)

unused for the same reason as def convertFromBooleanForJdbc (see comment)

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def convertToJdbcValue(r: AnyRef): AnyRef

Converts field instances so they can be fed, and understood by JDBC will not do conversion from None/Some, so @arg r should be a java primitive type or a CustomType

Converts field instances so they can be fed, and understood by JDBC will not do conversion from None/Some, so @arg r should be a java primitive type or a CustomType

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def convertToUuidForJdbc(rs: ResultSet, i: Int): UUID

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def createSequenceName(fmd: FieldMetaData): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
protected def createStatement(conn: Connection): Statement

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def databaseTypeFor(fieldMapper: FieldMapper, c: Class[_]): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def databaseTypeFor(fmd: FieldMetaData): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def dateTypeDeclaration: String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def doubleTypeDeclaration: String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def dropForeignKeyStatement(foreignKeyTable: Table[_], fkName: String, session: AbstractSession): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def dropTable(t: Table[_]): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
protected def exec[A](s: AbstractSession, sw: StatementWriter)(block: Iterable[StatementParam] => A): A

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
protected def execFailSafeExecute(sw: StatementWriter, silenceException: SQLException => Boolean): Unit

Some methods like 'dropTable' issue their statement, and will silence the exception. For example dropTable will silence when isTableDoesNotExistException(theExceptionThrown). It must be used carefully, and an exception should not be silenced unless identified.

Some methods like 'dropTable' issue their statement, and will silence the exception. For example dropTable will silence when isTableDoesNotExistException(theExceptionThrown). It must be used carefully, and an exception should not be silenced unless identified.

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def executeQuery(s: AbstractSession, sw: StatementWriter): (ResultSet, PreparedStatement)

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def executeUpdate(s: AbstractSession, sw: StatementWriter): (Int, PreparedStatement)

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def executeUpdateForInsert(s: AbstractSession, sw: StatementWriter, ps: PreparedStatement): Int

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def fillParamsInto(params: Iterable[StatementParam], s: PreparedStatement): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def floatTypeDeclaration: String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def foreignKeyConstraintName(foreignKeyTable: Table[_], idWithinSchema: Int): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def generateAlmostUniqueSuffixWithHash(s: String): String

This will create an probabilistically unique string of length no longer than 11 chars, it can be used to create "almost unique" names where uniqueness is not an absolute requirement, is not ,

This will create an probabilistically unique string of length no longer than 11 chars, it can be used to create "almost unique" names where uniqueness is not an absolute requirement, is not ,

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
protected def getInsertableFields(fmd: Iterable[FieldMetaData]): Iterable[FieldMetaData]

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def isNotNullConstraintViolation(e: SQLException): Boolean

Figures out from the SQLException (ex.: vendor specific error code) if it's cause is a NOT NULL constraint violation

Figures out from the SQLException (ex.: vendor specific error code) if it's cause is a NOT NULL constraint violation

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def jdbcTypeConstantFor(c: Class[_]): Int

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def nvlToken: String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def postCreateTable(t: Table[_], printSinkWhenWriteOnlyMode: Option[String => Unit]): Unit

When @arg printSinkWhenWriteOnlyMode is not None, the adapter will not execute any statement, but only silently give it to the String=>Unit closure

When @arg printSinkWhenWriteOnlyMode is not None, the adapter will not execute any statement, but only silently give it to the String=>Unit closure

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def postDropTable(t: Table[_]): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
protected def prepareStatement(conn: Connection, statement: String): PreparedStatement

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def quoteIdentifier(s: String): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def quoteName(s: String): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def setParamInto(s: PreparedStatement, p: StatementParam, i: Int): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def stringTypeDeclaration(length: Int): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def stringTypeDeclaration: String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def verifyDeleteByPK: Boolean

Should we verify that when we delete by primary key the JDBC driver reports that no more than one row was affected? MonetDB in particular seems to act badly here

Should we verify that when we delete by primary key the JDBC driver reports that no more than one row was affected? MonetDB in particular seems to act badly here

Attributes

Returns

true if we should throw an exception if the driver reports more than 1 affected row

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def viewAlias(vn: ViewExpressionNode[_]): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def writeDelete[T](t: Table[T], whereClause: Option[ExpressionNode], sw: StatementWriter): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def writeDropForeignKeyStatement(foreignKeyTable: Table[_], fkName: String): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def writeForeignKeyDeclaration(foreignKeyTable: Table[_], foreignKeyColumnName: String, primaryKeyTable: Table[_], primaryKeyColumnName: String, referentialAction1: Option[ReferentialAction], referentialAction2: Option[ReferentialAction], fkId: Int): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def writeIndexDeclaration(columnDefs: Seq[FieldMetaData], name: Option[String], nameOfCompositeKey: Option[String], isUnique: Boolean): String

Value parameters

name

the name specified in the Schema, when not None, it must be used as the name

nameOfCompositeKey

when not None, the column group forms a composite key, 'nameOfCompositeKey' can be used as part of the name to create a more meaningfull name for the constraint, when 'name' is None

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def writeInsert[T](o: T, t: Table[T], sw: StatementWriter): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def writeJoin(queryableExpressionNode: QueryableExpressionNode, sw: StatementWriter): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def writePaginatedQueryDeclaration(page: () => Option[(Int, Int)], qen: QueryExpressionElements, sw: StatementWriter): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
protected def writeQuery(qen: QueryExpressionElements, sw: StatementWriter, inverseOrderBy: Boolean, topHint: Option[String]): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def writeUniquenessConstraint(t: Table[_], cols: Iterable[FieldMetaData]): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def writeUpdate(t: Table[_], us: UpdateStatement, sw: StatementWriter): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
def writeUpdate[T](o: T, t: Table[T], sw: StatementWriter, checkOCC: Boolean): Unit

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
protected def writeValue(o: AnyRef, fmd: FieldMetaData, sw: StatementWriter): String

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala

Implicits

Inherited implicits

implicit def string2StatementWriter(s: String): StatementWriter

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala
implicit def zipIterable[T](i: Iterable[T]): ZipIterable[T]

Attributes

Inherited from:
DatabaseAdapter
Source
DatabaseAdapter.scala