table_t Derived Type

type, public :: table_t


Components

Type Visibility Attributes Name Initial
character(len=SQR_NAME_LEN), public :: name = ''

Table name

integer, public :: ncols = 0

Number of columns

type(column_t), public, allocatable :: cols(:)

Column definitions

integer, public :: record_size = 0

Fixed record size in bytes

integer, public :: next_id = 1

Next row_id to assign

integer, public :: live_count = 0

Number of non-tombstoned rows

integer, public :: schema_version = 0

On-disk format version of this table

integer, public :: unit = -1

Open unit for <table>.dat, -1 if closed

integer, public :: nindices = 0

Number of secondary indices

type(index_t), public, allocatable :: indices(:)

Secondary indices

integer, public :: blob_unit = -1

Open unit for <table>.blob, -1 if none

integer(kind=int64), public :: blob_next = 1_int64

Next blob append position (1-based)