generator-begcode
Version:
Spring Boot + Angular/React/Vue in one handy generator
72 lines (71 loc) • 1.84 kB
TypeScript
export declare const CommonDBTypes: {
STRING: string;
INTEGER: string;
LONG: string;
BIG_DECIMAL: string;
FLOAT: string;
DOUBLE: string;
UUID: string;
ENUM: string;
BOOLEAN: string;
LOCAL_DATE: string;
ZONED_DATE_TIME: string;
BLOB: string;
ANY_BLOB: string;
IMAGE_BLOB: string;
TEXT_BLOB: string;
INSTANT: string;
DURATION: string;
BYTES: string;
BYTE_BUFFER: string;
};
export declare const RelationalOnlyDBTypes: {
BYTES: string;
BYTE_BUFFER: string;
};
export declare const BlobTypes: {
IMAGE: string;
ANY: string;
TEXT: string;
};
declare const _default: {
CommonDBTypes: {
STRING: string;
INTEGER: string;
LONG: string;
BIG_DECIMAL: string;
FLOAT: string;
DOUBLE: string;
UUID: string;
ENUM: string;
BOOLEAN: string;
LOCAL_DATE: string;
ZONED_DATE_TIME: string;
BLOB: string;
ANY_BLOB: string;
IMAGE_BLOB: string;
TEXT_BLOB: string;
INSTANT: string;
DURATION: string;
BYTES: string;
BYTE_BUFFER: string;
};
RelationalOnlyDBTypes: {
BYTES: string;
BYTE_BUFFER: string;
};
isCommonDBType: typeof isCommonDBType;
hasValidation: typeof hasValidation;
getIsType: typeof getIsType;
isBlobType: typeof isBlobType;
BlobTypes: {
IMAGE: string;
ANY: string;
TEXT: string;
};
};
export default _default;
export declare function isCommonDBType(type: any): boolean;
export declare function isBlobType(type?: any): boolean;
export declare function hasValidation(type: any, validation: any, isAnEnum?: boolean): boolean;
export declare function getIsType(databaseType?: string, callback?: any): (type: any) => boolean;