Locale: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
SELECT
SELECT
     id,
     id,
     data_type_code,
     data_type_id,
     data_type_name,
     data_type_name,
     enter_at,
     enter_at,
Line 41: Line 41:
SELECT
SELECT
     id,
     id,
     error_type_code,
     error_type_id,
     error_type_name,
     error_type_name,
     enter_at,
     enter_at,
Line 56: Line 56:
SELECT
SELECT
     id,
     id,
     mime_type_code,
     mime_type_id,
     mime_type_name,
     mime_type_name,
     enter_at,
     enter_at,
Line 74: Line 74:
SELECT
SELECT
     id,
     id,
     table_code,
     table_id,
     table_name,
     table_name,
     data_type_code,
     data_type_id,




Line 93: Line 93:
SELECT
SELECT
     id,
     id,
     form_code,
     form_id,
     form_name,
     form_name,
     data_type_code,
     data_type_id,
     apps_type,
     apps_type,
     base_flag,
     base_flag,
Line 112: Line 112:
SELECT
SELECT
     id,
     id,
     report_code,
     report_id,
     report_name,
     report_name,
     data_type_code,
     data_type_id,




Line 131: Line 131:
SELECT
SELECT
     id,
     id,
     error_code,
     error_id,
     error_name,
     error_name,
     error_type_code,
     error_type_id,




Line 153: Line 153:
SELECT
SELECT
     id,
     id,
     field_code,
     field_id,
     table_code,
     table_id,
     field_order,
     field_order,
     field_name,
     field_name,
Line 170: Line 170:
SELECT
SELECT
     id,
     id,
     label_code,
     label_id,
     form_code,
     form_id,
     label_name,
     label_name,
     label_value,
     label_value,
Line 187: Line 187:
SELECT
SELECT
     id,
     id,
     label_code,
     label_id,
     report_code,
     report_id,
     label_name,
     label_name,
     label_value,
     label_value,
Line 207: Line 207:
SELECT
SELECT
     id,
     id,
     lingo_code,
     lingo_id,
     iso_alpha2_lingo_code,
     iso_alpha2_lingo_id,
     iso_alpha3_lingo_code,
     iso_alpha3_lingo_id,




Line 229: Line 229:
SELECT
SELECT
     id,
     id,
     country_code,
     country_id,
     iso_alpha2_country_code,
     iso_alpha2_country_id,
     iso_alpha3_country_code,
     iso_alpha3_country_id,
     longitude,
     longitude,
     latitude,
     latitude,
Line 252: Line 252:
SELECT
SELECT
     id,
     id,
     notes_code,
     notes_id,
     iso_alpha3_notes_code,
     iso_alpha3_notes_id,
     iso_alpha3_state_code,
     iso_alpha3_state_id,
     iso_numeric_code,
     iso_numeric_id,
     official_flag,
     official_flag,
     decimal_point,
     decimal_point,
Line 277: Line 277:
SELECT
SELECT
     id,
     id,
     translated_code,
     translated_id,
     table_code,
     table_id,
     field_code,
     field_id,
     field_value,
     field_value,
     iso_alpha2_lingo_code,
     iso_alpha2_lingo_id,
     iso_alpha2_state_code,
     iso_alpha2_state_id,
     translated_value,
     translated_value,
     enter_at,
     enter_at,
Line 297: Line 297:
SELECT
SELECT
     id,
     id,
     translated_code,
     translated_id,
     form_code,
     form_id,
     label_code,
     label_id,


     iso_alpha2_lingo_code,
     iso_alpha2_lingo_id,
     iso_alpha2_state_code,
     iso_alpha2_state_id,
     translated_value,
     translated_value,
     enter_at,
     enter_at,
Line 317: Line 317:
SELECT
SELECT
     id,
     id,
     translated_code,
     translated_id,
     report_code,
     report_id,
     label_code,
     label_id,


     iso_alpha2_lingo_code,
     iso_alpha2_lingo_id,
     iso_alpha2_state_code,
     iso_alpha2_state_id,
     translated_value,
     translated_value,
     enter_at,
     enter_at,
Line 337: Line 337:
SELECT
SELECT
     id,
     id,
     translated_code,
     translated_id,
     error_code,
     error_id,




     iso_alpha2_lingo_code,
     iso_alpha2_lingo_id,
     iso_alpha2_state_code,
     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

Data

SELECT
    id,
    data_type_id,
    data_type_name,
    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TM00X00

Error

SELECT
    id,
    error_type_id,
    error_type_name,
    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TM01X00

Mime

SELECT
    id,
    mime_type_id,
    mime_type_name,
    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TM##X00

Objects

Tables

SELECT
    id,
    table_id,
    table_name,
    data_type_id,



    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TM02X00

Forms

SELECT
    id,
    form_id,
    form_name,
    data_type_id,
    apps_type,
    base_flag,
    base_form,
    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TM03X00

Reports

SELECT
    id,
    report_id,
    report_name,
    data_type_id,



    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TM04X00

Errors

SELECT
    id,
    error_id,
    error_name,
    error_type_id,



    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TM05X00

Labels

Fields

SELECT
    id,
    field_id,
    table_id,
    field_order,
    field_name,
    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TM06X00

Forms

SELECT
    id,
    label_id,
    form_id,
    label_name,
    label_value,
    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TM07X00

Reports

SELECT
    id,
    label_id,
    report_id,
    label_name,
    label_value,
    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TM08X00

Localizations

Languages

SELECT
    id,
    lingo_id,
    iso_alpha2_lingo_id,
    iso_alpha3_lingo_id,





    lingo_name,
    enter_at,
    enter_by,
    amend_at,
    amend_by
FROM
    M00TL00X00

Countries

SELECT
    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

Currencies

SELECT
    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

Tables

SELECT
    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

Forms

SELECT
    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

Reports

SELECT
    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

Errors

SELECT
    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

References