UNPKG

@ngageoint/geopackage

Version:
37 lines (36 loc) 1.51 kB
/** * @module attributes/attributesDao */ import { UserDao } from '../user/userDao'; import { GeoPackage } from '../geoPackage'; import { AttributesTable } from './attributesTable'; import { AttributesRow } from './attributesRow'; import { Contents } from '../core/contents/contents'; import { DBValue } from '../db/dbAdapter'; import { GeoPackageDataType } from '../db/geoPackageDataType'; /** * Attribute DAO for reading attribute user data tables * @class AttributesDao * @extends UserDao * @param {module:geoPackage~GeoPackage} geoPackage geopackage object * @param {module:attributes/attributesTable~AttributeTable} table attribute table */ export declare class AttributesDao<T extends AttributesRow> extends UserDao<AttributesRow> { /** * Contents of this AttributeDao * @member {module:core/contents~Contents} */ contents: Contents; constructor(geoPackage: GeoPackage, table: AttributesTable); get table(): AttributesTable; /** * Create a new attribute row with the column types and values * @param {Array} columnTypes column types * @param {module:dao/columnValues~ColumnValues[]} values values * @return {module:attributes/attributesRow~AttributeRow} attribute row */ newRow(columnTypes?: { [key: string]: GeoPackageDataType; }, values?: Record<string, DBValue>): AttributesRow; static readTable(geoPackage: GeoPackage, tableName: string): AttributesDao<AttributesRow>; }