Darwin Neuroevolution Framework
Classes | Typedefs | Enumerations
db Namespace Reference

Low level database utilities. More...

Classes

class  Connection
 A very simple relational database abstraction on top of Sqlite. More...
 
class  ResultSet
 Represents the results of executing a query. More...
 
class  Statement
 A prepared Sqlite statement. More...
 
class  TransactionScope
 A scope-based transaction guard. More...
 

Typedefs

using RowId = int64_t
 Represents the ID of a row in the database.
 

Enumerations

enum  OpenMode {
  OpenMode::ExistingDatabase,
  OpenMode::CreateNew
}
 Open database flag. More...
 
enum  TransactionOption {
  TransactionOption::Deferred,
  TransactionOption::Immediate,
  TransactionOption::Exclusive
}
 The type of Sqlite transaction. More...
 

Detailed Description

Low level database utilities.

Enumeration Type Documentation

◆ OpenMode

enum db::OpenMode
strong

Open database flag.

Enumerator
ExistingDatabase 

The database file must exist.

CreateNew 

Creates a new database (will fail if file already exists)

◆ TransactionOption

enum db::TransactionOption
strong

The type of Sqlite transaction.

See also
TransactionScope
Enumerator
Deferred 

Maps to BEGIN DEFERRED TRANSACTION

Immediate 

Maps to BEGIN IMMEDIATE TRANSACTION

Exclusive 

Maps to BEGIN EXCLUSIVE TRANSACTION