AtomSpace::PostgresStorageNode
Inherits AtomSpace::StorageNode < AtomSpace::AtomResolver < AtomSpace::Node < AtomSpace::Atom < Reference < Object
PostgreSQL-based storage implementation with connection pooling
Constructors
new(name : String, connection_string : String, use_pool : Bool = true, pool_size : Int32 = 10)
Instance methods
close
Close connection to storage backend
connected?
Check if connection is open
fetch_atom(handle : Handle) : Atom | Nil
Fetch a single atom by handle
get_stats
Get storage statistics
Load all atoms into AtomSpace
open
Open connection to storage backend
remove_atom(atom : Atom) : Bool
Remove an atom from storage
store_atom(atom : Atom) : Bool
Store a single atom
store_atoms_batch(atoms : Array(Atom)) : Bool
Batch store with transaction support for better performance
Store all atoms from AtomSpace