osl logo

The lightweight storage library


[README] [Download] [INSTALL] [Quick Start] [API] [License] [Contact] [man page]
Public Attributes | List of all members
osl_column_description Struct Reference

#include <osl.h>

Public Attributes

uint16_t storage_type
 
uint16_t storage_flags
 
char * name
 
osl_compare_funccompare_function
 
uint32_t data_size
 

Detailed Description

Describes one column of a osl table.

Definition at line 99 of file osl.h.

Member Data Documentation

osl_compare_func* osl_column_description::compare_function

For columns with an associated rbtree, this must point to a function that compares the values of two objects, either a built-in function or a function defined by the application may be supplied. This field is ignored if the column does not have an associated rbtree.

See also
osl_storage_flags, osl_compare_func

Definition at line 118 of file osl.h.

uint32_t osl_column_description::data_size

If the OSL_FIXED_SIZE flag is set for this column, this value describes the number of bytes of each object of this column. It is ignored, if OSL_FIXED_SIZE is not set.

Definition at line 124 of file osl.h.

char* osl_column_description::name

The column name determines the name of the directory where all data for this column will be stored. Its hash is stored in the table header. This field is ignored if the storage type is NO_STORAGE.

Definition at line 109 of file osl.h.

uint16_t osl_column_description::storage_flags

Specifies further properties of the column,

See also
osl_storage_flags.

Definition at line 103 of file osl.h.

uint16_t osl_column_description::storage_type

One of the three possible types of storage,

See also
osl_storage_type.

Definition at line 101 of file osl.h.

Referenced by string_compare().


The documentation for this struct was generated from the following file: