backend

Bindings for cppdb::backend namespace

class pyrosetta.rosetta.cppdb.backend.connection

Bases: pyrosetta.rosetta.cppdb.ref_counted

add_ref(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::add_ref() –> long

begin(self: pyrosetta.rosetta.cppdb.backend.connection) None

C++: cppdb::backend::connection::begin() –> void

clear_cache(self: pyrosetta.rosetta.cppdb.backend.connection) None

C++: cppdb::backend::connection::clear_cache() –> void

commit(self: pyrosetta.rosetta.cppdb.backend.connection) None

C++: cppdb::backend::connection::commit() –> void

connection_specific_get(self: pyrosetta.rosetta.cppdb.backend.connection, type: pyrosetta.rosetta.std.type_info) pyrosetta.rosetta.cppdb.connection_specific_data

C++: cppdb::backend::connection::connection_specific_get(const class std::type_info &) const –> class cppdb::connection_specific_data *

connection_specific_release(self: pyrosetta.rosetta.cppdb.backend.connection, type: pyrosetta.rosetta.std.type_info) pyrosetta.rosetta.cppdb.connection_specific_data

C++: cppdb::backend::connection::connection_specific_release(const class std::type_info &) –> class cppdb::connection_specific_data *

connection_specific_reset(*args, **kwargs)

Overloaded function.

  1. connection_specific_reset(self: pyrosetta.rosetta.cppdb.backend.connection, type: pyrosetta.rosetta.std.type_info) -> None

  2. connection_specific_reset(self: pyrosetta.rosetta.cppdb.backend.connection, type: pyrosetta.rosetta.std.type_info, p: pyrosetta.rosetta.cppdb.connection_specific_data) -> None

C++: cppdb::backend::connection::connection_specific_reset(const class std::type_info &, class cppdb::connection_specific_data *) –> void

create_statement(self: pyrosetta.rosetta.cppdb.backend.connection, q: str) pyrosetta.rosetta.cppdb.backend.statement

C++: cppdb::backend::connection::create_statement(const std::string &) –> class cppdb::backend::statement *

del_ref(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::del_ref() –> long

static dispose(c: pyrosetta.rosetta.cppdb.backend.connection) None

C++: cppdb::backend::connection::dispose(class cppdb::backend::connection *) –> void

driver(self: pyrosetta.rosetta.cppdb.backend.connection) str

C++: cppdb::backend::connection::driver() –> std::string

engine(self: pyrosetta.rosetta.cppdb.backend.connection) str

C++: cppdb::backend::connection::engine() –> std::string

escape(*args, **kwargs)

Overloaded function.

  1. escape(self: pyrosetta.rosetta.cppdb.backend.connection, : str) -> str

C++: cppdb::backend::connection::escape(const std::string &) –> std::string

  1. escape(self: pyrosetta.rosetta.cppdb.backend.connection, s: str) -> str

C++: cppdb::backend::connection::escape(const char *) –> std::string

  1. escape(self: pyrosetta.rosetta.cppdb.backend.connection, b: str, e: str) -> str

C++: cppdb::backend::connection::escape(const char *, const char *) –> std::string

get_pool(self: pyrosetta.rosetta.cppdb.backend.connection) pyrosetta.rosetta.cppdb.ref_ptr_cppdb_pool_t

C++: cppdb::backend::connection::get_pool() –> class cppdb::ref_ptr<class cppdb::pool>

get_prepared_statement(self: pyrosetta.rosetta.cppdb.backend.connection, q: str) pyrosetta.rosetta.cppdb.ref_ptr_cppdb_backend_statement_t

C++: cppdb::backend::connection::get_prepared_statement(const std::string &) –> class cppdb::ref_ptr<class cppdb::backend::statement>

get_prepared_uncached_statement(self: pyrosetta.rosetta.cppdb.backend.connection, q: str) pyrosetta.rosetta.cppdb.ref_ptr_cppdb_backend_statement_t

C++: cppdb::backend::connection::get_prepared_uncached_statement(const std::string &) –> class cppdb::ref_ptr<class cppdb::backend::statement>

get_statement(self: pyrosetta.rosetta.cppdb.backend.connection, q: str) pyrosetta.rosetta.cppdb.ref_ptr_cppdb_backend_statement_t

C++: cppdb::backend::connection::get_statement(const std::string &) –> class cppdb::ref_ptr<class cppdb::backend::statement>

once_called(*args, **kwargs)

Overloaded function.

  1. once_called(self: pyrosetta.rosetta.cppdb.backend.connection) -> bool

C++: cppdb::backend::connection::once_called() const –> bool

  1. once_called(self: pyrosetta.rosetta.cppdb.backend.connection, v: bool) -> None

C++: cppdb::backend::connection::once_called(bool) –> void

prepare(self: pyrosetta.rosetta.cppdb.backend.connection, q: str) pyrosetta.rosetta.cppdb.ref_ptr_cppdb_backend_statement_t

C++: cppdb::backend::connection::prepare(const std::string &) –> class cppdb::ref_ptr<class cppdb::backend::statement>

prepare_statement(self: pyrosetta.rosetta.cppdb.backend.connection, q: str) pyrosetta.rosetta.cppdb.backend.statement

C++: cppdb::backend::connection::prepare_statement(const std::string &) –> class cppdb::backend::statement *

recyclable(*args, **kwargs)

Overloaded function.

  1. recyclable(self: pyrosetta.rosetta.cppdb.backend.connection) -> bool

C++: cppdb::backend::connection::recyclable() –> bool

  1. recyclable(self: pyrosetta.rosetta.cppdb.backend.connection, value: bool) -> None

C++: cppdb::backend::connection::recyclable(bool) –> void

rollback(self: pyrosetta.rosetta.cppdb.backend.connection) None

C++: cppdb::backend::connection::rollback() –> void

set_driver(self: pyrosetta.rosetta.cppdb.backend.connection, drv: pyrosetta.rosetta.cppdb.ref_ptr_cppdb_backend_loadable_driver_t) None

C++: cppdb::backend::connection::set_driver(class cppdb::ref_ptr<class cppdb::backend::loadable_driver>) –> void

set_pool(self: pyrosetta.rosetta.cppdb.backend.connection, p: pyrosetta.rosetta.cppdb.ref_ptr_cppdb_pool_t) None

C++: cppdb::backend::connection::set_pool(class cppdb::ref_ptr<class cppdb::pool>) –> void

use_count(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::use_count() const –> long

class pyrosetta.rosetta.cppdb.backend.driver

Bases: pyrosetta.rosetta.cppdb.ref_counted

add_ref(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::add_ref() –> long

connect(self: pyrosetta.rosetta.cppdb.backend.driver, cs: pyrosetta.rosetta.cppdb.connection_info) cppdb::backend::connection

C++: cppdb::backend::driver::connect(const class cppdb::connection_info &) –> class cppdb::backend::connection *

del_ref(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::del_ref() –> long

static dispose(p: pyrosetta.rosetta.cppdb.ref_counted) None

C++: cppdb::ref_counted::dispose(class cppdb::ref_counted *) –> void

in_use(self: pyrosetta.rosetta.cppdb.backend.driver) bool

C++: cppdb::backend::driver::in_use() –> bool

open(self: pyrosetta.rosetta.cppdb.backend.driver, cs: pyrosetta.rosetta.cppdb.connection_info) cppdb::backend::connection

C++: cppdb::backend::driver::open(const class cppdb::connection_info &) –> class cppdb::backend::connection *

use_count(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::use_count() const –> long

class pyrosetta.rosetta.cppdb.backend.loadable_driver

Bases: pyrosetta.rosetta.cppdb.backend.driver

add_ref(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::add_ref() –> long

connect(self: pyrosetta.rosetta.cppdb.backend.loadable_driver, cs: pyrosetta.rosetta.cppdb.connection_info) cppdb::backend::connection

C++: cppdb::backend::loadable_driver::connect(const class cppdb::connection_info &) –> class cppdb::backend::connection *

del_ref(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::del_ref() –> long

static dispose(p: pyrosetta.rosetta.cppdb.ref_counted) None

C++: cppdb::ref_counted::dispose(class cppdb::ref_counted *) –> void

in_use(self: pyrosetta.rosetta.cppdb.backend.loadable_driver) bool

C++: cppdb::backend::loadable_driver::in_use() –> bool

open(self: pyrosetta.rosetta.cppdb.backend.driver, cs: pyrosetta.rosetta.cppdb.connection_info) cppdb::backend::connection

C++: cppdb::backend::driver::open(const class cppdb::connection_info &) –> class cppdb::backend::connection *

use_count(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::use_count() const –> long

class pyrosetta.rosetta.cppdb.backend.result

Bases: pyrosetta.rosetta.cppdb.ref_counted

add_ref(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::add_ref() –> long

cols(self: pyrosetta.rosetta.cppdb.backend.result) int

C++: cppdb::backend::result::cols() –> int

column_to_name(self: pyrosetta.rosetta.cppdb.backend.result, : int) str

C++: cppdb::backend::result::column_to_name(int) –> std::string

del_ref(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::del_ref() –> long

static dispose(p: pyrosetta.rosetta.cppdb.ref_counted) None

C++: cppdb::ref_counted::dispose(class cppdb::ref_counted *) –> void

fetch(*args, **kwargs)

Overloaded function.

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool

C++: cppdb::backend::result::fetch(int, short &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool

C++: cppdb::backend::result::fetch(int, unsigned short &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool

C++: cppdb::backend::result::fetch(int, int &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool

C++: cppdb::backend::result::fetch(int, unsigned int &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool

C++: cppdb::backend::result::fetch(int, long &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool

C++: cppdb::backend::result::fetch(int, unsigned long &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool

C++: cppdb::backend::result::fetch(int, long long &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool

C++: cppdb::backend::result::fetch(int, unsigned long long &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: float) -> bool

C++: cppdb::backend::result::fetch(int, float &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: float) -> bool

C++: cppdb::backend::result::fetch(int, double &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: float) -> bool

C++: cppdb::backend::result::fetch(int, long double &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: str) -> bool

C++: cppdb::backend::result::fetch(int, std::string &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: pyrosetta.rosetta.std.ostream) -> bool

C++: cppdb::backend::result::fetch(int, std::ostream &) –> bool

  1. fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: pyrosetta.rosetta.tm) -> bool

C++: cppdb::backend::result::fetch(int, struct tm &) –> bool

has_next(self: pyrosetta.rosetta.cppdb.backend.result) pyrosetta.rosetta.cppdb.backend.result.next_row

C++: cppdb::backend::result::has_next() –> enum cppdb::backend::result::next_row

is_null(self: pyrosetta.rosetta.cppdb.backend.result, col: int) bool

C++: cppdb::backend::result::is_null(int) –> bool

last_row_reached = <next_row.last_row_reached: 0>
name_to_column(self: pyrosetta.rosetta.cppdb.backend.result, : str) int

C++: cppdb::backend::result::name_to_column(const std::string &) –> int

next(self: pyrosetta.rosetta.cppdb.backend.result) bool

C++: cppdb::backend::result::next() –> bool

class next_row

Bases: pybind11_builtins.pybind11_object

Members:

last_row_reached

next_row_exists

next_row_unknown

last_row_reached = <next_row.last_row_reached: 0>
property name
next_row_exists = <next_row.next_row_exists: 1>
next_row_unknown = <next_row.next_row_unknown: 2>
next_row_exists = <next_row.next_row_exists: 1>
next_row_unknown = <next_row.next_row_unknown: 2>
use_count(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::use_count() const –> long

class pyrosetta.rosetta.cppdb.backend.statement

Bases: pyrosetta.rosetta.cppdb.ref_counted

add_ref(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::add_ref() –> long

affected(self: pyrosetta.rosetta.cppdb.backend.statement) int

C++: cppdb::backend::statement::affected() –> unsigned long long

bind(*args, **kwargs)

Overloaded function.

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, : str) -> None

C++: cppdb::backend::statement::bind(int, const std::string &) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, s: str) -> None

C++: cppdb::backend::statement::bind(int, const char *) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, b: str, e: str) -> None

C++: cppdb::backend::statement::bind(int, const char *, const char *) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, : pyrosetta.rosetta.tm) -> None

C++: cppdb::backend::statement::bind(int, const struct tm &) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, : pyrosetta.rosetta.std.istream) -> None

C++: cppdb::backend::statement::bind(int, std::istream &) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None

C++: cppdb::backend::statement::bind(int, int) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None

C++: cppdb::backend::statement::bind(int, unsigned int) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None

C++: cppdb::backend::statement::bind(int, long) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None

C++: cppdb::backend::statement::bind(int, unsigned long) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None

C++: cppdb::backend::statement::bind(int, long long) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None

C++: cppdb::backend::statement::bind(int, unsigned long long) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: float) -> None

C++: cppdb::backend::statement::bind(int, double) –> void

  1. bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: float) -> None

C++: cppdb::backend::statement::bind(int, long double) –> void

bind_null(self: pyrosetta.rosetta.cppdb.backend.statement, col: int) None

C++: cppdb::backend::statement::bind_null(int) –> void

cache(self: pyrosetta.rosetta.cppdb.backend.statement, c: cppdb::backend::statements_cache) None

C++: cppdb::backend::statement::cache(class cppdb::backend::statements_cache *) –> void

del_ref(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::del_ref() –> long

static dispose(selfp: pyrosetta.rosetta.cppdb.backend.statement) None

C++: cppdb::backend::statement::dispose(class cppdb::backend::statement *) –> void

exec(self: pyrosetta.rosetta.cppdb.backend.statement) None

C++: cppdb::backend::statement::exec() –> void

query(self: pyrosetta.rosetta.cppdb.backend.statement) pyrosetta.rosetta.cppdb.backend.result

C++: cppdb::backend::statement::query() –> class cppdb::backend::result *

reset(self: pyrosetta.rosetta.cppdb.backend.statement) None

C++: cppdb::backend::statement::reset() –> void

sequence_last(self: pyrosetta.rosetta.cppdb.backend.statement, sequence: str) int

C++: cppdb::backend::statement::sequence_last(const std::string &) –> long long

sql_query(self: pyrosetta.rosetta.cppdb.backend.statement) str

C++: cppdb::backend::statement::sql_query() –> const std::string &

use_count(self: pyrosetta.rosetta.cppdb.ref_counted) int

C++: cppdb::ref_counted::use_count() const –> long

class pyrosetta.rosetta.cppdb.backend.statements_cache

Bases: pybind11_builtins.pybind11_object

active(self: pyrosetta.rosetta.cppdb.backend.statements_cache) bool

C++: cppdb::backend::statements_cache::active() –> bool

clear(self: pyrosetta.rosetta.cppdb.backend.statements_cache) None

C++: cppdb::backend::statements_cache::clear() –> void

fetch(self: pyrosetta.rosetta.cppdb.backend.statements_cache, q: str) pyrosetta.rosetta.cppdb.ref_ptr_cppdb_backend_statement_t

C++: cppdb::backend::statements_cache::fetch(const std::string &) –> class cppdb::ref_ptr<class cppdb::backend::statement>

put(self: pyrosetta.rosetta.cppdb.backend.statements_cache, p_in: pyrosetta.rosetta.cppdb.backend.statement) None

C++: cppdb::backend::statements_cache::put(class cppdb::backend::statement *) –> void

set_size(self: pyrosetta.rosetta.cppdb.backend.statements_cache, n: int) None

C++: cppdb::backend::statements_cache::set_size(unsigned long) –> void