ddl-manager
Version:
store postgres procedures and triggers in files
55 lines (41 loc) • 1.68 kB
text/typescript
import fs from "fs";
// @see FunctionsMigrator
export const CM_ARRAY_REMOVE_ONE_ELEMENT = fs.readFileSync(
__dirname + "/cm_array_remove_one_element.sql"
).toString();
export const CM_EQUAL_ARRAYS = fs.readFileSync(
__dirname + "/cm_equal_arrays.sql"
).toString();
export const CM_GET_INSERTED_ELEMENTS = fs.readFileSync(
__dirname + "/cm_get_inserted_elements.sql"
).toString();
export const CM_GET_DELETED_ELEMENTS = fs.readFileSync(
__dirname + "/cm_get_deleted_elements.sql"
).toString();
export const CM_ARRAY_APPEND_ORDER_BY_ASC_NULLS_LAST = fs.readFileSync(
__dirname + "/cm_array_append_order_by_asc_nulls_last.sql"
).toString();
export const CM_ARRAY_APPEND_ORDER_BY_ASC_NULLS_FIRST = fs.readFileSync(
__dirname + "/cm_array_append_order_by_asc_nulls_first.sql"
).toString();
export const CM_ARRAY_APPEND_ORDER_BY_DESC_NULLS_LAST = fs.readFileSync(
__dirname + "/cm_array_append_order_by_desc_nulls_last.sql"
).toString();
export const CM_ARRAY_APPEND_ORDER_BY_DESC_NULLS_FIRST = fs.readFileSync(
__dirname + "/cm_array_append_order_by_desc_nulls_first.sql"
).toString();
export const CM_GET_NOT_CHANGED_ELEMENTS = fs.readFileSync(
__dirname + "/cm_get_not_changed_elements.sql"
).toString();
export const CM_ARRAY_REMOVE_ELEMENTS = fs.readFileSync(
__dirname + "/cm_array_remove_elements.sql"
).toString();
export const CM_DISTINCT_ARRAY = fs.readFileSync(
__dirname + "/cm_distinct_array.sql"
).toString();
export const CM_MERGE_JSON = fs.readFileSync(
__dirname + "/cm_merge_json.sql"
).toString();
export const CM_BUILD_ARRAY_FOR = fs.readFileSync(
__dirname + "/cm_build_array_for.sql"
).toString();