Type Alias OINODbApiParams

OINODbApiParams: {
    excludeFieldPrefix?: string;
    excludeFields?: string[];
    failOnInsertWithoutKey?: boolean;
    failOnOversizedValues?: Boolean;
    failOnUpdateOnAutoinc?: boolean;
    hashidKey?: string;
    hashidLength?: number;
    hashidRandomIds?: boolean;
    tableName: string;
    useDatesAsString?: Boolean;
}

API parameters

Type declaration

  • OptionalexcludeFieldPrefix?: string

    Exclude all fields with this prefix from the API

  • OptionalexcludeFields?: string[]

    Exclude given fields from the API

  • OptionalfailOnInsertWithoutKey?: boolean

    Reject POST-requests without primary key value (can work if DB-side )

  • OptionalfailOnOversizedValues?: Boolean

    Reject values that exceed field max length (behaviour on such is platform dependent)

  • OptionalfailOnUpdateOnAutoinc?: boolean

    Reject PUT-requests that contain values for autoinc-type fields

  • OptionalhashidKey?: string

    Enable hashids for numeric primarykeys by adding a 32 char key

  • OptionalhashidLength?: number

    Set (minimum) length (12-32 chars) of the hashids

  • OptionalhashidRandomIds?: boolean

    Make hashids static per row/table

  • tableName: string

    Name of the database table

  • OptionaluseDatesAsString?: Boolean

    Treat date type fields as just strings and use the native formatting instead of the ISO 8601 format