'use strict';
import { Column } from 'drizzle-orm';
import { queryIndexes } from '../types/db-types.js';
import { getDbSchema } from '../db-schema.js';
import { commonLowerCaseWords, dbObjectNames } from '../../../base-repo/constants/internal-common-strings.js';
import { jsBasicTypes } from '../../../base-repo/constants/basic-types.js';

var __defProp=Object['defineProperty'],__name=(_0x1b7150,_0x1f2a7d)=>__defProp(_0x1b7150,'name',{'value':_0x1f2a7d,'configurable':!![]});const columnMetadata={'name':commonLowerCaseWords['name']};function isAnyColumn(_0x498093){if(_0x498093 instanceof Column)return !![];return isRecord(_0x498093)&&columnMetadata['name']in _0x498093&&'dataType'in _0x498093&&dbObjectNames['table']in _0x498093;}__name(isAnyColumn,'isAnyColumn');function isValidTableName(_0x421a89){const _0x16db3c=getDbSchema();return _0x421a89 in _0x16db3c;}__name(isValidTableName,'isValidTableName');function hasSymbolKey(_0x8be873,_0x69fddd){return Object['getOwnPropertySymbols'](_0x8be873)['includes'](_0x69fddd);}__name(hasSymbolKey,'hasSymbolKey');function hasConfig(_0x3b5aa4){return isRecord(_0x3b5aa4)&&queryIndexes['config']in _0x3b5aa4;}__name(hasConfig,'hasConfig');function isPgSelection(_0x54262b){return isRecord(_0x54262b);}__name(isPgSelection,'isPgSelection');function isSQLiteSelection(_0x12e1a6){return isRecord(_0x12e1a6);}__name(isSQLiteSelection,'isSQLiteSelection');function isSelectQuery(_0x5cc45f){return typeof _0x5cc45f==='object'&&'where'in _0x5cc45f;}__name(isSelectQuery,'isSelectQuery');function isRecord(_0x5ced0a){return typeof _0x5ced0a===jsBasicTypes['object'];}__name(isRecord,'isRecord');

export { hasConfig, hasSymbolKey, isAnyColumn, isPgSelection, isSQLiteSelection, isSelectQuery, isValidTableName };
