vallenae.io.TraDatabase

class vallenae.io.TraDatabase(filename, mode='ro', *, compression=False)[source]

IO Wrapper for tradb database file.

Attributes

connected

Check if connected to SQLite database.

filename

Filename of database.

Methods

__init__(filename[, mode, compression])

Open tradb database file.

channel()

Get list of channels.

close()

Close database connection.

columns()

Columns of data table.

connection()

Get SQLite connection object.

create(filename)

Create empty tradb.

fieldinfo()

Read fieldinfo table.

globalinfo()

Read globalinfo table.

iread(*[, channel, time_start, time_stop, ...])

Stream transient data with returned Iterable.

listen([existing, wait, query_filter, raw])

Listen to database changes and return new records.

read(**kwargs)

Read transient data to Pandas DataFrame.

read_continuous_wave(channel[, time_start, ...])

Read transient signal of specified channel to a single, continuous array.

read_wave(trai[, time_axis, raw])

Read transient signal for a given TRAI (transient recorder index).

rows()

Number of rows in data table.

tables()

Get table names.

write(tra)

Write transient data to pridb.

write_fieldinfo(field, info)

Write to fieldinfo table.