Skip to content

7.27 lou_getTableInfo

char *lou_getTableInfo (
  const char *table,
  const char *key);

Reads the metadata of a single table, which does not have to be indexed. table is a table name, resolved as described in How tables are found; it must resolve to exactly one table file. Returns the value of the first metadata field named key (compared case-insensitively), or NULL if the table cannot be resolved or has no such field. Unlike the index, this function also sees fields that have been deactivated by writing #- instead of #+. The returned string must be freed with lou_freeTableInfo.