blockchain-carbon-accounting icon indicating copy to clipboard operation
blockchain-carbon-accounting copied to clipboard

Add dataLoader scripts for product table

Open brioux opened this issue 2 years ago • 1 comments

Add to dataLoader.ts command to load data into product model added to postgres DB in PR 580.

similar to load_og_assets using importOilAndGasAssets.

Command will use the ProductInterface from lib/oil-and-gas-data/src/product.ts

Additional attribute description...

    type: string;  // product type, e.g., marketed production, venting and flaring, repressuring
    name: string; // product name, e.g., oil, natural gas, NGPL (natural gas production liquids)
    amount: string; 
    unit: string;
    asset_uuid?: string; // optional parameter linking product data to oilAndGasAsset
    country?: string; 
    division_type?: string; // e.g., state
    division_name?: string; 

Source files for oil and gas product data to be used added to data/README.md. Start with U.S. state level product data from EIA

brioux avatar Jul 14 '22 02:07 brioux

Resolved in PR referenced above

brioux avatar Aug 09 '22 17:08 brioux