Object/Class

com.github.sqlite4s

SQLiteConnection

Related Docs: class SQLiteConnection | package sqlite4s

Permalink

object SQLiteConnection

SQLiteConnection is a single connection to sqlite database. It wraps the sqlite3* database handle from SQLite C Interface.

Unless otherwise specified, methods are confined to the thread that was used to open the connection. This means that an exception will be thrown if you try to access the method from a different thread.

SQLiteConnection should be expicitly closed before the object is disposed. Failing to do so may result in unpredictable behavior from SQLite.

Once closed with #dispose(), the connection cannot be reused and the instance should be forgotten.

Several connections to the same database can be opened by creating several instances of SQLiteConnection.

SQLiteConnection tracks all statements it had prepared. When connection is disposed, it first tries to dispose all prepared statements. If there's an active transaction, it is rolled back.

See also

sqlite3*

SQLiteStatement

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SQLiteConnection
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Handle = Ptr[sqlite3] with IHandle

    Permalink
  2. implicit final class HandleWrapper extends AnyVal

    Permalink
  3. sealed trait IHandle extends AnyRef

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val DEFAULT_DB_NAME: String

    Permalink
  5. val DEFAULT_DB_NAME_AS_CSTR: CString

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def disableConfinementChecking(): Unit

    Permalink
  9. def enableConfinementChecking(): Unit

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def nextConnectionNumber(): Int

    Permalink
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped