@dbml/core 10.3.0 → 10.4.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/export/DbmlExporter.cjs +2 -2
- package/lib/export/DbmlExporter.mjs +7 -5
- package/lib/export/MysqlExporter.cjs +1 -1
- package/lib/export/MysqlExporter.mjs +4 -4
- package/lib/export/OracleExporter.cjs +1 -1
- package/lib/export/OracleExporter.mjs +5 -5
- package/lib/export/PostgresExporter.cjs +1 -1
- package/lib/export/PostgresExporter.mjs +4 -4
- package/lib/export/SqlServerExporter.cjs +1 -1
- package/lib/export/SqlServerExporter.mjs +4 -4
- package/lib/model_structure/database.cjs +1 -1
- package/lib/model_structure/database.mjs +3 -3
- package/lib/model_structure/dep.cjs +1 -1
- package/lib/model_structure/dep.mjs +2 -2
- package/lib/model_structure/enum.cjs +1 -1
- package/lib/model_structure/enum.mjs +2 -2
- package/lib/model_structure/enumValue.cjs +1 -1
- package/lib/model_structure/enumValue.mjs +2 -2
- package/lib/model_structure/field.cjs +1 -1
- package/lib/model_structure/field.mjs +2 -2
- package/lib/model_structure/ref.cjs +1 -1
- package/lib/model_structure/ref.mjs +3 -2
- package/lib/model_structure/schema.cjs +1 -1
- package/lib/model_structure/schema.mjs +2 -2
- package/lib/model_structure/table.cjs +1 -1
- package/lib/model_structure/table.mjs +3 -3
- package/lib/model_structure/tableGroup.cjs +1 -1
- package/lib/model_structure/tableGroup.mjs +2 -2
- package/lib/model_structure/tablePartial.cjs +1 -1
- package/lib/model_structure/tablePartial.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_DataView.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_DataView.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Hash.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Hash.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_ListCache.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Map.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Map.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_MapCache.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Promise.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Promise.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Set.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Set.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_SetCache.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Stack.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Stack.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Symbol.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_Uint8Array.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_WeakMap.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayAggregator.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayAggregator.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayEach.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayFilter.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayLikeKeys.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayMap.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayPush.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arrayReduce.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arrayReduce.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_arraySome.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiToArray.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiToArray.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_assocIndexOf.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAggregator.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseAggregator.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseAssignValue.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseEach.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseEach.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFlatten.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseFlatten.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseFor.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseForOwn.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseForOwn.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseGet.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseGetAllKeys.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseGetTag.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHasIn.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsArguments.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsEqual.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsEqualDeep.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMatch.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsMatch.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsNative.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIsTypedArray.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIteratee.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseIteratee.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseKeys.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatches.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseMatches.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMatchesProperty.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseMatchesProperty.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseNth.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseNth.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseProperty.mjs +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePropertyDeep.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_basePropertyDeep.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseReduce.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseReduce.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSlice.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseSlice.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseTimes.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseToString.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_baseTrim.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.mjs +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castFunction.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_castFunction.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castPath.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_castPath.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_castSlice.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_castSlice.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_copyArray.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_coreJsData.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createAggregator.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_createAggregator.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseEach.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_createBaseEach.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_createBaseFor.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createCaseFirst.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_createCaseFirst.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_defineProperty.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_equalArrays.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_equalByTag.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_equalObjects.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_freeGlobal.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getAllKeys.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getMapData.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getMatchData.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getMatchData.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getNative.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getNative.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getRawTag.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getSymbols.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getTag.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_getTag.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getValue.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasPath.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hasPath.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hasUnicode.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hashClear.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hashDelete.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hashGet.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hashHas.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_hashSet.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isFlattenable.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isFlattenable.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isIndex.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKey.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isKey.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isKeyable.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isMasked.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isPrototype.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isStrictComparable.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_isStrictComparable.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_listCacheDelete.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_listCacheGet.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_listCacheHas.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_listCacheSet.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapCacheClear.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapCacheDelete.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapCacheGet.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapCacheHas.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapCacheSet.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_mapToArray.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_matchesStrictComparable.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_matchesStrictComparable.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_memoizeCapped.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_nativeCreate.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_nativeKeys.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_nodeUtil.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.mjs +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_overArg.mjs +11 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_root.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_root.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_setCacheAdd.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_setToArray.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_stackClear.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_stackDelete.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_stackSet.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToArray.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_stringToArray.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_stringToPath.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toKey.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_toKey.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_toSource.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_toSource.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_trimmedEndIndex.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeToArray.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/_unicodeToArray.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/capitalize.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/capitalize.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/concat.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/concat.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/eq.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/first.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/first.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/flatten.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flattenDeep.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/flattenDeep.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flattenDepth.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/flattenDepth.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/forEach.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/forEach.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/get.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/get.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/groupBy.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/groupBy.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/hasIn.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/hasIn.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/head.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/head.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/identity.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArguments.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isArguments.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArray.mjs +8 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isArrayLike.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isBuffer.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isEmpty.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isFunction.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isFunction.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isLength.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isLength.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNil.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isNil.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObject.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isObject.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isSymbol.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/isTypedArray.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keys.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/keys.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/last.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/lodash.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/lodash.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/memoize.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/memoize.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/nth.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/nth.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/property.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/property.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/reduce.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/reduce.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubArray.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.cjs +1 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.mjs +9 -0
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toFinite.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/toFinite.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toInteger.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/toInteger.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/toNumber.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toString.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/toString.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/upperFirst.cjs +1 -0
- package/lib/node_modules/{lodash-es → .pnpm/lodash-es@4.18.1/node_modules/lodash-es}/upperFirst.mjs +2 -2
- package/lib/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.cjs +20 -0
- package/lib/{packages/dbml-core → node_modules/.pnpm/lodash@4.18.1}/node_modules/lodash/lodash.mjs +2 -2
- package/lib/node_modules/{parsimmon → .pnpm/parsimmon@1.18.1/node_modules/parsimmon}/build/parsimmon.umd.min.cjs +1 -1
- package/lib/node_modules/{parsimmon → .pnpm/parsimmon@1.18.1/node_modules/parsimmon}/build/parsimmon.umd.min.mjs +2 -2
- package/lib/node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs +1 -0
- package/lib/node_modules/{pluralize → .pnpm/pluralize@8.0.0/node_modules/pluralize}/pluralize.mjs +2 -2
- package/lib/package.json.cjs +1 -0
- package/lib/{packages/dbml-core/package.json.mjs → package.json.mjs} +1 -1
- package/lib/parse/ANTLR/ASTGeneration/helpers.cjs +1 -1
- package/lib/parse/ANTLR/ASTGeneration/helpers.mjs +2 -2
- package/lib/parse/ANTLR/ASTGeneration/mssql/MssqlASTGen.cjs +1 -1
- package/lib/parse/ANTLR/ASTGeneration/mssql/MssqlASTGen.mjs +6 -6
- package/lib/parse/ANTLR/ASTGeneration/mysql/MySQLASTGen.cjs +1 -1
- package/lib/parse/ANTLR/ASTGeneration/mysql/MySQLASTGen.mjs +4 -4
- package/lib/parse/ANTLR/ASTGeneration/oraclesql/OracleSQLASTGen.cjs +1 -1
- package/lib/parse/ANTLR/ASTGeneration/oraclesql/OracleSQLASTGen.mjs +3 -3
- package/lib/parse/ANTLR/ASTGeneration/postgres/PostgresASTGen.cjs +1 -1
- package/lib/parse/ANTLR/ASTGeneration/postgres/PostgresASTGen.mjs +4 -4
- package/lib/parse/ANTLR/ASTGeneration/snowflake/SnowflakeASTGen.cjs +1 -1
- package/lib/parse/ANTLR/ASTGeneration/snowflake/SnowflakeASTGen.mjs +4 -4
- package/lib/parse/deprecated/dbmlParser.cjs +1 -1
- package/lib/parse/deprecated/dbmlParser.mjs +2 -2
- package/lib/parse/deprecated/mssql/base_parsers.cjs +1 -1
- package/lib/parse/deprecated/mssql/base_parsers.mjs +1 -1
- package/lib/parse/deprecated/mssql/column_definition/actions.cjs +1 -1
- package/lib/parse/deprecated/mssql/column_definition/actions.mjs +2 -2
- package/lib/parse/deprecated/mssql/column_definition/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/column_definition/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/constraint_definition/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/constraint_definition/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/expression.cjs +1 -1
- package/lib/parse/deprecated/mssql/expression.mjs +3 -3
- package/lib/parse/deprecated/mssql/fk_definition/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/fk_definition/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/index_definition/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/index_definition/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/keyword_utils.cjs +1 -1
- package/lib/parse/deprecated/mssql/keyword_utils.mjs +1 -1
- package/lib/parse/deprecated/mssql/statements/actions.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/actions.mjs +2 -2
- package/lib/parse/deprecated/mssql/statements/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/add/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/add/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/alter_table/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/comments/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/comments/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/create_index/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/create_index/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/create_table/index.cjs +1 -1
- package/lib/parse/deprecated/mssql/statements/statement_types/create_table/index.mjs +1 -1
- package/lib/parse/deprecated/mssql/utils.cjs +1 -1
- package/lib/parse/deprecated/mssql/utils.mjs +3 -3
- package/lib/parse/deprecated/mssql/whitespaces.cjs +1 -1
- package/lib/parse/deprecated/mssql/whitespaces.mjs +1 -1
- package/lib/parse/deprecated/mysqlParser.cjs +1 -1
- package/lib/parse/deprecated/mysqlParser.mjs +2 -2
- package/lib/parse/deprecated/postgresParser.cjs +1 -1
- package/lib/parse/deprecated/postgresParser.mjs +2 -2
- package/lib/parse/deprecated/schemarbParser.cjs +1 -1
- package/lib/parse/deprecated/schemarbParser.mjs +2 -2
- package/lib/utils/version.cjs +1 -1
- package/lib/utils/version.mjs +1 -1
- package/package.json +3 -3
- package/types/model_structure/ref.d.ts +7 -1
- package/types/tsconfig.tsbuildinfo +1 -0
- package/lib/node_modules/lodash-es/_DataView.cjs +0 -1
- package/lib/node_modules/lodash-es/_Hash.cjs +0 -1
- package/lib/node_modules/lodash-es/_ListCache.cjs +0 -1
- package/lib/node_modules/lodash-es/_Map.cjs +0 -1
- package/lib/node_modules/lodash-es/_MapCache.cjs +0 -1
- package/lib/node_modules/lodash-es/_Promise.cjs +0 -1
- package/lib/node_modules/lodash-es/_Set.cjs +0 -1
- package/lib/node_modules/lodash-es/_SetCache.cjs +0 -1
- package/lib/node_modules/lodash-es/_Stack.cjs +0 -1
- package/lib/node_modules/lodash-es/_Symbol.cjs +0 -1
- package/lib/node_modules/lodash-es/_Uint8Array.cjs +0 -1
- package/lib/node_modules/lodash-es/_WeakMap.cjs +0 -1
- package/lib/node_modules/lodash-es/_arrayAggregator.cjs +0 -1
- package/lib/node_modules/lodash-es/_arrayEach.cjs +0 -1
- package/lib/node_modules/lodash-es/_arrayFilter.cjs +0 -1
- package/lib/node_modules/lodash-es/_arrayLikeKeys.cjs +0 -1
- package/lib/node_modules/lodash-es/_arrayMap.cjs +0 -1
- package/lib/node_modules/lodash-es/_arrayPush.cjs +0 -1
- package/lib/node_modules/lodash-es/_arrayReduce.cjs +0 -1
- package/lib/node_modules/lodash-es/_arraySome.cjs +0 -1
- package/lib/node_modules/lodash-es/_asciiToArray.cjs +0 -1
- package/lib/node_modules/lodash-es/_asciiToArray.mjs +0 -9
- package/lib/node_modules/lodash-es/_assocIndexOf.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseAggregator.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseAssignValue.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseEach.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseFlatten.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseFor.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseForOwn.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseGet.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseGetAllKeys.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseGetTag.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseHasIn.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseHasIn.mjs +0 -9
- package/lib/node_modules/lodash-es/_baseIsArguments.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseIsEqual.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseIsEqualDeep.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseIsMatch.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseIsNative.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseIsTypedArray.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseIteratee.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseKeys.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseMatches.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseMatchesProperty.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseNth.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseProperty.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseProperty.mjs +0 -11
- package/lib/node_modules/lodash-es/_basePropertyDeep.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseReduce.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseSlice.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseTimes.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseToString.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseTrim.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseUnary.cjs +0 -1
- package/lib/node_modules/lodash-es/_baseUnary.mjs +0 -11
- package/lib/node_modules/lodash-es/_cacheHas.cjs +0 -1
- package/lib/node_modules/lodash-es/_cacheHas.mjs +0 -9
- package/lib/node_modules/lodash-es/_castFunction.cjs +0 -1
- package/lib/node_modules/lodash-es/_castPath.cjs +0 -1
- package/lib/node_modules/lodash-es/_castSlice.cjs +0 -1
- package/lib/node_modules/lodash-es/_copyArray.cjs +0 -1
- package/lib/node_modules/lodash-es/_coreJsData.cjs +0 -1
- package/lib/node_modules/lodash-es/_createAggregator.cjs +0 -1
- package/lib/node_modules/lodash-es/_createBaseEach.cjs +0 -1
- package/lib/node_modules/lodash-es/_createBaseFor.cjs +0 -1
- package/lib/node_modules/lodash-es/_createCaseFirst.cjs +0 -1
- package/lib/node_modules/lodash-es/_defineProperty.cjs +0 -1
- package/lib/node_modules/lodash-es/_equalArrays.cjs +0 -1
- package/lib/node_modules/lodash-es/_equalByTag.cjs +0 -1
- package/lib/node_modules/lodash-es/_equalObjects.cjs +0 -1
- package/lib/node_modules/lodash-es/_freeGlobal.cjs +0 -1
- package/lib/node_modules/lodash-es/_getAllKeys.cjs +0 -1
- package/lib/node_modules/lodash-es/_getMapData.cjs +0 -1
- package/lib/node_modules/lodash-es/_getMatchData.cjs +0 -1
- package/lib/node_modules/lodash-es/_getNative.cjs +0 -1
- package/lib/node_modules/lodash-es/_getRawTag.cjs +0 -1
- package/lib/node_modules/lodash-es/_getSymbols.cjs +0 -1
- package/lib/node_modules/lodash-es/_getTag.cjs +0 -1
- package/lib/node_modules/lodash-es/_getValue.cjs +0 -1
- package/lib/node_modules/lodash-es/_getValue.mjs +0 -9
- package/lib/node_modules/lodash-es/_hasPath.cjs +0 -1
- package/lib/node_modules/lodash-es/_hasUnicode.cjs +0 -1
- package/lib/node_modules/lodash-es/_hashClear.cjs +0 -1
- package/lib/node_modules/lodash-es/_hashDelete.cjs +0 -1
- package/lib/node_modules/lodash-es/_hashGet.cjs +0 -1
- package/lib/node_modules/lodash-es/_hashHas.cjs +0 -1
- package/lib/node_modules/lodash-es/_hashSet.cjs +0 -1
- package/lib/node_modules/lodash-es/_isFlattenable.cjs +0 -1
- package/lib/node_modules/lodash-es/_isIndex.cjs +0 -1
- package/lib/node_modules/lodash-es/_isKey.cjs +0 -1
- package/lib/node_modules/lodash-es/_isKeyable.cjs +0 -1
- package/lib/node_modules/lodash-es/_isMasked.cjs +0 -1
- package/lib/node_modules/lodash-es/_isPrototype.cjs +0 -1
- package/lib/node_modules/lodash-es/_isStrictComparable.cjs +0 -1
- package/lib/node_modules/lodash-es/_listCacheClear.cjs +0 -1
- package/lib/node_modules/lodash-es/_listCacheClear.mjs +0 -9
- package/lib/node_modules/lodash-es/_listCacheDelete.cjs +0 -1
- package/lib/node_modules/lodash-es/_listCacheGet.cjs +0 -1
- package/lib/node_modules/lodash-es/_listCacheHas.cjs +0 -1
- package/lib/node_modules/lodash-es/_listCacheSet.cjs +0 -1
- package/lib/node_modules/lodash-es/_mapCacheClear.cjs +0 -1
- package/lib/node_modules/lodash-es/_mapCacheDelete.cjs +0 -1
- package/lib/node_modules/lodash-es/_mapCacheGet.cjs +0 -1
- package/lib/node_modules/lodash-es/_mapCacheHas.cjs +0 -1
- package/lib/node_modules/lodash-es/_mapCacheSet.cjs +0 -1
- package/lib/node_modules/lodash-es/_mapToArray.cjs +0 -1
- package/lib/node_modules/lodash-es/_matchesStrictComparable.cjs +0 -1
- package/lib/node_modules/lodash-es/_memoizeCapped.cjs +0 -1
- package/lib/node_modules/lodash-es/_nativeCreate.cjs +0 -1
- package/lib/node_modules/lodash-es/_nativeKeys.cjs +0 -1
- package/lib/node_modules/lodash-es/_nodeUtil.cjs +0 -1
- package/lib/node_modules/lodash-es/_objectToString.cjs +0 -1
- package/lib/node_modules/lodash-es/_objectToString.mjs +0 -11
- package/lib/node_modules/lodash-es/_overArg.cjs +0 -1
- package/lib/node_modules/lodash-es/_overArg.mjs +0 -11
- package/lib/node_modules/lodash-es/_root.cjs +0 -1
- package/lib/node_modules/lodash-es/_setCacheAdd.cjs +0 -1
- package/lib/node_modules/lodash-es/_setCacheHas.cjs +0 -1
- package/lib/node_modules/lodash-es/_setCacheHas.mjs +0 -9
- package/lib/node_modules/lodash-es/_setToArray.cjs +0 -1
- package/lib/node_modules/lodash-es/_stackClear.cjs +0 -1
- package/lib/node_modules/lodash-es/_stackDelete.cjs +0 -1
- package/lib/node_modules/lodash-es/_stackGet.cjs +0 -1
- package/lib/node_modules/lodash-es/_stackGet.mjs +0 -9
- package/lib/node_modules/lodash-es/_stackHas.cjs +0 -1
- package/lib/node_modules/lodash-es/_stackHas.mjs +0 -9
- package/lib/node_modules/lodash-es/_stackSet.cjs +0 -1
- package/lib/node_modules/lodash-es/_stringToArray.cjs +0 -1
- package/lib/node_modules/lodash-es/_stringToPath.cjs +0 -1
- package/lib/node_modules/lodash-es/_toKey.cjs +0 -1
- package/lib/node_modules/lodash-es/_toSource.cjs +0 -1
- package/lib/node_modules/lodash-es/_trimmedEndIndex.cjs +0 -1
- package/lib/node_modules/lodash-es/_unicodeToArray.cjs +0 -1
- package/lib/node_modules/lodash-es/capitalize.cjs +0 -1
- package/lib/node_modules/lodash-es/concat.cjs +0 -1
- package/lib/node_modules/lodash-es/eq.cjs +0 -1
- package/lib/node_modules/lodash-es/eq.mjs +0 -9
- package/lib/node_modules/lodash-es/first.cjs +0 -1
- package/lib/node_modules/lodash-es/first.mjs +0 -9
- package/lib/node_modules/lodash-es/flatten.cjs +0 -1
- package/lib/node_modules/lodash-es/flattenDeep.cjs +0 -1
- package/lib/node_modules/lodash-es/flattenDepth.cjs +0 -1
- package/lib/node_modules/lodash-es/forEach.cjs +0 -1
- package/lib/node_modules/lodash-es/get.cjs +0 -1
- package/lib/node_modules/lodash-es/groupBy.cjs +0 -1
- package/lib/node_modules/lodash-es/hasIn.cjs +0 -1
- package/lib/node_modules/lodash-es/head.cjs +0 -1
- package/lib/node_modules/lodash-es/head.mjs +0 -9
- package/lib/node_modules/lodash-es/identity.cjs +0 -1
- package/lib/node_modules/lodash-es/identity.mjs +0 -9
- package/lib/node_modules/lodash-es/isArguments.cjs +0 -1
- package/lib/node_modules/lodash-es/isArray.cjs +0 -1
- package/lib/node_modules/lodash-es/isArray.mjs +0 -8
- package/lib/node_modules/lodash-es/isArrayLike.cjs +0 -1
- package/lib/node_modules/lodash-es/isBuffer.cjs +0 -1
- package/lib/node_modules/lodash-es/isEmpty.cjs +0 -1
- package/lib/node_modules/lodash-es/isFunction.cjs +0 -1
- package/lib/node_modules/lodash-es/isLength.cjs +0 -1
- package/lib/node_modules/lodash-es/isNil.cjs +0 -1
- package/lib/node_modules/lodash-es/isNil.mjs +0 -9
- package/lib/node_modules/lodash-es/isObject.cjs +0 -1
- package/lib/node_modules/lodash-es/isObjectLike.cjs +0 -1
- package/lib/node_modules/lodash-es/isObjectLike.mjs +0 -9
- package/lib/node_modules/lodash-es/isSymbol.cjs +0 -1
- package/lib/node_modules/lodash-es/isTypedArray.cjs +0 -1
- package/lib/node_modules/lodash-es/keys.cjs +0 -1
- package/lib/node_modules/lodash-es/last.cjs +0 -1
- package/lib/node_modules/lodash-es/lodash.cjs +0 -1
- package/lib/node_modules/lodash-es/memoize.cjs +0 -1
- package/lib/node_modules/lodash-es/nth.cjs +0 -1
- package/lib/node_modules/lodash-es/property.cjs +0 -1
- package/lib/node_modules/lodash-es/reduce.cjs +0 -1
- package/lib/node_modules/lodash-es/stubArray.cjs +0 -1
- package/lib/node_modules/lodash-es/stubArray.mjs +0 -9
- package/lib/node_modules/lodash-es/stubFalse.cjs +0 -1
- package/lib/node_modules/lodash-es/stubFalse.mjs +0 -9
- package/lib/node_modules/lodash-es/toFinite.cjs +0 -1
- package/lib/node_modules/lodash-es/toInteger.cjs +0 -1
- package/lib/node_modules/lodash-es/toNumber.cjs +0 -1
- package/lib/node_modules/lodash-es/toString.cjs +0 -1
- package/lib/node_modules/lodash-es/upperFirst.cjs +0 -1
- package/lib/node_modules/pluralize/pluralize.cjs +0 -1
- package/lib/packages/dbml-core/node_modules/lodash/lodash.cjs +0 -20
- package/lib/packages/dbml-core/package.json.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
2
|
+
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
3
3
|
import { KeywordAlter as r, KeywordAlterColumn as i, KeywordCheck as a, KeywordDisable as o, KeywordDrop as s, KeywordEnable as c, KeywordRebuild as l, KeywordSet as u, KeywordSwitch as d, KeywordTable as f, KeywordWith as p, init_keyword_parsers as m } from "../../../keyword_parsers.mjs";
|
|
4
4
|
import { init_base_parsers as h, pDotDelimitedName as g, pIgnore as _ } from "../../../base_parsers.mjs";
|
|
5
5
|
import { handleAlterTableResult as v, init_actions as y } from "./actions.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("./actions.cjs");var a,o,s,c=e.__esmMin((()=>{a=e.__toESM(t.default),n.init_keyword_parsers(),i.init_actions(),r.init_utils(),o=a.default.createLanguage({StartComment:()=>a.default.seq(n.KeywordExec,n.KeywordSP_ADDEXTENDEDPROPERTY),EndComment:()=>a.default.seq(n.Semicolon.atMost(1),n.KeywordGo),StartString:()=>a.default.alt(n.SingleQuote,a.default.string(`N'`)),ManyDoubleSingleQuote:()=>a.default.string(`''`),NoSingleQuote:()=>a.default.regex(/[^']/),StringType:e=>a.default.alt(e.NoSingleQuote,e.ManyDoubleSingleQuote).atLeast(1).map(e=>e.join(``)),NVarchar:e=>e.StartString.then(e.StringType).skip(n.SingleQuote),NameOption:e=>n.KeywordAtName.skip(n.Equal).then(e.NVarchar),ValueOption:e=>n.KeywordAtValue.skip(n.Equal).then(e.NVarchar),Level0Type:e=>n.KeywordAtLevel0Type.skip(n.Equal).then(e.NVarchar),Level0Name:e=>n.KeywordAtLevel0Name.skip(n.Equal).then(e.NVarchar),Level1Type:e=>n.KeywordAtLevel1Type.skip(n.Equal).then(e.NVarchar),Level1Name:e=>n.KeywordAtLevel1Name.skip(n.Equal).then(e.NVarchar),Level2Type:e=>n.KeywordAtLevel2Type.skip(n.Equal).then(e.NVarchar),Level2Name:e=>n.KeywordAtLevel2Name.skip(n.Equal).then(e.NVarchar),Level0Stmt:e=>a.default.seqObj([`type`,e.Level0Type],n.Comma,[`name`,e.Level0Name]),Level1Stmt:e=>a.default.seqObj([`type`,e.Level1Type],n.Comma,[`name`,e.Level1Name]),Level2Stmt:e=>a.default.seqObj([`type`,e.Level2Type],n.Comma,[`name`,e.Level2Name]),Level0Wrapper:e=>a.default.alt(a.default.seq(e.Level0Stmt.skip(n.Comma),e.Level1Wrapper),e.Level0Stmt).map(e=>Array.isArray(e)?[e[0],...e[1]]:[e]).atMost(1).map(e=>e.length===1?e[0]:e),Level1Wrapper:e=>a.default.alt(a.default.seq(e.Level1Stmt.skip(n.Comma),e.Level2Stmt),e.Level1Stmt).map(e=>Array.isArray(e)?e:[e]),CommentSyntax:e=>a.default.seqObj(e.StartComment,[`name`,e.NameOption],n.Comma,[`note`,e.ValueOption],n.Comma,[`level`,e.Level0Wrapper],e.EndComment).map(i.handleComment).thru(r.makeNode())}),s=o.CommentSyntax}));c(),exports.default=s,Object.defineProperty(exports,"init_comments",{enumerable:!0,get:function(){return c}});
|
|
1
|
+
const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("./actions.cjs");var a,o,s,c=e.__esmMin((()=>{a=e.__toESM(t.default),n.init_keyword_parsers(),i.init_actions(),r.init_utils(),o=a.default.createLanguage({StartComment:()=>a.default.seq(n.KeywordExec,n.KeywordSP_ADDEXTENDEDPROPERTY),EndComment:()=>a.default.seq(n.Semicolon.atMost(1),n.KeywordGo),StartString:()=>a.default.alt(n.SingleQuote,a.default.string(`N'`)),ManyDoubleSingleQuote:()=>a.default.string(`''`),NoSingleQuote:()=>a.default.regex(/[^']/),StringType:e=>a.default.alt(e.NoSingleQuote,e.ManyDoubleSingleQuote).atLeast(1).map(e=>e.join(``)),NVarchar:e=>e.StartString.then(e.StringType).skip(n.SingleQuote),NameOption:e=>n.KeywordAtName.skip(n.Equal).then(e.NVarchar),ValueOption:e=>n.KeywordAtValue.skip(n.Equal).then(e.NVarchar),Level0Type:e=>n.KeywordAtLevel0Type.skip(n.Equal).then(e.NVarchar),Level0Name:e=>n.KeywordAtLevel0Name.skip(n.Equal).then(e.NVarchar),Level1Type:e=>n.KeywordAtLevel1Type.skip(n.Equal).then(e.NVarchar),Level1Name:e=>n.KeywordAtLevel1Name.skip(n.Equal).then(e.NVarchar),Level2Type:e=>n.KeywordAtLevel2Type.skip(n.Equal).then(e.NVarchar),Level2Name:e=>n.KeywordAtLevel2Name.skip(n.Equal).then(e.NVarchar),Level0Stmt:e=>a.default.seqObj([`type`,e.Level0Type],n.Comma,[`name`,e.Level0Name]),Level1Stmt:e=>a.default.seqObj([`type`,e.Level1Type],n.Comma,[`name`,e.Level1Name]),Level2Stmt:e=>a.default.seqObj([`type`,e.Level2Type],n.Comma,[`name`,e.Level2Name]),Level0Wrapper:e=>a.default.alt(a.default.seq(e.Level0Stmt.skip(n.Comma),e.Level1Wrapper),e.Level0Stmt).map(e=>Array.isArray(e)?[e[0],...e[1]]:[e]).atMost(1).map(e=>e.length===1?e[0]:e),Level1Wrapper:e=>a.default.alt(a.default.seq(e.Level1Stmt.skip(n.Comma),e.Level2Stmt),e.Level1Stmt).map(e=>Array.isArray(e)?e:[e]),CommentSyntax:e=>a.default.seqObj(e.StartComment,[`name`,e.NameOption],n.Comma,[`note`,e.ValueOption],n.Comma,[`level`,e.Level0Wrapper],e.EndComment).map(i.handleComment).thru(r.makeNode())}),s=o.CommentSyntax}));c(),exports.default=s,Object.defineProperty(exports,"init_comments",{enumerable:!0,get:function(){return c}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
2
|
+
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
3
3
|
import { Comma as r, Equal as i, KeywordAtLevel0Name as a, KeywordAtLevel0Type as o, KeywordAtLevel1Name as s, KeywordAtLevel1Type as c, KeywordAtLevel2Name as l, KeywordAtLevel2Type as u, KeywordAtName as d, KeywordAtValue as f, KeywordExec as p, KeywordGo as m, KeywordSP_ADDEXTENDEDPROPERTY as h, Semicolon as g, SingleQuote as _, init_keyword_parsers as v } from "../../../keyword_parsers.mjs";
|
|
4
4
|
import { init_utils as y, makeNode as b } from "../../../utils.mjs";
|
|
5
5
|
import { handleComment as x, init_actions as S } from "./actions.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("../../../base_parsers.cjs"),a=require("../../../index_definition/index.cjs"),o=require("./actions.cjs");var s,c,l,u=e.__esmMin((()=>{s=e.__toESM(t.default),n.init_keyword_parsers(),i.init_base_parsers(),r.init_utils(),o.init_actions(),a.init_index_definition(),c=s.default.createLanguage({CreateIndex:e=>s.default.seqMap(n.KeywordCreate,n.KeywordUnique.fallback(null),i.pKeywordClusteredOrNon.fallback(null),n.KeywordIndex,i.pIdentifier,n.KeywordOn,i.pDotDelimitedName,i.pColumnNames,o.makeIndex).thru(r.makeNode()).skip(e.IgnoredCreateIndexOptions),IgnoredCreateIndexOptions:e=>s.default.alt(a.pIgnoredIndexOption,e.IncludeIndexOption,e.WhereIndexOption).many(),IncludeIndexOption:()=>s.default.seq(n.KeywordInclude,i.pColumnNames),WhereIndexOption:e=>s.default.seq(n.KeywordWhere,e.FilterPredicate),FilterPredicate:e=>s.default.seq(e.Conjunct,s.default.seq(n.LogicalOpAnd,e.Conjunct).fallback(null)),Conjunct:e=>s.default.alt(e.Disjunct,e.Comparsion),Disjunct:()=>s.default.seq(i.pIdentifier,n.KeywordIn,r.makeList(i.pConst)),Comparsion:()=>s.default.seq(i.pIdentifier,i.pComparsionOp,i.pConst)}),l=c.CreateIndex}));u(),exports.default=l,Object.defineProperty(exports,"init_create_index",{enumerable:!0,get:function(){return u}});
|
|
1
|
+
const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("../../../base_parsers.cjs"),a=require("../../../index_definition/index.cjs"),o=require("./actions.cjs");var s,c,l,u=e.__esmMin((()=>{s=e.__toESM(t.default),n.init_keyword_parsers(),i.init_base_parsers(),r.init_utils(),o.init_actions(),a.init_index_definition(),c=s.default.createLanguage({CreateIndex:e=>s.default.seqMap(n.KeywordCreate,n.KeywordUnique.fallback(null),i.pKeywordClusteredOrNon.fallback(null),n.KeywordIndex,i.pIdentifier,n.KeywordOn,i.pDotDelimitedName,i.pColumnNames,o.makeIndex).thru(r.makeNode()).skip(e.IgnoredCreateIndexOptions),IgnoredCreateIndexOptions:e=>s.default.alt(a.pIgnoredIndexOption,e.IncludeIndexOption,e.WhereIndexOption).many(),IncludeIndexOption:()=>s.default.seq(n.KeywordInclude,i.pColumnNames),WhereIndexOption:e=>s.default.seq(n.KeywordWhere,e.FilterPredicate),FilterPredicate:e=>s.default.seq(e.Conjunct,s.default.seq(n.LogicalOpAnd,e.Conjunct).fallback(null)),Conjunct:e=>s.default.alt(e.Disjunct,e.Comparsion),Disjunct:()=>s.default.seq(i.pIdentifier,n.KeywordIn,r.makeList(i.pConst)),Comparsion:()=>s.default.seq(i.pIdentifier,i.pComparsionOp,i.pConst)}),l=c.CreateIndex}));u(),exports.default=l,Object.defineProperty(exports,"init_create_index",{enumerable:!0,get:function(){return u}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
2
|
+
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
3
3
|
import { KeywordCreate as r, KeywordIn as i, KeywordInclude as a, KeywordIndex as o, KeywordOn as s, KeywordUnique as c, KeywordWhere as l, LogicalOpAnd as u, init_keyword_parsers as d } from "../../../keyword_parsers.mjs";
|
|
4
4
|
import { init_utils as f, makeList as p, makeNode as m } from "../../../utils.mjs";
|
|
5
5
|
import { init_base_parsers as h, pColumnNames as g, pComparsionOp as _, pConst as v, pDotDelimitedName as y, pIdentifier as b, pKeywordClusteredOrNon as x } from "../../../base_parsers.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("../../../base_parsers.cjs"),a=require("../../../index_definition/index.cjs"),o=require("../../../constraint_definition/index.cjs"),s=require("../../../column_definition/index.cjs"),c=require("./actions.cjs");var l,u,d,f=e.__esmMin((()=>{l=e.__toESM(t.default),n.init_keyword_parsers(),i.init_base_parsers(),r.init_utils(),o.init_constraint_definition(),a.init_index_definition(),s.init_column_definition(),c.init_actions(),u=l.default.createLanguage({CreateTable:e=>l.default.seqMap(e.CreateTableKeywords,i.pDotDelimitedName,e.AsFileTableKeywords.fallback(null),r.makeList(e.Line),c.makeTable).thru(r.makeNode()).skip(e.IgnoredTableOptions),CreateTableKeywords:()=>l.default.seq(n.KeywordCreate,n.KeywordTable),AsFileTableKeywords:()=>l.default.seq(n.KeywordAs,n.KeywordFileTable),Line:e=>l.default.alt(e.SystemTimeTableOption,o.pTableConstraint,a.pTableIndex,s.pColumnsDefinition),SystemTimeTableOption:()=>l.default.seq(n.KeywordPeriodForST,r.makeList(i.pIdentifier)).result(null),IgnoredTableOptions:e=>l.default.alt(a.pIgnoredIndexOption,e.TextImageTableOption).many(),TextImageTableOption:()=>l.default.seq(n.KeywordTextImage_On,i.pIdentifier)}),d=u.CreateTable}));f(),exports.default=d,Object.defineProperty(exports,"init_create_table",{enumerable:!0,get:function(){return f}});
|
|
1
|
+
const e=require("../../../../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.cjs"),n=require("../../../keyword_parsers.cjs"),r=require("../../../utils.cjs"),i=require("../../../base_parsers.cjs"),a=require("../../../index_definition/index.cjs"),o=require("../../../constraint_definition/index.cjs"),s=require("../../../column_definition/index.cjs"),c=require("./actions.cjs");var l,u,d,f=e.__esmMin((()=>{l=e.__toESM(t.default),n.init_keyword_parsers(),i.init_base_parsers(),r.init_utils(),o.init_constraint_definition(),a.init_index_definition(),s.init_column_definition(),c.init_actions(),u=l.default.createLanguage({CreateTable:e=>l.default.seqMap(e.CreateTableKeywords,i.pDotDelimitedName,e.AsFileTableKeywords.fallback(null),r.makeList(e.Line),c.makeTable).thru(r.makeNode()).skip(e.IgnoredTableOptions),CreateTableKeywords:()=>l.default.seq(n.KeywordCreate,n.KeywordTable),AsFileTableKeywords:()=>l.default.seq(n.KeywordAs,n.KeywordFileTable),Line:e=>l.default.alt(e.SystemTimeTableOption,o.pTableConstraint,a.pTableIndex,s.pColumnsDefinition),SystemTimeTableOption:()=>l.default.seq(n.KeywordPeriodForST,r.makeList(i.pIdentifier)).result(null),IgnoredTableOptions:e=>l.default.alt(a.pIgnoredIndexOption,e.TextImageTableOption).many(),TextImageTableOption:()=>l.default.seq(n.KeywordTextImage_On,i.pIdentifier)}),d=u.CreateTable}));f(),exports.default=d,Object.defineProperty(exports,"init_create_table",{enumerable:!0,get:function(){return f}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esmMin as e, __toESM as t } from "../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
2
|
+
import { require_parsimmon_umd_min as n } from "../../../../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
3
3
|
import { KeywordAs as r, KeywordCreate as i, KeywordFileTable as a, KeywordPeriodForST as o, KeywordTable as s, KeywordTextImage_On as c, init_keyword_parsers as l } from "../../../keyword_parsers.mjs";
|
|
4
4
|
import { init_utils as u, makeList as d, makeNode as f } from "../../../utils.mjs";
|
|
5
5
|
import { init_base_parsers as p, pDotDelimitedName as m, pIdentifier as h } from "../../../base_parsers.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/lodash-es/last.cjs"),n=require("../../../node_modules/lodash-es/lodash.cjs"),r=require("../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs"),i=require("./whitespaces.cjs"),a=require("./keyword_parsers.cjs");function o(){return function(e){return u.default.seqMap(u.default.index,e,u.default.index,(t,n,r)=>n?(typeof n.value!=`object`&&(n.value={value:n.value}),n.value.token={start:t,end:r},n):e).skip(i.default)}}function s(e,t=!1){let n=e.sepBy1(a.Comma);return t&&(n=e.sepBy(a.Comma)),u.default.seq(a.LParen,n,a.RParen).map(e=>e[1])}function c(e){return function(t){return t.skip(i.default).map(t=>(t!==0&&!t&&(t=``),{type:e,value:t}))}}function l(e){let n=null;return e.length>1&&(n=e[e.length-2]),{name:t.default(e),schemaName:n}}var u,d=e.__esmMin((()=>{u=e.__toESM(r.default),n.init_lodash(),a.init_keyword_parsers(),i.init_whitespaces()}));d(),exports.getFullTableName=l,Object.defineProperty(exports,"init_utils",{enumerable:!0,get:function(){return d}}),exports.makeList=s,exports.makeNode=o,exports.streamline=c;
|
|
1
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.cjs"),n=require("../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/lodash.cjs"),r=require("../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.cjs"),i=require("./whitespaces.cjs"),a=require("./keyword_parsers.cjs");function o(){return function(e){return u.default.seqMap(u.default.index,e,u.default.index,(t,n,r)=>n?(typeof n.value!=`object`&&(n.value={value:n.value}),n.value.token={start:t,end:r},n):e).skip(i.default)}}function s(e,t=!1){let n=e.sepBy1(a.Comma);return t&&(n=e.sepBy(a.Comma)),u.default.seq(a.LParen,n,a.RParen).map(e=>e[1])}function c(e){return function(t){return t.skip(i.default).map(t=>(t!==0&&!t&&(t=``),{type:e,value:t}))}}function l(e){let n=null;return e.length>1&&(n=e[e.length-2]),{name:t.default(e),schemaName:n}}var u,d=e.__esmMin((()=>{u=e.__toESM(r.default),n.init_lodash(),a.init_keyword_parsers(),i.init_whitespaces()}));d(),exports.getFullTableName=l,Object.defineProperty(exports,"init_utils",{enumerable:!0,get:function(){return d}}),exports.makeList=s,exports.makeNode=o,exports.streamline=c;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __esmMin as e, __toESM as t } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import n from "../../../node_modules/lodash-es/last.mjs";
|
|
3
|
-
import { init_lodash as r } from "../../../node_modules/lodash-es/lodash.mjs";
|
|
4
|
-
import { require_parsimmon_umd_min as i } from "../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
2
|
+
import n from "../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.mjs";
|
|
3
|
+
import { init_lodash as r } from "../../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/lodash.mjs";
|
|
4
|
+
import { require_parsimmon_umd_min as i } from "../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
5
5
|
import a, { init_whitespaces as o } from "./whitespaces.mjs";
|
|
6
6
|
import { Comma as s, LParen as c, RParen as l, init_keyword_parsers as u } from "./keyword_parsers.mjs";
|
|
7
7
|
//#region src/parse/deprecated/mssql/utils.js
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/parsimmon/build/parsimmon.umd.min.cjs");var n,r,i,a=e.__esmMin((()=>{n=e.__toESM(t.default),r=n.default.createLanguage({WhiteSpaces:e=>n.default.alt(e.WhiteSpace,e.InlineComment,e.MulLineComment).many().desc(`whitespaces or comments`),WhiteSpace:()=>n.default.regexp(/\s/).desc(`whitespaces`),InlineComment:()=>n.default.seq(n.default.string(`--`),n.default.regexp(/[^\n\r]*/)).desc(`comments`),MulLineComment:()=>n.default.regexp(/\/\*[\s\S]+?\*\//).desc(`comments`)}),i=r.WhiteSpaces}));a(),exports.default=i,Object.defineProperty(exports,"init_whitespaces",{enumerable:!0,get:function(){return a}});
|
|
1
|
+
const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.cjs");var n,r,i,a=e.__esmMin((()=>{n=e.__toESM(t.default),r=n.default.createLanguage({WhiteSpaces:e=>n.default.alt(e.WhiteSpace,e.InlineComment,e.MulLineComment).many().desc(`whitespaces or comments`),WhiteSpace:()=>n.default.regexp(/\s/).desc(`whitespaces`),InlineComment:()=>n.default.seq(n.default.string(`--`),n.default.regexp(/[^\n\r]*/)).desc(`comments`),MulLineComment:()=>n.default.regexp(/\/\*[\s\S]+?\*\//).desc(`comments`)}),i=r.WhiteSpaces}));a(),exports.default=i,Object.defineProperty(exports,"init_whitespaces",{enumerable:!0,get:function(){return a}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esmMin as e, __toESM as t } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { require_parsimmon_umd_min as n } from "../../../node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
2
|
+
import { require_parsimmon_umd_min as n } from "../../../node_modules/.pnpm/parsimmon@1.18.1/node_modules/parsimmon/build/parsimmon.umd.min.mjs";
|
|
3
3
|
//#region src/parse/deprecated/mssql/whitespaces.js
|
|
4
4
|
var r, i, a, o = e((() => {
|
|
5
5
|
r = /* @__PURE__ */ t(n()), i = r.default.createLanguage({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../packages/dbml-core/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{t.default,n.default;function i(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function a(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,a)}i(a,Error),a.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function o(e,n){n=n===void 0?{}:n;var r={},i={Rule:Ma},o=Ma,s=function(){return{tables:Go,refs:Ko,enums:qo}},c=function(e){Go.push(e)},l=`(`,u=B(`(`,!1),d=`)`,f=B(`)`,!1),p=function(e,t,n){let r=t.fields,i=t.indexes,a=t.refs;r.forEach(t=>{if(t.type.type_name.toLowerCase()===`enum`){let n=t.type.args.split(/[\s\r\n\n]*,[\s\r\n\n]*/),r=[];n.forEach(e=>{let t={name:e.replace(/'|"|`/g,``).trim()};r.push(t)});let i={name:`${e.schemaName?`${e.schemaName}_`:``}${e.name}_${t.name}_enum`,values:r};qo.push(i),t.type.type_name=i.name}}),a.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName,t.endpoints[0].relation=`*`,Ko.push(t)});let o={...e,fields:r};return n&&n.comment&&(o.note={value:n.comment}),i&&(o.indexes=i),o},m=function(e){let t=$.flatten(e.filter(e=>e.type===`pk`).map(e=>e.pk)),n=$.flatten(e.filter(e=>e.type===`fk`).map(e=>e.fk)),r=$.flatten(e.filter(e=>e.type===`index`).map(e=>e.index)),i=e.filter(e=>e.type===`field`).map(e=>e.field);if(t.length>1){let e={columns:t.map(e=>({value:e,type:`column`})),pk:!0};r.push(e)}else t.forEach(e=>i.find(t=>t.name===e).pk=!0);return n.map(e=>{let t=i.find(t=>t.name===e.endpoints[0].fieldNames[0]);t.inline_ref||=[],t.inline_ref.push({endpoint:e.endpoints[1],onUpdate:e.onUpdate,onDelete:e.onDelete})}),{fields:i,indexes:r,refs:n}},h=H(`fields`),g=function(e){return{type:`pk`,pk:e}},_=function(e){return{type:`fk`,fk:e}},v=function(e){return{type:`index`,index:e}},y=function(e){return{type:`field`,field:e}},b=function(e){return e},x=`constraint`,S=B(`CONSTRAINT`,!0),ee=function(e,t,n,r,i){let a={name:e?e[2]:null,endpoints:[{tableName:null,fieldNames:t,relation:`*`},{tableName:n.name,schemaName:n.schemaName,fieldNames:r,relation:`1`}]};return i.forEach(e=>{if(e.type===`delete`){a.onDelete=e.action;return}a.onUpdate=e.action}),a},te=`on`,C=B(`ON`,!0),ne=`update`,re=B(`UPDATE`,!0),ie=`delete`,ae=B(`DELETE`,!0),oe=function(e,t){return{type:e.toLowerCase(),action:t.toLowerCase()}},w=`unique`,T=B(`UNIQUE`,!0),se=`key`,ce=B(`KEY`,!0),le=function(e,t,n,r,i){let a={columns:r};return t&&(a.name=t),e&&(a.unique=!0),i&&i[1]&&i[1].type===`index_type`&&i[1].value?a.type=i[1].value:n&&(a.type=n),a},ue=`index`,de=B(`INDEX`,!0),fe=function(e){return e},pe=function(){return`unique`},me=`ASC`,he=B(`ASC`,!1),ge=`DESC`,_e=B(`DESC`,!1),ve=function(e,t,n){let r={name:e,type:t};return n&&Object.assign(r,n),r},ye=function(e){let t={};return e.forEach(e=>{e===`null`?t.not_null=!1:e.type==="default"&&e.value?t.dbdefault=e.value:e.type===`comment`&&e.value?t.note={value:e.value}:e!==`not_supported`&&(t[e]=!0)}),t},be=H(`field setting`),xe=`not`,Se=B(`NOT`,!0),Ce=`null`,we=B(`NULL`,!0),Te=function(e){return`not_null`},Ee=function(e){return`null`},De=function(e){return`pk`},Oe=function(e){return`unique`},ke=`auto_increment`,Ae=B(`AUTO_INCREMENT`,!0),je=function(e){return`increment`},Me=`unsigned`,Ne=B(`UNSIGNED`,!0),Pe=function(e){return`unsigned`},Fe=`collate`,Ie=B(`COLLATE`,!0),Le=`column_format`,Re=B(`COLUMN_FORMAT`,!0),ze=`storage`,Be=B(`STORAGE`,!0),Ve=`check`,He=B(`CHECK`,!0),Ue=`generated_always`,We=B(`GENERATED_ALWAYS`,!0),Ge=`as`,Ke=B(`AS`,!0),qe=`virtual`,Je=B(`VIRTUAL`,!0),Ye=`stored`,Xe=B(`STORED`,!0),Ze=`character`,Qe=B(`CHARACTER`,!0),$e=`set`,et=B(`SET`,!0),tt=`charset`,nt=B(`CHARSET`,!0),rt=function(){return`not_supported`},it=function(e){return{type:`default`,value:e}},at=function(e){return{type:`comment`,value:e}},ot=`default`,st=B(`DEFAULT`,!0),ct=function(e){return e},lt=function(e){return{value:e,type:`string`}},ut=function(e){return{value:e,type:`number`}},dt=`true`,ft=B(`TRUE`,!0),pt=`false`,mt=B(`FALSE`,!0),ht=function(e){return{value:e,type:`boolean`}},gt=function(e){let t=e;return e&&e.length>2&&e[0]===`(`&&e[e.length-1]===`)`&&(t=e.slice(1,-1)),{value:t,type:`expression`}},_t=function(e,t){let n=e;return t.forEach(e=>Object.assign(n,e[2])),n},vt=H(`table option`),E=`=`,D=B(`=`,!1),yt=function(e){return{auto_increment:e}},bt=`avg_row_length`,xt=B(`AVG_ROW_LENGTH`,!0),St=function(e){return{avg_row_length:e}},Ct=function(e){return{charset_name:e}},wt=function(e){return{collation_name:e}},Tt=`compression`,Et=B(`COMPRESSION`,!0),Dt=`zlib`,Ot=B(`ZLIB`,!0),kt=`lz4`,At=B(`LZ4`,!0),jt=`none`,Mt=B(`NONE`,!0),Nt=function(e){return{compression:e.toUpperCase()}},Pt=`connection`,Ft=B(`CONNECTION`,!0),It=`connect_string`,Lt=B(`connect_string`,!1),Rt=function(e){return{connect_string:e}},zt=`encryption`,Bt=B(`ENCRYPTION`,!0),Vt=`y`,Ht=B(`Y`,!0),Ut=`n`,Wt=B(`N`,!0),Gt=function(e){return{encryption:e.toUpperCase()}},Kt=`engine`,qt=B(`ENGINE`,!0),Jt=function(e){return{engine:e}},Yt=`insert_method`,Xt=B(`INSERT_METHOD`,!0),Zt=`no`,Qt=B(`NO`,!0),$t=`first`,en=B(`FIRST`,!0),tn=`last`,nn=B(`LAST`,!0),rn=function(e){return{insert_method:e.toUpperCase()}},an=`max_rows`,on=B(`MAX_ROWS`,!0),sn=function(e){return{max_rows:e}},cn=`min_rows`,ln=B(`MIN_ROWS`,!0),un=function(e){return{min_rows:e}},dn=`tablespace`,fn=B(`TABLESPACE`,!0),pn=`STORAGE`,mn=B(`STORAGE`,!1),hn=`disk`,gn=B(`DISK`,!0),_n=`memory`,vn=B(`MEMORY`,!0),yn=function(e){return{tablespace:e}},bn=function(e){return{comment:e}},xn=`enforce`,Sn=B(`ENFORCE`,!0),Cn=function(e,t){let n=$.flatten(t.filter(e=>e.type===`add_fk`).map(e=>e.fks));n.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName}),Ko.push(...n);let r=$.flatten(t.filter(e=>e.type===`add_pk`).map(e=>e.pks)),i=Jo(e.schemaName,e.name),a={columns:r.map(e=>({value:e,type:`column`})),pk:!0};if(r.length>1)i.indexes?i.indexes.push(a):i.indexes=[a];else if(r.length===1){let e=i.fields.find(e=>e.name===r[0]);e.pk=!0}},wn=`add`,Tn=B(`ADD`,!0),En=function(e){return{type:`add_fk`,fks:e}},Dn=function(e){return{type:`add_pk`,pks:e}},On=`column`,kn=B(`COLUMN`,!0),An=function(e,t){return{type:`add_column`,field:{col_name:e,col_type:t}}},jn=function(e,t){return{type:`add_index`,index:{column:t}}},Mn=`change`,Nn=B(`CHANGE`,!0),O=/^[^;]/,k=V([`;`],!0,!1),Pn=`drop`,Fn=B(`DROP`,!0),In=function(e,t,n,r,i,a){let o={columns:i},s=a&&a.type===`index_type`?a.value:null;t&&(o.name=t),e.toLowerCase()===`unique`&&(o.unique=!0);let c=s||r;c&&(o.type=c);let l=Jo(n.schemaName,n.name);l.indexes?l.indexes.push(o):l.indexes=[o]},Ln=function(e){return e},Rn=function(e,t){return[e,...t.map(e=>e[3])]},zn=function(e,t){return{value:`${e}(${Yo($.flattenDeep(t).join(``))})`,type:`expression`}},Bn=function(e){return{value:`${e}`,type:`string`}},Vn=function(e){return{value:`${e}`,type:`expression`}},Hn=`COLLATE`,Un=B(`COLLATE`,!1),Wn=`NULLS`,Gn=B(`NULLS`,!1),Kn=`FIRST`,qn=B(`FIRST`,!1),Jn=`LAST`,Yn=B(`LAST`,!1),Xn=function(e){return e},Zn=`key_block_size`,Qn=B(`KEY_BLOCK_SIZE`,!0),$n=`with`,er=B(`WITH`,!0),tr=`parser`,nr=B(`PARSER`,!0),rr=`comment`,ir=B(`COMMENT`,!0),ar=`string`,or=B(`string`,!1),sr=`visible`,cr=B(`VISIBLE`,!0),lr=`invisible`,ur=B(`INVISIBLE`,!0),dr=function(e){return{type:`index_type`,value:e}},fr=`alter`,pr=B(`ALTER`,!0),A=Da(),mr=`insert`,hr=B(`INSERT`,!0),gr=`;`,_r=B(`;`,!1),vr=`create`,yr=B(`CREATE`,!0),br=`schema`,xr=B(`SCHEMA`,!0),Sr=`database`,Cr=B(`DATABASE`,!0),wr=`use`,Tr=B(`USE`,!0),Er=`begin`,Dr=B(`BEGIN`,!0),Or=`commit`,kr=B(`COMMIT`,!0),Ar=`rollback`,jr=B(`ROLLBACK`,!0),Mr=function(e,t){return[e,...t.map(e=>e[2])]},j=`'`,M=B(`'`,!1),Nr=/^[^']/,Pr=V([`'`],!0,!1),Fr=function(e,t){return t.join(``)},N=`"`,P=B(`"`,!1),Ir=/^[^"]/,Lr=V([`"`],!0,!1),Rr=H(`CREATE TABLE`),zr=`temporary`,Br=B(`TEMPORARY`,!0),Vr=`table`,Hr=B(`TABLE`,!0),Ur=H(`IF NOT EXISTS`),Wr=`if`,Gr=B(`IF`,!0),Kr=`exists`,qr=B(`EXISTS`,!0),Jr=H(`ALTER TABLE`),Yr=H(`CREATE INDEX`),Xr=function(e){return e},Zr=function(){return`INDEX`},Qr=`primary`,$r=B(`PRIMARY`,!0),ei=`foreign`,ti=B(`FOREIGN`,!0),ni=`references`,ri=B(`REFERENCES`,!0),ii=`restrict`,ai=B(`RESTRICT`,!0),oi=`cascade`,si=B(`CASCADE`,!0),ci=`action`,li=B(`ACTION`,!0),ui=H(`index type`),di=`using`,fi=B(`USING`,!0),pi=`btree`,mi=B(`BTREE`,!0),hi=`hash`,gi=B(`HASH`,!0),_i=function(e){return e.toUpperCase()},vi=H(`valid name`),yi=function(e){return e.join(``)},bi=/^[^`]/,xi=V(["`"],!0,!1),Si=`.`,Ci=B(`.`,!1),wi=function(e){let t=null,n=null;return e&&e.length>0&&(e.length===1?n=e[0][0]:(t=e[0][0],n=e[1][0])),{dbName:t,schemaName:n}},Ti=H(`valid table name`),Ei=function(e,t){return{...e,name:t}},Di=H(`type`),Oi=function(e){return e},ki=function(e){return{type_name:e}},Ai=function(e,t){return t=t?t[2]:null,e.toLowerCase()!==`enum`&&(e=t?e+`(`+t+`)`:e),{type_name:e,args:t}},ji=H(`expression`),Mi=function(e){return Yo($.flattenDeep(e).join(``))},Ni=`,`,Pi=B(`,`,!1),Fi=`);`,Ii=B(`);`,!1),Li=function(e){return $.flattenDeep(e).join(``)},Ri=/^[',.a-z0-9_+-`%]/i,zi=V([`'`,`,`,`.`,[`a`,`z`],[`0`,`9`],`_`,[`+`,"`"],`%`],!1,!0),Bi=/^['.a-z0-9_+\-]/i,Vi=V([`'`,`.`,[`a`,`z`],[`0`,`9`],`_`,`+`,`-`],!1,!0),Hi=H(`letter, number or underscore`),Ui=/^[a-z0-9_]/i,Wi=V([[`a`,`z`],[`0`,`9`],`_`],!1,!0),Gi=` `,Ki=B(` `,!1),qi="`",Ji=B("`",!1),Yi=` `,Xi=B(` `,!1),Zi=H(`endline`),Qi=H(`newline`),$i=`\r
|
|
1
|
+
"use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{t.default,n.default;function i(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function a(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,a)}i(a,Error),a.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function o(e,n){n=n===void 0?{}:n;var r={},i={Rule:Ma},o=Ma,s=function(){return{tables:Go,refs:Ko,enums:qo}},c=function(e){Go.push(e)},l=`(`,u=B(`(`,!1),d=`)`,f=B(`)`,!1),p=function(e,t,n){let r=t.fields,i=t.indexes,a=t.refs;r.forEach(t=>{if(t.type.type_name.toLowerCase()===`enum`){let n=t.type.args.split(/[\s\r\n\n]*,[\s\r\n\n]*/),r=[];n.forEach(e=>{let t={name:e.replace(/'|"|`/g,``).trim()};r.push(t)});let i={name:`${e.schemaName?`${e.schemaName}_`:``}${e.name}_${t.name}_enum`,values:r};qo.push(i),t.type.type_name=i.name}}),a.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName,t.endpoints[0].relation=`*`,Ko.push(t)});let o={...e,fields:r};return n&&n.comment&&(o.note={value:n.comment}),i&&(o.indexes=i),o},m=function(e){let t=$.flatten(e.filter(e=>e.type===`pk`).map(e=>e.pk)),n=$.flatten(e.filter(e=>e.type===`fk`).map(e=>e.fk)),r=$.flatten(e.filter(e=>e.type===`index`).map(e=>e.index)),i=e.filter(e=>e.type===`field`).map(e=>e.field);if(t.length>1){let e={columns:t.map(e=>({value:e,type:`column`})),pk:!0};r.push(e)}else t.forEach(e=>i.find(t=>t.name===e).pk=!0);return n.map(e=>{let t=i.find(t=>t.name===e.endpoints[0].fieldNames[0]);t.inline_ref||=[],t.inline_ref.push({endpoint:e.endpoints[1],onUpdate:e.onUpdate,onDelete:e.onDelete})}),{fields:i,indexes:r,refs:n}},h=H(`fields`),g=function(e){return{type:`pk`,pk:e}},_=function(e){return{type:`fk`,fk:e}},v=function(e){return{type:`index`,index:e}},y=function(e){return{type:`field`,field:e}},b=function(e){return e},x=`constraint`,S=B(`CONSTRAINT`,!0),ee=function(e,t,n,r,i){let a={name:e?e[2]:null,endpoints:[{tableName:null,fieldNames:t,relation:`*`},{tableName:n.name,schemaName:n.schemaName,fieldNames:r,relation:`1`}]};return i.forEach(e=>{if(e.type===`delete`){a.onDelete=e.action;return}a.onUpdate=e.action}),a},te=`on`,C=B(`ON`,!0),ne=`update`,re=B(`UPDATE`,!0),ie=`delete`,ae=B(`DELETE`,!0),oe=function(e,t){return{type:e.toLowerCase(),action:t.toLowerCase()}},w=`unique`,T=B(`UNIQUE`,!0),se=`key`,ce=B(`KEY`,!0),le=function(e,t,n,r,i){let a={columns:r};return t&&(a.name=t),e&&(a.unique=!0),i&&i[1]&&i[1].type===`index_type`&&i[1].value?a.type=i[1].value:n&&(a.type=n),a},ue=`index`,de=B(`INDEX`,!0),fe=function(e){return e},pe=function(){return`unique`},me=`ASC`,he=B(`ASC`,!1),ge=`DESC`,_e=B(`DESC`,!1),ve=function(e,t,n){let r={name:e,type:t};return n&&Object.assign(r,n),r},ye=function(e){let t={};return e.forEach(e=>{e===`null`?t.not_null=!1:e.type==="default"&&e.value?t.dbdefault=e.value:e.type===`comment`&&e.value?t.note={value:e.value}:e!==`not_supported`&&(t[e]=!0)}),t},be=H(`field setting`),xe=`not`,Se=B(`NOT`,!0),Ce=`null`,we=B(`NULL`,!0),Te=function(e){return`not_null`},Ee=function(e){return`null`},De=function(e){return`pk`},Oe=function(e){return`unique`},ke=`auto_increment`,Ae=B(`AUTO_INCREMENT`,!0),je=function(e){return`increment`},Me=`unsigned`,Ne=B(`UNSIGNED`,!0),Pe=function(e){return`unsigned`},Fe=`collate`,Ie=B(`COLLATE`,!0),Le=`column_format`,Re=B(`COLUMN_FORMAT`,!0),ze=`storage`,Be=B(`STORAGE`,!0),Ve=`check`,He=B(`CHECK`,!0),Ue=`generated_always`,We=B(`GENERATED_ALWAYS`,!0),Ge=`as`,Ke=B(`AS`,!0),qe=`virtual`,Je=B(`VIRTUAL`,!0),Ye=`stored`,Xe=B(`STORED`,!0),Ze=`character`,Qe=B(`CHARACTER`,!0),$e=`set`,et=B(`SET`,!0),tt=`charset`,nt=B(`CHARSET`,!0),rt=function(){return`not_supported`},it=function(e){return{type:`default`,value:e}},at=function(e){return{type:`comment`,value:e}},ot=`default`,st=B(`DEFAULT`,!0),ct=function(e){return e},lt=function(e){return{value:e,type:`string`}},ut=function(e){return{value:e,type:`number`}},dt=`true`,ft=B(`TRUE`,!0),pt=`false`,mt=B(`FALSE`,!0),ht=function(e){return{value:e,type:`boolean`}},gt=function(e){let t=e;return e&&e.length>2&&e[0]===`(`&&e[e.length-1]===`)`&&(t=e.slice(1,-1)),{value:t,type:`expression`}},_t=function(e,t){let n=e;return t.forEach(e=>Object.assign(n,e[2])),n},vt=H(`table option`),E=`=`,D=B(`=`,!1),yt=function(e){return{auto_increment:e}},bt=`avg_row_length`,xt=B(`AVG_ROW_LENGTH`,!0),St=function(e){return{avg_row_length:e}},Ct=function(e){return{charset_name:e}},wt=function(e){return{collation_name:e}},Tt=`compression`,Et=B(`COMPRESSION`,!0),Dt=`zlib`,Ot=B(`ZLIB`,!0),kt=`lz4`,At=B(`LZ4`,!0),jt=`none`,Mt=B(`NONE`,!0),Nt=function(e){return{compression:e.toUpperCase()}},Pt=`connection`,Ft=B(`CONNECTION`,!0),It=`connect_string`,Lt=B(`connect_string`,!1),Rt=function(e){return{connect_string:e}},zt=`encryption`,Bt=B(`ENCRYPTION`,!0),Vt=`y`,Ht=B(`Y`,!0),Ut=`n`,Wt=B(`N`,!0),Gt=function(e){return{encryption:e.toUpperCase()}},Kt=`engine`,qt=B(`ENGINE`,!0),Jt=function(e){return{engine:e}},Yt=`insert_method`,Xt=B(`INSERT_METHOD`,!0),Zt=`no`,Qt=B(`NO`,!0),$t=`first`,en=B(`FIRST`,!0),tn=`last`,nn=B(`LAST`,!0),rn=function(e){return{insert_method:e.toUpperCase()}},an=`max_rows`,on=B(`MAX_ROWS`,!0),sn=function(e){return{max_rows:e}},cn=`min_rows`,ln=B(`MIN_ROWS`,!0),un=function(e){return{min_rows:e}},dn=`tablespace`,fn=B(`TABLESPACE`,!0),pn=`STORAGE`,mn=B(`STORAGE`,!1),hn=`disk`,gn=B(`DISK`,!0),_n=`memory`,vn=B(`MEMORY`,!0),yn=function(e){return{tablespace:e}},bn=function(e){return{comment:e}},xn=`enforce`,Sn=B(`ENFORCE`,!0),Cn=function(e,t){let n=$.flatten(t.filter(e=>e.type===`add_fk`).map(e=>e.fks));n.forEach(t=>{t.endpoints[0].tableName=e.name,t.endpoints[0].schemaName=e.schemaName}),Ko.push(...n);let r=$.flatten(t.filter(e=>e.type===`add_pk`).map(e=>e.pks)),i=Jo(e.schemaName,e.name),a={columns:r.map(e=>({value:e,type:`column`})),pk:!0};if(r.length>1)i.indexes?i.indexes.push(a):i.indexes=[a];else if(r.length===1){let e=i.fields.find(e=>e.name===r[0]);e.pk=!0}},wn=`add`,Tn=B(`ADD`,!0),En=function(e){return{type:`add_fk`,fks:e}},Dn=function(e){return{type:`add_pk`,pks:e}},On=`column`,kn=B(`COLUMN`,!0),An=function(e,t){return{type:`add_column`,field:{col_name:e,col_type:t}}},jn=function(e,t){return{type:`add_index`,index:{column:t}}},Mn=`change`,Nn=B(`CHANGE`,!0),O=/^[^;]/,k=V([`;`],!0,!1),Pn=`drop`,Fn=B(`DROP`,!0),In=function(e,t,n,r,i,a){let o={columns:i},s=a&&a.type===`index_type`?a.value:null;t&&(o.name=t),e.toLowerCase()===`unique`&&(o.unique=!0);let c=s||r;c&&(o.type=c);let l=Jo(n.schemaName,n.name);l.indexes?l.indexes.push(o):l.indexes=[o]},Ln=function(e){return e},Rn=function(e,t){return[e,...t.map(e=>e[3])]},zn=function(e,t){return{value:`${e}(${Yo($.flattenDeep(t).join(``))})`,type:`expression`}},Bn=function(e){return{value:`${e}`,type:`string`}},Vn=function(e){return{value:`${e}`,type:`expression`}},Hn=`COLLATE`,Un=B(`COLLATE`,!1),Wn=`NULLS`,Gn=B(`NULLS`,!1),Kn=`FIRST`,qn=B(`FIRST`,!1),Jn=`LAST`,Yn=B(`LAST`,!1),Xn=function(e){return e},Zn=`key_block_size`,Qn=B(`KEY_BLOCK_SIZE`,!0),$n=`with`,er=B(`WITH`,!0),tr=`parser`,nr=B(`PARSER`,!0),rr=`comment`,ir=B(`COMMENT`,!0),ar=`string`,or=B(`string`,!1),sr=`visible`,cr=B(`VISIBLE`,!0),lr=`invisible`,ur=B(`INVISIBLE`,!0),dr=function(e){return{type:`index_type`,value:e}},fr=`alter`,pr=B(`ALTER`,!0),A=Da(),mr=`insert`,hr=B(`INSERT`,!0),gr=`;`,_r=B(`;`,!1),vr=`create`,yr=B(`CREATE`,!0),br=`schema`,xr=B(`SCHEMA`,!0),Sr=`database`,Cr=B(`DATABASE`,!0),wr=`use`,Tr=B(`USE`,!0),Er=`begin`,Dr=B(`BEGIN`,!0),Or=`commit`,kr=B(`COMMIT`,!0),Ar=`rollback`,jr=B(`ROLLBACK`,!0),Mr=function(e,t){return[e,...t.map(e=>e[2])]},j=`'`,M=B(`'`,!1),Nr=/^[^']/,Pr=V([`'`],!0,!1),Fr=function(e,t){return t.join(``)},N=`"`,P=B(`"`,!1),Ir=/^[^"]/,Lr=V([`"`],!0,!1),Rr=H(`CREATE TABLE`),zr=`temporary`,Br=B(`TEMPORARY`,!0),Vr=`table`,Hr=B(`TABLE`,!0),Ur=H(`IF NOT EXISTS`),Wr=`if`,Gr=B(`IF`,!0),Kr=`exists`,qr=B(`EXISTS`,!0),Jr=H(`ALTER TABLE`),Yr=H(`CREATE INDEX`),Xr=function(e){return e},Zr=function(){return`INDEX`},Qr=`primary`,$r=B(`PRIMARY`,!0),ei=`foreign`,ti=B(`FOREIGN`,!0),ni=`references`,ri=B(`REFERENCES`,!0),ii=`restrict`,ai=B(`RESTRICT`,!0),oi=`cascade`,si=B(`CASCADE`,!0),ci=`action`,li=B(`ACTION`,!0),ui=H(`index type`),di=`using`,fi=B(`USING`,!0),pi=`btree`,mi=B(`BTREE`,!0),hi=`hash`,gi=B(`HASH`,!0),_i=function(e){return e.toUpperCase()},vi=H(`valid name`),yi=function(e){return e.join(``)},bi=/^[^`]/,xi=V(["`"],!0,!1),Si=`.`,Ci=B(`.`,!1),wi=function(e){let t=null,n=null;return e&&e.length>0&&(e.length===1?n=e[0][0]:(t=e[0][0],n=e[1][0])),{dbName:t,schemaName:n}},Ti=H(`valid table name`),Ei=function(e,t){return{...e,name:t}},Di=H(`type`),Oi=function(e){return e},ki=function(e){return{type_name:e}},Ai=function(e,t){return t=t?t[2]:null,e.toLowerCase()!==`enum`&&(e=t?e+`(`+t+`)`:e),{type_name:e,args:t}},ji=H(`expression`),Mi=function(e){return Yo($.flattenDeep(e).join(``))},Ni=`,`,Pi=B(`,`,!1),Fi=`);`,Ii=B(`);`,!1),Li=function(e){return $.flattenDeep(e).join(``)},Ri=/^[',.a-z0-9_+-`%]/i,zi=V([`'`,`,`,`.`,[`a`,`z`],[`0`,`9`],`_`,[`+`,"`"],`%`],!1,!0),Bi=/^['.a-z0-9_+\-]/i,Vi=V([`'`,`.`,[`a`,`z`],[`0`,`9`],`_`,`+`,`-`],!1,!0),Hi=H(`letter, number or underscore`),Ui=/^[a-z0-9_]/i,Wi=V([[`a`,`z`],[`0`,`9`],`_`],!1,!0),Gi=` `,Ki=B(` `,!1),qi="`",Ji=B("`",!1),Yi=` `,Xi=B(` `,!1),Zi=H(`endline`),Qi=H(`newline`),$i=`\r
|
|
2
2
|
`,ea=B(`\r
|
|
3
3
|
`,!1),ta=`
|
|
4
4
|
`,na=B(`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJSMin as e } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { require_lodash as t } from "../../
|
|
3
|
-
import { require_pluralize as n } from "../../node_modules/pluralize/pluralize.mjs";
|
|
2
|
+
import { require_lodash as t } from "../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.mjs";
|
|
3
|
+
import { require_pluralize as n } from "../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.mjs";
|
|
4
4
|
//#region src/parse/deprecated/mysqlParser.cjs
|
|
5
5
|
var r = /* @__PURE__ */ e(((e, r) => {
|
|
6
6
|
t(), n();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../
|
|
1
|
+
"use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{var i=t.default;n.default;function a(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function o(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,o)}a(o,Error),o.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function s(e,t){t=t===void 0?{}:t;var n={},r={parser:Dl},a=Dl,s=function(e){return e.forEach(e=>{let{command_name:t,value:{syntax_name:n,value:r},warning:i}=e;switch(t.toLowerCase()){case`create_table`:let e=r;switch(n.toLowerCase()){case`create_table_normal`:Qf.push(e);let t=[];if(e.fields.forEach(n=>{n.inline_refs&&$f.push(...n.inline_refs.map(t=>({name:t.name,endpoints:[{tableName:e.name,schemaName:e.schemaName,fieldNames:[n.name],relation:`*`},t.endpoint],onDelete:t.onDelete,onUpdate:t.onUpdate}))),n.pk&&t.push(n)}),t.length>1){e.fields=e.fields.map(e=>(delete e.pk,e));let n={columns:t.map(e=>({value:e.name,type:`column`})),pk:!0};e.indexes?e.indexes.push(n):e.indexes=[n]}break;case`create_table_of`:break;case`create_table_partition_of`:break}break;case`create_index`:let{table_name:t}=r;delete r.table_name;let i=np(t.schemaName,t.name);i.indexes?i.indexes.push(r):i.indexes=[r];break;case`create_type`:switch(n.toLowerCase()){case`create_type_enum`:ep.push(r);break;case`create_type_range`:break}break;case`alter_table`:switch(n.toLowerCase()){case`alter_table_action`:r.forEach(e=>{let{type:t}=e;switch(t.toLowerCase()){case`fk`:e.t_value.forEach(e=>{$f.push(e)})}});break}break;case`comment`:switch(n.toLowerCase()){case`column`:{let{schemaName:e,tableName:t,columnName:n}=r,i=np(e,t);if(i){let e=rp(i,n);e&&(e.note=r.text?{value:r.text}:null)}break}case`table`:{let{schemaName:e,name:t}=r.table_name,n=np(e,t);n&&(n.note=r.text?{value:r.text}:null);break}}break;case`ignore_syntax`:break}}),{tables:Qf,refs:$f,enums:ep}},c=`create`,l=U(`CREATE`,!0),u=`alter`,d=U(`ALTER`,!0),f=`unique`,p=U(`UNIQUE`,!0),m=`index`,h=U(`INDEX`,!0),g=`type`,_=U(`TYPE`,!0),v=`enum`,y=U(`ENUM`,!0),b=`concurrenly`,x=U(`CONCURRENLY`,!0),S=`foreign`,C=U(`FOREIGN`,!0),w=`key`,T=U(`KEY`,!0),E=`references`,D=U(`REFERENCES`,!0),O=`on`,k=U(`ON`,!0),A=`using`,j=U(`USING`,!0),M=`table`,N=U(`TABLE`,!0),ee=`if`,te=U(`IF`,!0),ne=`not`,re=U(`NOT`,!0),ie=`exists`,ae=U(`EXISTS`,!0),oe=`global`,se=U(`GLOBAL`,!0),ce=`local`,le=U(`LOCAL`,!0),ue=`temporary`,de=U(`TEMPORARY`,!0),fe=`temp`,pe=U(`TEMP`,!0),me=`unlogged`,he=U(`UNLOGGED`,!0),ge=`collate`,_e=U(`COLLATE`,!0),ve=`partition`,ye=U(`PARTITION`,!0),be=`by`,xe=U(`BY`,!0),Se=`range`,Ce=U(`RANGE`,!0),we=`list`,Te=U(`LIST`,!0),Ee=`hash`,De=U(`HASH`,!0),Oe=`like`,ke=U(`LIKE`,!0),Ae=`inherits`,je=U(`INHERITS`,!0),Me=`inherit`,Ne=U(`INHERIT`,!0),Pe=`with`,Fe=U(`WITH`,!0),Ie=`without`,Le=U(`WITHOUT`,!0),Re=`oids`,ze=U(`OIDS`,!0),Be=`commit`,Ve=U(`COMMIT`,!0),He=`preserve`,Ue=U(`PRESERVE`,!0),We=`rows`,Ge=U(`ROWS`,!0),Ke=`delete`,qe=U(`DELETE`,!0),Je=`drop`,Ye=U(`DROP`,!0),Xe=`tablespace`,Ze=U(`TABLESPACE`,!0),Qe=`constraint`,$e=U(`CONSTRAINT`,!0),et=`no`,tt=U(`NO`,!0),nt=`null`,rt=U(`NULL`,!0),it=`check`,at=U(`CHECK`,!0),ot=`default`,st=U(`DEFAULT`,!0),ct=`primary`,lt=U(`PRIMARY`,!0),ut=`match`,dt=U(`MATCH`,!0),ft=`full`,pt=U(`FULL`,!0),mt=`partial`,ht=U(`PARTIAL`,!0),gt=`simple`,_t=U(`SIMPLE`,!0),vt=`update`,yt=U(`UPDATE`,!0),bt=`deferrable`,xt=U(`DEFERRABLE`,!0),St=`initially`,Ct=U(`INITIALLY`,!0),wt=`deferred`,Tt=U(`DEFERRED`,!0),Et=`immediate`,Dt=U(`IMMEDIATE`,!0),Ot=`exclude`,kt=U(`EXCLUDE`,!0),At=`where`,jt=U(`WHERE`,!0),Mt=`including`,Nt=U(`INCLUDING`,!0),Pt=`excluding`,Ft=U(`EXCLUDING`,!0),It=`comments`,Lt=U(`COMMENTS`,!0),Rt=`constraints`,zt=U(`CONSTRAINTS`,!0),Bt=`generated`,Vt=U(`GENERATED`,!0),Ht=`always`,Ut=U(`ALWAYS`,!0),Wt=`as`,Gt=U(`AS`,!0),Kt=`add`,qt=U(`ADD`,!0),Jt=`only`,Yt=U(`ONLY`,!0),Xt=`defaults`,Zt=U(`DEFAULTS`,!0),Qt=`identity`,$t=U(`IDENTITY`,!0),en=`indexes`,tn=U(`INDEXES`,!0),nn=`statistics`,rn=U(`STATISTICS`,!0),an=`storage`,on=U(`STORAGE`,!0),sn=`include`,cn=U(`INCLUDE`,!0),ln=`includes`,un=U(`INCLUDES`,!0),dn=`all`,fn=U(`ALL`,!0),pn=`of`,mn=U(`OF`,!0),hn=`options`,gn=U(`OPTIONS`,!0),_n=`for`,vn=U(`FOR`,!0),yn=`values`,bn=U(`VALUES`,!0),xn=`in`,Sn=U(`IN`,!0),Cn=`from`,wn=U(`FROM`,!0),Tn=`to`,En=U(`TO`,!0),Dn=`modulus`,On=U(`MODULUS`,!0),kn=`remainder`,An=U(`REMAINDER`,!0),jn=`true`,Mn=U(`TRUE`,!0),Nn=`false`,Pn=U(`FALSE`,!0),Fn=`maxvalue`,In=U(`MAXVALUE`,!0),Ln=`minvalue`,Rn=U(`MINVALUE`,!0),zn=`subtype`,Bn=U(`SUBTYPE`,!0),Vn=`subtype_opclass`,Hn=U(`SUBTYPE_OPCLASS`,!0),Un=`canonical`,Wn=U(`CANONICAL`,!0),Gn=`subtype_diff`,Kn=U(`SUBTYPE_DIFF`,!0),qn=`valid`,Jn=U(`VALID`,!0),Yn=`column`,Xn=U(`COLUMN`,!0),Zn=`set`,Qn=U(`SET`,!0),$n=`data`,er=U(`DATA`,!0),tr=`reset`,nr=U(`RESET`,!0),rr=`plain`,ir=U(`PLAIN`,!0),ar=`external`,or=U(`EXTERNAL`,!0),sr=`extended`,cr=U(`EXTENDED`,!0),lr=`main`,ur=U(`MAIN`,!0),dr=`comment`,fr=U(`COMMENT`,!0),pr=`IS`,mr=U(`IS`,!1),hr=`insert`,gr=U(`INSERT`,!0),_r=`select`,vr=U(`SELECT`,!0),yr=`use`,br=U(`USE`,!0),xr=`sequence`,Sr=U(`SEQUENCE`,!0),Cr=`schema`,wr=U(`SCHEMA`,!0),Tr=`view`,Er=U(`VIEW`,!0),Dr=`rename`,Or=U(`RENAME`,!0),kr=`owned`,Ar=U(`OWNED`,!0),jr=`attach`,Mr=U(`ATTACH`,!0),Nr=`detach`,Pr=U(`DETACH`,!0),Fr=Cl(`expression`),Ir=function(e){return tp(i.flattenDeep(e).join(``))},P=`(`,F=U(`(`,!1),I=`)`,L=U(`)`,!1),Lr=`,`,Rr=U(`,`,!1),zr=`);`,Br=U(`);`,!1),Vr=xl(),Hr=function(e){return i.flattenDeep(e).join(``)},Ur=/^["',.a-z0-9_+-:<>=!*]/i,Wr=bl([`"`,`'`,`,`,`.`,[`a`,`z`],[`0`,`9`],`_`,[`+`,`:`],`<`,`>`,`=`,`!`,`*`],!1,!0),Gr=/^['.a-z0-9_+\-]/i,Kr=bl([`'`,`.`,[`a`,`z`],[`0`,`9`],`_`,`+`,`-`],!1,!0),qr=Cl(`valid column name`),Jr=`.`,Yr=U(`.`,!1),Xr=function(e){let t=null,n=null;return e&&e.length>0&&(e.length===1?n=e[0][0]:(t=e[0][0],n=e[1][0])),{dbName:t,schemaName:n}},Zr=Cl(`valid table name`),Qr=function(e,t){return{...e,name:t}},$r=Cl(`valid enum name`),ei=Cl(`string`),ti=`'`,ni=U(`'`,!1),ri=function(e){return e.join(``)},ii=`''`,ai=U(`''`,!1),oi=function(){return`'`},si=/^[^']/,ci=bl([`'`],!0,!1),li=`"`,ui=U(`"`,!1),di=function(e){return e.join(``)},fi=`""`,pi=U(`""`,!1),mi=function(){return`"`},hi=/^[^"]/,gi=bl([`"`],!0,!1),_i=Cl(`number`),vi=`e`,yi=U(`e`,!1),bi=`+`,xi=U(`+`,!1),Si=`-`,Ci=U(`-`,!1),wi=function(e){return i.flattenDeep(e).filter(e=>e).join(``)},Ti=function(e){return e.join(``)},Ei=/^[0-9]/,Di=bl([[`0`,`9`]],!1,!1),Oi=Cl(`VALID TYPE`),ki=`character`,Ai=U(`CHARACTER`,!0),ji=`varying`,Mi=U(`VARYING`,!0),Ni=function(e,t,n,r){let i=`${e} ${t}`;return i=n?i+`(`+n[1]+`)`:i,{type_name:i+(r?r.map(e=>`[`+e+`]`).join(``):``),args:n?n[1]:null}},Pi=`timestamptz`,Fi=U(`timestamptz`,!0),Ii=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`timestamptz`:`timestamptz(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Li=`timestamp`,Ri=U(`timestamp`,!0),zi=U(`without`,!0),Bi=U(`with`,!0),Vi=`time`,Hi=U(`time`,!0),Ui=`zone`,Wi=U(`zone`,!0),Gi=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`timestamp`:`timestamp(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Ki=`timetz`,qi=U(`timetz`,!0),Ji=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`timetz`:`timetz(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Yi=function(e,t){let n=e?e[2]:null;return{type_name:(n===null?`time`:`time(${n})`)+(t?t.map(e=>`[`+e+`]`).join(``):``),args:n}},Xi=function(e,t){let n=e.args;return{type_name:e.type_name+(t?t.map(e=>`[`+e+`]`).join(``):``),schemaName:e.schemaName,args:n}},Zi=/^[^"\n]/,Qi=bl([`"`,`
|
|
2
2
|
`],!0,!1),$i=function(e){return{type_name:e.join(``),args:null}},ea=function(e,t,n){let r=t.join(``);return n=n?n[1]:null,r.toLowerCase()!==`enum`&&(r=n?r+`(`+n+`)`:r),{...e,type_name:r,args:n}},ta=`array`,na=U(`array`,!0),ra=`[`,ia=U(`[`,!1),aa=`]`,oa=U(`]`,!1),sa=function(e){return[e?e[3]:``]},ca=function(e){return e.map(e=>e[2])},la=function(e){return{value:e,type:`string`}},ua=function(e){return{value:e,type:`number`}},da=function(e){return{value:e,type:`boolean`}},fa=function(e){let t=e;return e&&e.length>2&&e[0]===`(`&&e[e.length-1]===`)`&&(t=e.slice(1,-1)),{value:t,type:`expression`}},pa=` `,ma=U(` `,!1),ha=` `,ga=U(` `,!1),_a=`;`,va=U(`;`,!1),ya=Cl(`endline`),ba=Cl(`newline`),xa=`\r
|
|
3
3
|
`,Sa=U(`\r
|
|
4
4
|
`,!1),Ca=`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJSMin as e } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { require_lodash as t } from "../../
|
|
3
|
-
import { require_pluralize as n } from "../../node_modules/pluralize/pluralize.mjs";
|
|
2
|
+
import { require_lodash as t } from "../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.mjs";
|
|
3
|
+
import { require_pluralize as n } from "../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.mjs";
|
|
4
4
|
//#region src/parse/deprecated/postgresParser.cjs
|
|
5
5
|
var r = /* @__PURE__ */ e(((e, r) => {
|
|
6
6
|
var i = t();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../
|
|
1
|
+
"use strict";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.cjs"),n=require("../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.cjs");var r=e.__commonJSMin(((e,r)=>{t.default,n.default;function i(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function a(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name=`SyntaxError`,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,a)}i(a,Error),a.buildMessage=function(e,t){var n={literal:function(e){return`"`+i(e.text)+`"`},class:function(e){var t=``,n;for(n=0;n<e.parts.length;n++)t+=e.parts[n]instanceof Array?a(e.parts[n][0])+`-`+a(e.parts[n][1]):a(e.parts[n]);return`[`+(e.inverted?`^`:``)+t+`]`},any:function(e){return`any character`},end:function(e){return`end of input`},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function i(e){return e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function a(e){return e.replace(/\\/g,`\\\\`).replace(/\]/g,`\\]`).replace(/\^/g,`\\^`).replace(/-/g,`\\-`).replace(/\0/g,`\\0`).replace(/\t/g,`\\t`).replace(/\n/g,`\\n`).replace(/\r/g,`\\r`).replace(/[\x00-\x0F]/g,function(e){return`\\x0`+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return`\\x`+r(e)})}function o(e){return n[e.type](e)}function s(e){var t=Array(e.length),n,r;for(n=0;n<e.length;n++)t[n]=o(e[n]);if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+` or `+t[1];default:return t.slice(0,-1).join(`, `)+`, or `+t[t.length-1]}}function c(e){return e?`"`+i(e)+`"`:`end of input`}return`Expected `+s(e)+` but `+c(t)+` found.`};function o(e,r){r=r===void 0?{}:r;var i={},o={schema:yt},s=yt,c=function(){return mn(Z)},l=function(e){let{table:t,refs:n}=e;an(t),un(n)},u=function(e){$(e)},d=`,`,f=L(`,`,!1),p=function(e,t,n){let r=n.find(e=>e.name)?.name;on(e,t,r)},m=function(e,t,n){return dn(fn(e,t,n))},h=`:`,g=L(`:`,!1),ee=function(e){return{columnName:e}},te=function(e){return{primaryKey:e}},ne=function(e,t){switch(e.toLowerCase()){case`on_delete`:return{onDelete:t.split(`_`).join(` `)};case`on_update`:return{onUpdate:t.split(`_`).join(` `)}}},re=function(e,t){let n={name:e,fields:sn(t.fields)};return t.checks&&t.checks.length>0&&(n.checks=t.checks),{table:n,refs:pn(n,t.references)}},ie=function(e){return{fields:e.filter(e=>e.isField).map(e=>e.field),index:e.filter(e=>e.isIndex).map(e=>e.index),references:e.filter(e=>e.isReferences).map(e=>e.reference),checks:e.filter(e=>e.isCheck).map(e=>e.check)}},ae=function(e){return e},oe=function(e){return{reference:e,isReferences:!0}},se=function(e){return{check:e,isCheck:!0}},ce=function(e){return{field:e,isField:!0}},le=function(e){return e},ue=function(e,t){let n={expression:e};for(let e=0;e<t.length;e++)t[e].name&&(n.name=t[e].name);return n},de=function(e,t){return{name:t,type:{type_name:e}}},fe=function(e){return e},pe=`name`,me=L(`name`,!0),he=function(e){return{name:e}},ge=`on_delete`,_e=L(`on_delete`,!0),ve=`on_update`,ye=L(`on_update`,!0),be=z(`create table`),xe=`create_table`,Se=L(`create_table`,!0),Ce=z(`index`),we=`.index`,Te=L(`.index`,!1),Ee=z(`references`),De=`.references`,Oe=L(`.references`,!1),ke=z(`check constraint`),_=`.check_constraint`,Ae=L(`.check_constraint`,!1),je=z(`add check constraint`),Me=`add_check_constraint`,Ne=L(`add_check_constraint`,!0),Pe=z(`add foreign key`),Fe=`add_foreign_key`,Ie=L(`add_foreign_key`,!0),Le=z(`column`),v=`column`,Re=L(`column`,!1),ze=z(`primary key`),y=`primary_key`,Be=L(`primary_key`,!1),b=`end`,Ve=L(`end`,!1),x=/^[^"\n]/,S=R([`"`,`
|
|
2
2
|
`],!0,!1),C=function(e){return e.join(``)},w=/^[^'\n]/,T=R([`'`,`
|
|
3
3
|
`],!0,!1),He=`.`,Ue=L(`.`,!1),We=z(`letter, number or underscore`),Ge=/^[a-z0-9_.]/i,Ke=R([[`a`,`z`],[`0`,`9`],`_`,`.`],!1,!0),qe=z(`comment line`),Je=`#`,Ye=L(`#`,!1),Xe=z(`whatever`),E=/^[^\t\r\n]/,D=R([` `,`\r`,`
|
|
4
4
|
`],!0,!1),Ze=`'`,Qe=L(`'`,!1),$e=`"`,et=L(`"`,!1),tt=z(`comment`),O=`//`,nt=L(`//`,!1),rt=/^[^\n]/,it=R([`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJSMin as e } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import { require_lodash as t } from "../../
|
|
3
|
-
import { require_pluralize as n } from "../../node_modules/pluralize/pluralize.mjs";
|
|
2
|
+
import { require_lodash as t } from "../../node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/lodash.mjs";
|
|
3
|
+
import { require_pluralize as n } from "../../node_modules/.pnpm/pluralize@8.0.0/node_modules/pluralize/pluralize.mjs";
|
|
4
4
|
//#region src/parse/deprecated/schemarbParser.cjs
|
|
5
5
|
var r = /* @__PURE__ */ e(((e, r) => {
|
|
6
6
|
t(), n();
|
package/lib/utils/version.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs");var e=require("../
|
|
1
|
+
require("../_virtual/_rolldown/runtime.cjs");var e=require("../package.json.cjs").version;exports.VERSION=e;
|
package/lib/utils/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@dbml/core",
|
|
4
|
-
"version": "10.
|
|
4
|
+
"version": "10.4.0-alpha.0",
|
|
5
5
|
"description": "> TODO: description",
|
|
6
6
|
"author": "Holistics <dev@holistics.io>",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"lint:fix": "eslint --fix ."
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@dbml/parse": "^10.
|
|
51
|
+
"@dbml/parse": "^10.4.0-alpha.0",
|
|
52
52
|
"antlr4": "^4.13.1",
|
|
53
53
|
"lodash": "^4.18.1",
|
|
54
54
|
"lodash-es": "^4.18.1",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"bluebird": "^3.5.5"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ed4c390c2ce94cb9e73e3e84610917e1f15527ff",
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=16"
|
|
65
65
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CustomMetadata } from '@dbml/parse';
|
|
1
2
|
import Element, { Token, Color } from './element';
|
|
2
3
|
import Endpoint from './endpoint';
|
|
3
4
|
import Schema from './schema';
|
|
@@ -11,6 +12,7 @@ export interface RawRef {
|
|
|
11
12
|
onDelete: any;
|
|
12
13
|
onUpdate: any;
|
|
13
14
|
inactive?: boolean;
|
|
15
|
+
metadata?: CustomMetadata;
|
|
14
16
|
token: Token;
|
|
15
17
|
schema: Schema;
|
|
16
18
|
}
|
|
@@ -21,12 +23,13 @@ declare class Ref extends Element {
|
|
|
21
23
|
onDelete: any;
|
|
22
24
|
onUpdate: any;
|
|
23
25
|
inactive?: boolean;
|
|
26
|
+
metadata: CustomMetadata;
|
|
24
27
|
schema: Schema;
|
|
25
28
|
dbState: DbState;
|
|
26
29
|
id: number;
|
|
27
30
|
database: Database;
|
|
28
31
|
injectedPartial?: TablePartial;
|
|
29
|
-
constructor({ name, endpoints, onDelete, onUpdate, token, schema }: RawRef);
|
|
32
|
+
constructor({ name, endpoints, onDelete, onUpdate, metadata, token, schema }: RawRef);
|
|
30
33
|
generateId(): void;
|
|
31
34
|
processEndpoints(rawEndpoints: any): void;
|
|
32
35
|
equals(ref: any): any;
|
|
@@ -40,12 +43,14 @@ declare class Ref extends Element {
|
|
|
40
43
|
name: string;
|
|
41
44
|
onDelete: any;
|
|
42
45
|
onUpdate: any;
|
|
46
|
+
metadata: CustomMetadata;
|
|
43
47
|
injectedPartialId?: number;
|
|
44
48
|
};
|
|
45
49
|
shallowExport(): {
|
|
46
50
|
name: string;
|
|
47
51
|
onDelete: any;
|
|
48
52
|
onUpdate: any;
|
|
53
|
+
metadata: CustomMetadata;
|
|
49
54
|
injectedPartialId?: number;
|
|
50
55
|
};
|
|
51
56
|
exportChild(): {
|
|
@@ -71,6 +76,7 @@ export interface NormalizedRef {
|
|
|
71
76
|
onUpdate?: string;
|
|
72
77
|
onDelete?: string;
|
|
73
78
|
inactive?: boolean;
|
|
79
|
+
metadata: CustomMetadata;
|
|
74
80
|
schemaId: number;
|
|
75
81
|
endpointIds: number[];
|
|
76
82
|
injectedPartialId?: number;
|