Creates a new AttributeDao instance.
The GeoPackage database connection.
The attribute table definition describing the table schema.
ProtectedconnThe underlying database connection.
ProtectedtableThe user table schema that this DAO operates on.
Gets the name of the table managed by this DAO.
The table name string.
Counts rows in the table, optionally filtered by a WHERE clause.
Optionalwhere: stringAn optional SQL WHERE clause (without the WHERE keyword).
Bind parameters for placeholders in the WHERE clause.
The count of matching rows.
Deletes rows matching a SQL WHERE clause.
A SQL WHERE clause (without the WHERE keyword).
Bind parameters for placeholders in the WHERE clause.
The number of rows deleted.
Returns the attribute table definition associated with this DAO.
The AttributeTable describing the table's schema and columns.
Inserts a new row into the table.
The row's values are inserted into the corresponding columns. The primary key value from the row is typically omitted to allow AUTOINCREMENT to assign an ID automatically.
The last inserted row ID (the auto-generated primary key).
Queries a single row by its primary key value.
The expected row type. Defaults to Record<string, unknown>.
The primary key value to look up.
The matching row, or undefined if no row with the given ID exists.
Queries all rows from the table.
Returns a lazy iterable iterator that yields rows one at a time, which is memory-efficient for large tables.
The expected row type. Defaults to Record<string, unknown>.
An iterable iterator over all rows in the table.
Queries rows matching a SQL WHERE clause.
Returns a lazy iterable iterator that yields matching rows one at a time.
The expected row type. Defaults to Record<string, unknown>.
A SQL WHERE clause (without the WHERE keyword).
Bind parameters for placeholders in the WHERE clause.
An iterable iterator over the matching rows.
Updates an existing row in the table, identified by its primary key.
All columns present in row.values (except the primary key column itself)
are updated. The primary key column value is used in the WHERE clause to
identify the target row.
The number of rows affected by the update (typically 0 or 1).
Data Access Object for querying and manipulating rows in a GeoPackage attribute (non-spatial) table.
Inherits all generic CRUD methods from UserDao, including
queryForAll,queryWhere,queryById,insert,update,deleteWhere,deleteById, andcount.Example