SDK Function Levels

From Lianjapedia
Jump to: navigation, search

The API (Applications Programming Interface) provides a library of 'C' functions that are divided into four different levels.

Level 1

Functions available at level 1 are for use with parameter passing between Lianja and your C function. These are used to check the type and number of parameters passed and to convert Lianja data types to C data types. A 'C' UDF which uses the API can have a variable number of parameters passed to it. For example:

store "TUESDAY" to m_string
store 7.0 to m_value
m_result = dbapi_udf ( m_string, m_value)

Level 2

Functions available at level 2 are high-level functions used to execute Lianja commands and evaluate expressions.

Level 3

Functions available at level 3 are low-level functions separated into the following category dependent usage.

TYPE DESCRIPTION
ARRAY Array access
BLOB Operations on binary large objects
CHARACTER Character string functions
CURRENCY Currency functions
DATE Date, datetime and time functions
DBF Database I/O operations
FIELD Field I/O operations
MEMO Memo I/O operations
MEMVAR Memory variable operations

Level 4

Functions available at level 4 are for use with building classes and managing objects.

Level 5

Functions available at level 5 provide a cross platform DAO set of functions that can be used with LianjaSQL.