#define TABLE_KEYS(n) {( sizeof( n ) / sizeof( DB_KEY_DEF ) ), n}
sets the count and the array of a statically declared required_table_tag.
FIELD fields[5]; DB_KEY_DEF keys[3]; TABLE table = { "table_name", FIELDS( fields ), TABLE_KEYS( keys ) };
This creates a static table definition with the name "table_name" and 5 fields with 3 keys. fields[] = { } is usally the declartion. Also DB_KEY_DEF keys[] = { ... }; for keys.
Copyright (c) 2000+. All rights reserved.
|
What do you think about this topic? Send feedback!
|