Package rosetta :: Package basic :: Package database :: Module _basic_database_
[hide private]
[frames] | no frames]

Module _basic_database_

Classes [hide private]
  DatabaseSessionLoader
basic/database/DatabaseSessionLoader.hh:37
  DatabaseSessionLoaderAP
  DatabaseSessionLoaderCAP
  DatabaseSessionLoaderCreator
basic/database/DatabaseSessionLoaderCreator.hh:25
  DatabaseSessionLoaderCreatorAP
  DatabaseSessionLoaderCreatorCAP
  DatabaseSessionOptions
basic/database/DatabaseSessionOptions.hh:35
  DatabaseSessionOptionsAP
  DatabaseSessionOptionsCAP
  DatabaseSessionOptionsCreator
basic/database/DatabaseSessionOptionsCreator.hh:25
  DatabaseSessionOptionsCreatorAP
  DatabaseSessionOptionsCreatorCAP
  __CPP_DatabaseSessionLoaderCreator__
  __CPP_DatabaseSessionLoader__
  __CPP_DatabaseSessionOptionsCreator__
  __CPP_DatabaseSessionOptions__
Functions [hide private]
 
check_statement_sanity(...)
check_statement_sanity( (str)sql) -> None : basic/database/sql_utils.hh:115
 
db_partition_from_options(...)
db_partition_from_options( (object)db_mode) -> int : Returns partition identifer if in partitioned database mode, otherwise -1.
 
full_name(...)
full_name( (str)db_file [, (bool)warn=True]) -> str : Full-path database file name
 
get_db_session(...)
get_db_session( (object)db_mode, (object)transaction_mode, (int)chunk_size, (str)db_name [, (str)pq_schema='']) -> object : Aquire a database session using the command line parameters For postgres databases, the pq_schema acts like a namespace in the database
 
insert_or_ignore(...)
insert_or_ignore( (str)table_name, (std_vector_string)column_names, (std_vector_string)values, (object)db_session) -> None : basic/database/sql_utils.hh:112
 
make_compound_statement(...)
make_compound_statement( (str)table_name, (std_vector_string)column_names, (int)row_count) -> str : basic/database/sql_utils.hh:135
 
open(...)
open( (object)db_stream, (str)db_file [, (bool)warn=True]) -> bool : Open a database file on a provided stream
 
parse_database_connection(...)
parse_database_connection( (Tag)tag) -> object : basic/database/sql_utils.hh:139
 
resolve_db_partition(...)
resolve_db_partition( (bool)partition_by_mpi_process [, (int)manual_partition=-1]) -> int : Returns partition identifer from mpi rank if in partitioned database mode, or valid manual partition, otherwise -1.
 
safely_prepare_statement(...)
safely_prepare_statement( (str)statement_string, (object)db_session) -> object : basic/database/sql_utils.hh:97
 
safely_read_from_database(...)
safely_read_from_database( (object)statement) -> object : basic/database/sql_utils.hh:105
 
safely_write_to_database(...)
safely_write_to_database( (object)statement) -> None : basic/database/sql_utils.hh:101
 
set_cache_size(...)
set_cache_size( (object)db_session, (int)cache_size) -> None : set the number of 1kb pages to use for cache
 
table_exists(...)
table_exists( (object)db_session, (str)table_name) -> bool : basic/database/sql_utils.hh:120
 
write_schema_to_database(...)
write_schema_to_database( (str)schema, (object)db_session) -> None : basic/database/sql_utils.hh:130
Variables [hide private]
  __package__ = None
Function Details [hide private]

check_statement_sanity(...)

 

check_statement_sanity( (str)sql) -> None :
    basic/database/sql_utils.hh:115

    C++ signature :
        void check_statement_sanity(std::string)

db_partition_from_options(...)

 

db_partition_from_options( (object)db_mode) -> int :
    Returns partition identifer if in partitioned database mode, otherwise -1.
    

    C++ signature :
        long db_partition_from_options(utility::sql_database::DatabaseMode::e)

full_name(...)

 

full_name( (str)db_file [, (bool)warn=True]) -> str :
    Full-path database file name
    

    C++ signature :
        std::string full_name(std::string [,bool=True])

get_db_session(...)

 

get_db_session( (object)db_mode, (object)transaction_mode, (int)chunk_size, (str)db_name [, (str)pq_schema='']) -> object :
    Aquire a database session using the command line parameters
    For postgres databases, the pq_schema acts like a namespace in the
    database
    

    C++ signature :
        boost::shared_ptr<utility::sql_database::session> get_db_session(utility::sql_database::DatabaseMode::e,utility::sql_database::TransactionMode::e,unsigned long,std::string [,std::string=''])

get_db_session( (object)db_mode, (str)db_name [, (str)pq_schema='']) -> object :
    basic/database/sql_utils.hh:70

    C++ signature :
        boost::shared_ptr<utility::sql_database::session> get_db_session(utility::sql_database::DatabaseMode::e,std::string [,std::string=''])

get_db_session( (str)db_name, (object)transaction_mode, (int)chunk_size [, (str)pq_schema='']) -> object :
    Aquire a database session using the command line parameters
    For postgres databases, the pq_schema acts like a namespace in the
    database
    

    C++ signature :
        boost::shared_ptr<utility::sql_database::session> get_db_session(std::string,utility::sql_database::TransactionMode::e,unsigned long [,std::string=''])

get_db_session( (str)db_name [, (str)pq_schema='']) -> object :
    Aquire a database session using the command line parameters
    For postgres databases, the pq_schema acts like a namespace in the
    database. Transaction type set to standard
    

    C++ signature :
        boost::shared_ptr<utility::sql_database::session> get_db_session(std::string [,std::string=''])

get_db_session() -> object :
    Aquire a database session using the command line options
    transaction type is set to standard
    

    C++ signature :
        boost::shared_ptr<utility::sql_database::session> get_db_session()

insert_or_ignore(...)

 

insert_or_ignore( (str)table_name, (std_vector_string)column_names, (std_vector_string)values, (object)db_session) -> None :
    basic/database/sql_utils.hh:112

    C++ signature :
        void insert_or_ignore(std::string,std::vector<std::string, std::allocator<std::string> >,std::vector<std::string, std::allocator<std::string> >,boost::shared_ptr<utility::sql_database::session>)

make_compound_statement(...)

 

make_compound_statement( (str)table_name, (std_vector_string)column_names, (int)row_count) -> str :
    basic/database/sql_utils.hh:135

    C++ signature :
        std::string make_compound_statement(std::string,std::vector<std::string, std::allocator<std::string> >,unsigned long)

open(...)

 

open( (object)db_stream, (str)db_file [, (bool)warn=True]) -> bool :
    Open a database file on a provided stream
    

    C++ signature :
        bool open(utility::io::izstream {lvalue},std::string [,bool=True])

parse_database_connection(...)

 

parse_database_connection( (Tag)tag) -> object :
    basic/database/sql_utils.hh:139

    C++ signature :
        boost::shared_ptr<utility::sql_database::session> parse_database_connection(boost::shared_ptr<utility::tag::Tag const>)

resolve_db_partition(...)

 

resolve_db_partition( (bool)partition_by_mpi_process [, (int)manual_partition=-1]) -> int :
    Returns partition identifer from mpi rank if in partitioned database mode, or valid manual partition, otherwise -1.
    

    C++ signature :
        long resolve_db_partition(bool [,long=-1])

safely_prepare_statement(...)

 

safely_prepare_statement( (str)statement_string, (object)db_session) -> object :
    basic/database/sql_utils.hh:97

    C++ signature :
        cppdb::statement safely_prepare_statement(std::string,boost::shared_ptr<utility::sql_database::session>)

safely_read_from_database(...)

 

safely_read_from_database( (object)statement) -> object :
    basic/database/sql_utils.hh:105

    C++ signature :
        cppdb::result safely_read_from_database(cppdb::statement {lvalue})

safely_write_to_database(...)

 

safely_write_to_database( (object)statement) -> None :
    basic/database/sql_utils.hh:101

    C++ signature :
        void safely_write_to_database(cppdb::statement {lvalue})

set_cache_size(...)

 

set_cache_size( (object)db_session, (int)cache_size) -> None :
    set the number of 1kb pages to use for cache
    

    C++ signature :
        void set_cache_size(boost::shared_ptr<utility::sql_database::session>,unsigned long)

table_exists(...)

 

table_exists( (object)db_session, (str)table_name) -> bool :
    basic/database/sql_utils.hh:120

    C++ signature :
        bool table_exists(boost::shared_ptr<utility::sql_database::session>,std::string)

write_schema_to_database(...)

 

write_schema_to_database( (str)schema, (object)db_session) -> None :
    basic/database/sql_utils.hh:130

    C++ signature :
        void write_schema_to_database(std::string,boost::shared_ptr<utility::sql_database::session>)