seisnn.sql.TFRecord

class seisnn.sql.TFRecord(path, count)[source]

Bases: sqlalchemy.orm.decl_api.Base

TFRecord table for sql database.

__init__(path, count)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

Methods

__init__(path, count)

A simple constructor that allows initialization from kwargs.

add_db(session)

Add data into session.

Attributes

count

date

id

metadata

name

network

path

registry

station

tag

add_db(session)[source]

Add data into session.

Parameters

session (sqlalchemy.orm.session.Session) – SQL session.