Example #1
0
    def store_raw(self, datasource, gp, timestamp, trend_names, raw_data_rows):
        if len(raw_data_rows) > 0:
            granularity = ensure_granularity(gp)
            raw_datapackage = RawDataPackage(granularity, timestamp, trend_names, raw_data_rows)
            transaction = store_raw(datasource, raw_datapackage)

            transaction.run(self.conn)
Example #2
0
    def store_raw(self, datasource, raw_datapackage):
        transaction = store_raw(datasource, raw_datapackage)

        transaction.run(self.conn)
def store_raw_batch(conn, datasource, raw_datapackage):
    txn = store_raw(datasource, raw_datapackage)
    txn.run(conn)