backend¶
Bindings for cppdb::backend namespace
- class pyrosetta.rosetta.cppdb.backend.connection¶
Bases:
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.
connection_specific_reset(self: pyrosetta.rosetta.cppdb.backend.connection, type: pyrosetta.rosetta.std.type_info) -> None
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.
escape(self: pyrosetta.rosetta.cppdb.backend.connection, : str) -> str
C++: cppdb::backend::connection::escape(const std::string &) –> std::string
escape(self: pyrosetta.rosetta.cppdb.backend.connection, s: str) -> str
C++: cppdb::backend::connection::escape(const char *) –> std::string
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.
once_called(self: pyrosetta.rosetta.cppdb.backend.connection) -> bool
C++: cppdb::backend::connection::once_called() const –> bool
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.
recyclable(self: pyrosetta.rosetta.cppdb.backend.connection) -> bool
C++: cppdb::backend::connection::recyclable() –> bool
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:
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:
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:
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.
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool
C++: cppdb::backend::result::fetch(int, short &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool
C++: cppdb::backend::result::fetch(int, unsigned short &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool
C++: cppdb::backend::result::fetch(int, int &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool
C++: cppdb::backend::result::fetch(int, unsigned int &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool
C++: cppdb::backend::result::fetch(int, long &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool
C++: cppdb::backend::result::fetch(int, unsigned long &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool
C++: cppdb::backend::result::fetch(int, long long &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: int) -> bool
C++: cppdb::backend::result::fetch(int, unsigned long long &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: float) -> bool
C++: cppdb::backend::result::fetch(int, float &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: float) -> bool
C++: cppdb::backend::result::fetch(int, double &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: float) -> bool
C++: cppdb::backend::result::fetch(int, long double &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: str) -> bool
C++: cppdb::backend::result::fetch(int, std::string &) –> bool
fetch(self: pyrosetta.rosetta.cppdb.backend.result, col: int, v: pyrosetta.rosetta.std.ostream) -> bool
C++: cppdb::backend::result::fetch(int, std::ostream &) –> bool
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_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>¶
- property value¶
- 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:
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.
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, : str) -> None
C++: cppdb::backend::statement::bind(int, const std::string &) –> void
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, s: str) -> None
C++: cppdb::backend::statement::bind(int, const char *) –> void
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
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, : pyrosetta.rosetta.tm) -> None
C++: cppdb::backend::statement::bind(int, const struct tm &) –> void
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, : pyrosetta.rosetta.std.istream) -> None
C++: cppdb::backend::statement::bind(int, std::istream &) –> void
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None
C++: cppdb::backend::statement::bind(int, int) –> void
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None
C++: cppdb::backend::statement::bind(int, unsigned int) –> void
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None
C++: cppdb::backend::statement::bind(int, long) –> void
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None
C++: cppdb::backend::statement::bind(int, unsigned long) –> void
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None
C++: cppdb::backend::statement::bind(int, long long) –> void
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: int) -> None
C++: cppdb::backend::statement::bind(int, unsigned long long) –> void
bind(self: pyrosetta.rosetta.cppdb.backend.statement, col: int, v: float) -> None
C++: cppdb::backend::statement::bind(int, double) –> void
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_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