'use strict';
import { createError } from '../../../fd-toolbox/errors/errors.js';
import { queryIndexes } from '../types/db-types.js';
import { toolboxErrorMessages } from '../../../fd-toolbox/constants/toolbox-error-messages-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x17a740,_0x12d3bf)=>__defProp(_0x17a740,'name',{'value':_0x12d3bf,'configurable':!![]});function getSchemaTableNames(_0x192e49){return Object['values'](_0x192e49)['map'](getTableName);}__name(getSchemaTableNames,'getSchemaTableNames');function quoteSqlIdentifier(_0x230ac4){return '\x22'+_0x230ac4['replaceAll']('\x22','\x22\x22')+'\x22';}__name(quoteSqlIdentifier,'quoteSqlIdentifier');function getTableName(_0x4c9afb){const _0x8a7a93=Object['getOwnPropertySymbols'](_0x4c9afb)['find'](_0x409f15=>_0x409f15['description']===queryIndexes['tableName']);if(!_0x8a7a93)throw createError(toolboxErrorMessages['symbolNotFound']['replace']('{0}',queryIndexes['tableName']));const _0x49408a=Reflect['get'](_0x4c9afb,_0x8a7a93);if(typeof _0x49408a!=='string')throw createError('Invalid\x20table\x20name\x20for\x20symbol\x20'+queryIndexes['tableName']);return _0x49408a;}__name(getTableName,'getTableName');

export { getSchemaTableNames, quoteSqlIdentifier };
