31 using namespace opencog;
132 static bool is_init =
false;
143 scm_c_use_module(
"opencog persist-sql");
170 const std::string& username,
171 const std::string& auth)
175 throw RuntimeException(TRACE_INFO,
176 "sql-open: Error: Unable to open the database");
182 throw RuntimeException(TRACE_INFO,
183 "sql-open: Error: Unable to connect to the database");
200 throw RuntimeException(TRACE_INFO,
201 "sql-close: Error: Database not open");
218 throw RuntimeException(TRACE_INFO,
219 "sql-load: Error: Database not open");
234 throw RuntimeException(TRACE_INFO,
235 "sql-store: Error: Database not open");
std::vector< Handle > HandleSeq
a list of handles
std::shared_ptr< Atom > AtomPtr
void storeAtom(AtomPtr, bool synchronous=false)
virtual HandleSeq getIncomingSet(Handle) const
void registerBackingStore(BackingStore *)
void set_store(AtomStorage *)
std::shared_ptr< Link > LinkPtr
void unregisterBackingStore(BackingStore *)
virtual void storeAtom(Handle)
virtual LinkPtr getLink(Type, const HandleSeq &) const
AtomTable & get_atomtable(void)
void opencog_persist_sql_init(void)
virtual AtomPtr getAtom(Handle) const
void loadType(AtomTable &, Type)
static void init_in_module(void *)
NodePtr getNode(Type, const char *)
void store(const AtomTable &)
AtomPtr getAtom(const char *, int)
static void * init_in_guile(void *)
SQLBackingStore * _backing
std::shared_ptr< Node > NodePtr
unsigned short Type
type of Atoms, represented as short integer (16 bits)
std::set< Type > _ignored_types
virtual void loadType(AtomTable &, Type)
std::vector< Handle > getIncomingSet(Handle)
static AtomSpace * ss_get_env_as(const char *)
LinkPtr getLink(Type, const std::vector< Handle > &)
void do_open(const std::string &, const std::string &, const std::string &)
virtual NodePtr getNode(Type, const char *) const
SQLPersistSCM(AtomSpace *)