Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::sql::TABLE_KEYS Macro
C++
#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.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!