db module¶
API to read data from PySDB database
-
class
apsg.db.
SDB
¶ Bases:
object
PySDB database access class
-
execsql
(sql)¶
-
group
(struct, **kwargs)¶ Method to retrieve data from SDB database to apsg.Group
Parameters: struct – name of structure to retrieve
Keyword Arguments: - sites – name or list of names of sites to retrieve from
- units – name or list of names of units to retrieve from
- tags – tag or list of tags to retrieve
Example
>>> g = db.group('L2', units=['HG', 'MG'], tags='bos')
-
info
(report='basic')¶
-
is_planar
(struct)¶
-
meta
(name, val=None, delete=False)¶
-
sites
(**kwargs)¶ Return list of sites in data. For kwargs see group method.
-
structures
(**kwargs)¶ Return list of structures in data. For kwargs see group method.
Return list of tags in data. For kwargs see group method.
-
units
(**kwargs)¶ Return list of units in data. For kwargs see group method.
-