Locale: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 26: | Line 26: | ||
SELECT | SELECT | ||
id, | id, | ||
data_type_id, | |||
data_type_name, | data_type_name, | ||
enter_at, | enter_at, | ||
Line 41: | Line 41: | ||
SELECT | SELECT | ||
id, | id, | ||
error_type_id, | |||
error_type_name, | error_type_name, | ||
enter_at, | enter_at, | ||
Line 56: | Line 56: | ||
SELECT | SELECT | ||
id, | id, | ||
mime_type_id, | |||
mime_type_name, | mime_type_name, | ||
enter_at, | enter_at, | ||
Line 74: | Line 74: | ||
SELECT | SELECT | ||
id, | id, | ||
table_id, | |||
table_name, | table_name, | ||
data_type_id, | |||
Line 93: | Line 93: | ||
SELECT | SELECT | ||
id, | id, | ||
form_id, | |||
form_name, | form_name, | ||
data_type_id, | |||
apps_type, | apps_type, | ||
base_flag, | base_flag, | ||
Line 112: | Line 112: | ||
SELECT | SELECT | ||
id, | id, | ||
report_id, | |||
report_name, | report_name, | ||
data_type_id, | |||
Line 131: | Line 131: | ||
SELECT | SELECT | ||
id, | id, | ||
error_id, | |||
error_name, | error_name, | ||
error_type_id, | |||
Line 153: | Line 153: | ||
SELECT | SELECT | ||
id, | id, | ||
field_id, | |||
table_id, | |||
field_order, | field_order, | ||
field_name, | field_name, | ||
Line 170: | Line 170: | ||
SELECT | SELECT | ||
id, | id, | ||
label_id, | |||
form_id, | |||
label_name, | label_name, | ||
label_value, | label_value, | ||
Line 187: | Line 187: | ||
SELECT | SELECT | ||
id, | id, | ||
label_id, | |||
report_id, | |||
label_name, | label_name, | ||
label_value, | label_value, | ||
Line 207: | Line 207: | ||
SELECT | SELECT | ||
id, | id, | ||
lingo_id, | |||
iso_alpha2_lingo_id, | |||
iso_alpha3_lingo_id, | |||
Line 229: | Line 229: | ||
SELECT | SELECT | ||
id, | id, | ||
country_id, | |||
iso_alpha2_country_id, | |||
iso_alpha3_country_id, | |||
longitude, | longitude, | ||
latitude, | latitude, | ||
Line 252: | Line 252: | ||
SELECT | SELECT | ||
id, | id, | ||
notes_id, | |||
iso_alpha3_notes_id, | |||
iso_alpha3_state_id, | |||
iso_numeric_id, | |||
official_flag, | official_flag, | ||
decimal_point, | decimal_point, | ||
Line 277: | Line 277: | ||
SELECT | SELECT | ||
id, | id, | ||
translated_id, | |||
table_id, | |||
field_id, | |||
field_value, | field_value, | ||
iso_alpha2_lingo_id, | |||
iso_alpha2_state_id, | |||
translated_value, | translated_value, | ||
enter_at, | enter_at, | ||
Line 297: | Line 297: | ||
SELECT | SELECT | ||
id, | id, | ||
translated_id, | |||
form_id, | |||
label_id, | |||
iso_alpha2_lingo_id, | |||
iso_alpha2_state_id, | |||
translated_value, | translated_value, | ||
enter_at, | enter_at, | ||
Line 317: | Line 317: | ||
SELECT | SELECT | ||
id, | id, | ||
translated_id, | |||
report_id, | |||
label_id, | |||
iso_alpha2_lingo_id, | |||
iso_alpha2_state_id, | |||
translated_value, | translated_value, | ||
enter_at, | enter_at, | ||
Line 337: | Line 337: | ||
SELECT | SELECT | ||
id, | id, | ||
translated_id, | |||
error_id, | |||
iso_alpha2_lingo_id, | |||
iso_alpha2_state_id, | |||
translated_value, | translated_value, | ||
enter_at, | enter_at, |
Revision as of 16:43, 15 May 2020
static char *base36enc(long unsigned int value) {
char base36[36] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
/* log(2**64) / log(36) = 12.38 => max 13 char + '\0' */
char buffer[14];
unsigned int offset = sizeof(buffer);
buffer[--offset] = '\0';
do {
buffer[--offset] = base36[value % 36];
} while (value /= 36);
return strdup(&buffer[offset]); // warning: this must be free-d by the user
}
static long unsigned int base36dec(const char *text) {
return strtoul(text, NULL, 36);
}
Types
DataSELECT
id,
data_type_id,
data_type_name,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TM00X00
|
ErrorSELECT
id,
error_type_id,
error_type_name,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TM01X00
|
MimeSELECT
id,
mime_type_id,
mime_type_name,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TM##X00
|
Objects
TablesSELECT
id,
table_id,
table_name,
data_type_id,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TM02X00
|
FormsSELECT
id,
form_id,
form_name,
data_type_id,
apps_type,
base_flag,
base_form,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TM03X00
|
ReportsSELECT
id,
report_id,
report_name,
data_type_id,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TM04X00
|
ErrorsSELECT
id,
error_id,
error_name,
error_type_id,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TM05X00
|
Labels
FieldsSELECT
id,
field_id,
table_id,
field_order,
field_name,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TM06X00
|
FormsSELECT
id,
label_id,
form_id,
label_name,
label_value,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TM07X00
|
ReportsSELECT
id,
label_id,
report_id,
label_name,
label_value,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TM08X00
|
Localizations
LanguagesSELECT
id,
lingo_id,
iso_alpha2_lingo_id,
iso_alpha3_lingo_id,
lingo_name,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TL00X00
|
CountriesSELECT
id,
country_id,
iso_alpha2_country_id,
iso_alpha3_country_id,
longitude,
latitude,
altitude,
country_name,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TL01X00
|
CurrenciesSELECT
id,
notes_id,
iso_alpha3_notes_id,
iso_alpha3_state_id,
iso_numeric_id,
official_flag,
decimal_point,
notes_symbol,
crypto_flag,
notes_name,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TL02X00
|
Translations
TablesSELECT
id,
translated_id,
table_id,
field_id,
field_value,
iso_alpha2_lingo_id,
iso_alpha2_state_id,
translated_value,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TL03X00
|
FormsSELECT
id,
translated_id,
form_id,
label_id,
iso_alpha2_lingo_id,
iso_alpha2_state_id,
translated_value,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TL04X00
|
ReportsSELECT
id,
translated_id,
report_id,
label_id,
iso_alpha2_lingo_id,
iso_alpha2_state_id,
translated_value,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TL05X00
|
ErrorsSELECT
id,
translated_id,
error_id,
iso_alpha2_lingo_id,
iso_alpha2_state_id,
translated_value,
enter_at,
enter_by,
amend_at,
amend_by
FROM
M00TL06X00
|