← Back to Stormify Documentation

TableInfo

class TableInfo<T : Any>

Metadata container for a mapped entity class. Holds the table name, field mappings, primary key information, and pre-built SQL queries for CRUD operations.

Instances are created internally by Stormify and cached per entity class. Use Stormify.getTableInfo to obtain the metadata for a given class.

Properties

Link copied to clipboard

The Kotlin class this metadata describes.

Link copied to clipboard

All mapped fields of this entity, including primary keys and regular columns.

Link copied to clipboard

The single primary key field. Throws if the entity has zero or more than one primary key.

Link copied to clipboard

The primary key fields of this entity. May contain multiple entries for composite keys.

Link copied to clipboard

the database table name this entity maps to

Functions

Link copied to clipboard

Finds a field by its Kotlin property name (case-insensitive), or null if not found.