generator-jhipster
Version:
Spring Boot + Angular/React/Vue in one handy generator
61 lines (60 loc) • 2.49 kB
TypeScript
/**
* Copyright 2013-2026 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import type { ValueOf } from 'type-fest';
import type { Application as LiquibaseApplication, Entity as LiquibaseEntity, Field as LiquibaseField } from '../types.d.ts';
declare const liquibaseFieldTypeByFieldType: {
readonly Integer: "integer";
readonly Long: "bigint";
readonly Float: "${floatType}";
readonly Double: "double";
readonly BigDecimal: "decimal(21,2)";
readonly LocalDate: "date";
readonly ZonedDateTime: "${datetimeType}";
readonly Instant: "${datetimeType}";
readonly Duration: "bigint";
readonly LocalTime: "${timeType}";
readonly UUID: "${uuidType}";
readonly "byte[]": "${blobType}";
readonly String: "varchar";
readonly Boolean: "boolean";
readonly ByteBuffer: "${blobType}";
readonly Blob: "${blobType}";
readonly AnyBlob: "${blobType}";
readonly ImageBlob: "${blobType}";
readonly TextBlob: "${clobType}";
};
export type LiquibaseColumnType = ValueOf<typeof liquibaseFieldTypeByFieldType>;
export declare const liquibaseLoadColumnTypeByFieldType: {
readonly integer: "numeric";
readonly bigint: "numeric";
readonly double: "numeric";
readonly 'decimal(21,2)': "numeric";
readonly '${floatType}': "numeric";
readonly date: "date";
readonly '${datetimeType}': "date";
readonly '${timeType}': "time";
readonly boolean: "boolean";
readonly '${blobType}': "blob";
readonly '${clobType}': "clob";
readonly varchar: "string";
readonly '${uuidType}': "${uuidType}";
};
export type LiquibaseLoadColumnType = ValueOf<typeof liquibaseLoadColumnTypeByFieldType>;
export default function prepareField(application: LiquibaseApplication<LiquibaseEntity>, field: LiquibaseField): LiquibaseField;
export {};