Skip to main content

address_metadata_for_company

Schema: lib

Description

This function retrieves address metadata for all addresses tied to a company. It can also filter the results by a specific contract type.

Usage

Signature

lib.address_metadata_for_company(company text, contract_type text)

Parameters

NameTypeDescription
companytextThe name of the company to retrieve address metadata for.
contract_typetext(Optional) The type of contract to filter the results by. If left out, all address metadata for the company will be returned

Results

The function returns a table with the following columns:

ColumnTypeDescription
accounttextThe address that the metadata is associated with.
aliastextThe alias (friendly name) associated with the address.
contextjsonbAdditional context associated with the address.
created_attimestampThe timestamp when the address metadata was created.
updated_attimestampThe timestamp when the address metadata was last updated.

Examples

Retrieve all address metadata for the company Circle
select * from lib.address_metadata_for_company('Circle');