js.documents 7.1.15 → 7.2.1
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/README.md +1 -1
- package/dist/{evaluate-Cu7iEnxX.d.ts → evaluate-BKLK67uP.d.ts} +1 -1
- package/dist/{evaluate-Rl9P68se.d.cts → evaluate-DjUkdPfO.d.cts} +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/layout/reconstruct.cjs +79 -1
- package/dist/layout/reconstruct.js +79 -1
- package/dist/odb/formula/evaluate.d.cts +1 -1
- package/dist/odb/formula/evaluate.d.ts +1 -1
- package/dist/odb/report/render.d.cts +1 -1
- package/dist/odb/report/render.d.ts +1 -1
- package/dist/odb/report/source.d.cts +1 -1
- package/dist/odb/report/source.d.ts +1 -1
- package/dist/odb/sql/errors.cjs +1 -1
- package/dist/odb/sql/errors.js +1 -1
- package/dist/odb/sql/evaluate.cjs +69 -18
- package/dist/odb/sql/evaluate.d.cts +1 -1
- package/dist/odb/sql/evaluate.d.ts +1 -1
- package/dist/odb/sql/evaluate.js +69 -18
- package/dist/odb/sql/parser.cjs +30 -8
- package/dist/odb/sql/parser.d.cts +2 -2
- package/dist/odb/sql/parser.d.ts +2 -2
- package/dist/odb/sql/parser.js +30 -8
- package/dist/{parser-DYfiAasj.d.cts → parser-D9fiOUfR.d.cts} +10 -2
- package/dist/{parser-D0IJI7LA.d.ts → parser-fyVOtBAo.d.ts} +10 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -606,7 +606,7 @@ import { readFirebirdBackup } from "documents.js";
|
|
|
606
606
|
const { summary, tables } = readFirebirdBackup(firebirdBackupBytes);
|
|
607
607
|
```
|
|
608
608
|
|
|
609
|
-
**SQL `SELECT` engine** — `parseSelect`/`evaluateSelect` run a bounded
|
|
609
|
+
**SQL `SELECT` engine** — `parseSelect`/`evaluateSelect` run a bounded `SELECT` over `readOdbTables`' output. Closed allowlist grammar: column list or `*` or aggregates (`COUNT`/`SUM`/`AVG`/`MIN`/`MAX`), `FROM` one table plus zero or more `[INNER] JOIN table ON predicate` clauses (a plain nested-loop inner join; a column past the first table must be qualified by its own table name, since there is no alias grammar), optional `WHERE`/`GROUP BY`/`ORDER BY`. OUTER/LEFT/RIGHT/FULL/CROSS/NATURAL joins, subqueries, and everything else outside the grammar throws `HsqldbSqlUnsupportedError`:
|
|
610
610
|
|
|
611
611
|
```ts
|
|
612
612
|
import { decodePackage, readOdbInventory } from "odf.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as HsqldbTable } from "./script-DsGGIzGU.js";
|
|
2
|
-
import {
|
|
2
|
+
import { f as SqlSelectStatement } from "./parser-fyVOtBAo.js";
|
|
3
3
|
import { ContentCellValue } from "document-schema.js";
|
|
4
4
|
//#region src/odb/sql/evaluate.d.ts
|
|
5
5
|
interface SqlResultSet {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as HsqldbTable } from "./script-DsGGIzGU.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { f as SqlSelectStatement } from "./parser-D9fiOUfR.cjs";
|
|
3
3
|
import { ContentCellValue } from "document-schema.js";
|
|
4
4
|
//#region src/odb/sql/evaluate.d.ts
|
|
5
5
|
interface SqlResultSet {
|
package/dist/index.d.cts
CHANGED
|
@@ -114,8 +114,8 @@ import { odbTablesToSpreadsheetDocument } from "./odb/spreadsheet.cjs";
|
|
|
114
114
|
import { readOdbForms, readOdbReports } from "./odb/components.cjs";
|
|
115
115
|
import { OdbTableNotFoundError, OdbTableNotSpecifiedError } from "./odb/csv.cjs";
|
|
116
116
|
import { i as tokenizeSql, n as SqlPunctuation, r as SqlToken, t as SqlComparisonOperator } from "./lexer-DgsW7jMA.cjs";
|
|
117
|
-
import { a as
|
|
118
|
-
import { n as evaluateSelect, t as SqlResultSet } from "./evaluate-
|
|
117
|
+
import { a as SqlJoinClause, c as SqlOperand, d as SqlSelectItem, f as SqlSelectStatement, i as SqlFromClause, l as SqlOrderByTerm, m as parseSelect, n as SqlAggregateFunction, o as SqlLiteral, p as SqlSortDirection, r as SqlColumnRef, s as SqlNameRef, t as SqlAggregateArgument, u as SqlPredicate } from "./parser-D9fiOUfR.cjs";
|
|
118
|
+
import { n as evaluateSelect, t as SqlResultSet } from "./evaluate-DjUkdPfO.cjs";
|
|
119
119
|
import { HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError } from "./odb/sql/errors.cjs";
|
|
120
120
|
import { RptBandDefinition, RptBandInstance, RptBandKind, RptGroupDefinition, RptNamedFunctionDefinition, RptReportDefinition, RptReportRun, RptScope, evaluateRptBandOutsideData, runRptReport } from "./odb/formula/evaluate.cjs";
|
|
121
121
|
import { RptAggregateFunction, RptFormula, RptReference, parseRptFormula } from "./odb/formula/parser.cjs";
|
|
@@ -135,4 +135,4 @@ import { RtfBytesSchema, readRtfContent, writeRtfContent } from "rtf-codec";
|
|
|
135
135
|
import { readWpdContent } from "wpd-codec";
|
|
136
136
|
import { readDocContent, writeDocContent } from "doc-codec";
|
|
137
137
|
import { XlsContentDocument, readXlsContent, writeXlsContent } from "xls-codec";
|
|
138
|
-
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildCsvTextOptions, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, type BuildSvgTextOptions, COLOR_BLACK, type CellPosition, type CellRange, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type CompositionHop, type ContentBlock, ContentBlockSchema, type ContentCellFill, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionPlan, type ConversionRequest, type ConversionResult, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateMarkdownEditorOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePdfOptions, type CreatePptxOptions, CsvBytesSchema, CsvInvalidUtf8Error, CsvParseError, type CsvReadOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, type CsvWriteOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, DocBytesSchema, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, type DocumentFormulaEntry, type DocumentJsonResult, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocumentTree, type DocumentTreeJson, DocumentTreeSchema, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingLayoutResult, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontFace, FontFaceParseError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HeaderFooterPart, HeaderFooterPartSchema, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, type LatexDiagnostic, type LatexDiagnosticCode, type LatexDiagnosticSink, type LatexFormulaOptions, type LatexFormulaResult, type LatexLoweringResult, type LayoutColor, type LayoutDocument, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type LowerLatexOptions, MATH_LINT_CODES, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, type MarkdownMathLoweringOptions, MarkdownParagraph, type ParagraphInit as MarkdownParagraphInit, type MarkdownRenderDiagnostic, type MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, type MarkdownRenderDiagnosticSeverity, type MarkdownRenderDiagnosticSink, MarkdownRun, type RunInit as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit as MarkdownTableInit, MarkdownTableRow, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathLintCode, type MathLintDiagnostic, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, type MetadataOverrides, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, type OdbReportToDocxOptions, type OdbReportToOdtOptions, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$1 as OdtParagraphInit, OdtRun, type RunInit$1 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$1 as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageInit, type PageSize, type Part, PartSchema, type PatchDocxMetadataOptions, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, PdfInternalLinkItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptBytesSchema, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadCsvContentOptions, type ReadDocumentMetadataOptions, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadNativeDocumentTreeOptions, type ReadPdfOptions, type ReadSvgContentOptions, type ReconstructOptions, type Relationship, type RenderMarkdownOptions, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, RtfBytesSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, type SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, type SetDocumentMetadataOptions, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, SvgBytesSchema, type SvgDiagnostic, type SvgDiagnosticCode, type SvgDiagnosticSink, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, type SvgReadOptions, SvgUnsupportedDocumentKindError, type SvgWriteOptions, type TextBoxInit$2 as TextBoxInit, type UnifiedConversionOptions, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsBytesSchema, type XlsContentDocument, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectDocumentFormulas, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, createStandardFontMeasurer, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, docPdfCodec, docToPdf, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, embeddedPresentationSerialiser, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, patchDocxMetadata, pdfCodec, pdfToCsv, pdfToDoc, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPpt, pdfToPptx, pdfToRtf, pdfToSvg, pdfToXls, pdfToXlsx, pptPdfCodec, pptToPdf, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocContent, readDocumentMetadata, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readNativeDocumentTree, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptContent, readPptxContent, readRtfContent, readSvgContent, readWpdContent, readXlsContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, rtfPdfCodec, rtfToPdf, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writeDocContent, writePdf, writePptContent, writeRtfContent, writeXlsContent, xlsPdfCodec, xlsToPdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
|
138
|
+
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildCsvTextOptions, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, type BuildSvgTextOptions, COLOR_BLACK, type CellPosition, type CellRange, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type CompositionHop, type ContentBlock, ContentBlockSchema, type ContentCellFill, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionPlan, type ConversionRequest, type ConversionResult, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateMarkdownEditorOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePdfOptions, type CreatePptxOptions, CsvBytesSchema, CsvInvalidUtf8Error, CsvParseError, type CsvReadOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, type CsvWriteOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, DocBytesSchema, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, type DocumentFormulaEntry, type DocumentJsonResult, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocumentTree, type DocumentTreeJson, DocumentTreeSchema, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingLayoutResult, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontFace, FontFaceParseError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HeaderFooterPart, HeaderFooterPartSchema, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, type LatexDiagnostic, type LatexDiagnosticCode, type LatexDiagnosticSink, type LatexFormulaOptions, type LatexFormulaResult, type LatexLoweringResult, type LayoutColor, type LayoutDocument, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type LowerLatexOptions, MATH_LINT_CODES, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, type MarkdownMathLoweringOptions, MarkdownParagraph, type ParagraphInit as MarkdownParagraphInit, type MarkdownRenderDiagnostic, type MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, type MarkdownRenderDiagnosticSeverity, type MarkdownRenderDiagnosticSink, MarkdownRun, type RunInit as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit as MarkdownTableInit, MarkdownTableRow, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathLintCode, type MathLintDiagnostic, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, type MetadataOverrides, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, type OdbReportToDocxOptions, type OdbReportToOdtOptions, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$1 as OdtParagraphInit, OdtRun, type RunInit$1 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$1 as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageInit, type PageSize, type Part, PartSchema, type PatchDocxMetadataOptions, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, PdfInternalLinkItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptBytesSchema, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadCsvContentOptions, type ReadDocumentMetadataOptions, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadNativeDocumentTreeOptions, type ReadPdfOptions, type ReadSvgContentOptions, type ReconstructOptions, type Relationship, type RenderMarkdownOptions, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, RtfBytesSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, type SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, type SetDocumentMetadataOptions, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlFromClause, type SqlJoinClause, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, SvgBytesSchema, type SvgDiagnostic, type SvgDiagnosticCode, type SvgDiagnosticSink, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, type SvgReadOptions, SvgUnsupportedDocumentKindError, type SvgWriteOptions, type TextBoxInit$2 as TextBoxInit, type UnifiedConversionOptions, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsBytesSchema, type XlsContentDocument, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectDocumentFormulas, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, createStandardFontMeasurer, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, docPdfCodec, docToPdf, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, embeddedPresentationSerialiser, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, patchDocxMetadata, pdfCodec, pdfToCsv, pdfToDoc, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPpt, pdfToPptx, pdfToRtf, pdfToSvg, pdfToXls, pdfToXlsx, pptPdfCodec, pptToPdf, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocContent, readDocumentMetadata, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readNativeDocumentTree, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptContent, readPptxContent, readRtfContent, readSvgContent, readWpdContent, readXlsContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, rtfPdfCodec, rtfToPdf, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writeDocContent, writePdf, writePptContent, writeRtfContent, writeXlsContent, xlsPdfCodec, xlsToPdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
package/dist/index.d.ts
CHANGED
|
@@ -114,8 +114,8 @@ import { odbTablesToSpreadsheetDocument } from "./odb/spreadsheet.js";
|
|
|
114
114
|
import { readOdbForms, readOdbReports } from "./odb/components.js";
|
|
115
115
|
import { OdbTableNotFoundError, OdbTableNotSpecifiedError } from "./odb/csv.js";
|
|
116
116
|
import { i as tokenizeSql, n as SqlPunctuation, r as SqlToken, t as SqlComparisonOperator } from "./lexer-DgsW7jMA.js";
|
|
117
|
-
import { a as
|
|
118
|
-
import { n as evaluateSelect, t as SqlResultSet } from "./evaluate-
|
|
117
|
+
import { a as SqlJoinClause, c as SqlOperand, d as SqlSelectItem, f as SqlSelectStatement, i as SqlFromClause, l as SqlOrderByTerm, m as parseSelect, n as SqlAggregateFunction, o as SqlLiteral, p as SqlSortDirection, r as SqlColumnRef, s as SqlNameRef, t as SqlAggregateArgument, u as SqlPredicate } from "./parser-fyVOtBAo.js";
|
|
118
|
+
import { n as evaluateSelect, t as SqlResultSet } from "./evaluate-BKLK67uP.js";
|
|
119
119
|
import { HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError } from "./odb/sql/errors.js";
|
|
120
120
|
import { RptBandDefinition, RptBandInstance, RptBandKind, RptGroupDefinition, RptNamedFunctionDefinition, RptReportDefinition, RptReportRun, RptScope, evaluateRptBandOutsideData, runRptReport } from "./odb/formula/evaluate.js";
|
|
121
121
|
import { RptAggregateFunction, RptFormula, RptReference, parseRptFormula } from "./odb/formula/parser.js";
|
|
@@ -135,4 +135,4 @@ import { readDocContent, writeDocContent } from "doc-codec";
|
|
|
135
135
|
import { XlsContentDocument, readXlsContent, writeXlsContent } from "xls-codec";
|
|
136
136
|
import { RtfBytesSchema, readRtfContent, writeRtfContent } from "rtf-codec";
|
|
137
137
|
import { readWpdContent } from "wpd-codec";
|
|
138
|
-
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildCsvTextOptions, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, type BuildSvgTextOptions, COLOR_BLACK, type CellPosition, type CellRange, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type CompositionHop, type ContentBlock, ContentBlockSchema, type ContentCellFill, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionPlan, type ConversionRequest, type ConversionResult, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateMarkdownEditorOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePdfOptions, type CreatePptxOptions, CsvBytesSchema, CsvInvalidUtf8Error, CsvParseError, type CsvReadOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, type CsvWriteOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, DocBytesSchema, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, type DocumentFormulaEntry, type DocumentJsonResult, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocumentTree, type DocumentTreeJson, DocumentTreeSchema, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingLayoutResult, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontFace, FontFaceParseError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HeaderFooterPart, HeaderFooterPartSchema, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, type LatexDiagnostic, type LatexDiagnosticCode, type LatexDiagnosticSink, type LatexFormulaOptions, type LatexFormulaResult, type LatexLoweringResult, type LayoutColor, type LayoutDocument, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type LowerLatexOptions, MATH_LINT_CODES, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, type MarkdownMathLoweringOptions, MarkdownParagraph, type ParagraphInit as MarkdownParagraphInit, type MarkdownRenderDiagnostic, type MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, type MarkdownRenderDiagnosticSeverity, type MarkdownRenderDiagnosticSink, MarkdownRun, type RunInit as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit as MarkdownTableInit, MarkdownTableRow, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathLintCode, type MathLintDiagnostic, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, type MetadataOverrides, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, type OdbReportToDocxOptions, type OdbReportToOdtOptions, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$1 as OdtParagraphInit, OdtRun, type RunInit$1 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$1 as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageInit, type PageSize, type Part, PartSchema, type PatchDocxMetadataOptions, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, PdfInternalLinkItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptBytesSchema, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadCsvContentOptions, type ReadDocumentMetadataOptions, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadNativeDocumentTreeOptions, type ReadPdfOptions, type ReadSvgContentOptions, type ReconstructOptions, type Relationship, type RenderMarkdownOptions, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, RtfBytesSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, type SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, type SetDocumentMetadataOptions, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, SvgBytesSchema, type SvgDiagnostic, type SvgDiagnosticCode, type SvgDiagnosticSink, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, type SvgReadOptions, SvgUnsupportedDocumentKindError, type SvgWriteOptions, type TextBoxInit$2 as TextBoxInit, type UnifiedConversionOptions, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsBytesSchema, type XlsContentDocument, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectDocumentFormulas, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, createStandardFontMeasurer, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, docPdfCodec, docToPdf, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, embeddedPresentationSerialiser, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, patchDocxMetadata, pdfCodec, pdfToCsv, pdfToDoc, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPpt, pdfToPptx, pdfToRtf, pdfToSvg, pdfToXls, pdfToXlsx, pptPdfCodec, pptToPdf, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocContent, readDocumentMetadata, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readNativeDocumentTree, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptContent, readPptxContent, readRtfContent, readSvgContent, readWpdContent, readXlsContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, rtfPdfCodec, rtfToPdf, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writeDocContent, writePdf, writePptContent, writeRtfContent, writeXlsContent, xlsPdfCodec, xlsToPdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
|
138
|
+
export { type Alignment, type Attribute, AttributeSchema, type BinaryPart, BinaryPartSchema, type Box, type BuildCsvTextOptions, type BuildDocxPackageOptions, type BuildOdgPackageOptions, type BuildOdpPackageOptions, type BuildOdsPackageOptions, type BuildOdtPackageOptions, type BuildPptxPackageOptions, type BuildSvgTextOptions, COLOR_BLACK, type CellPosition, type CellRange, type CellTypeDeclineReason, type CellTypeInference, type CellTypeInferenceResult, type CellTypeInferenceSink, type CellTypeRule, type ClockPort, type Comment, CommentSchema, type CompactAttrPairs, type CompactPackage, CompactPackageSchema, type CompactPart, CompactPartSchema, type CompactXmlNode, CompactXmlNodeSchema, type CompositionHop, type ContentBlock, ContentBlockSchema, type ContentCellFill, type ContentCellValue, ContentCellValueSchema, type ContentDocument, type ContentDocumentJson, ContentDocumentSchema, type ContentDrawPage, ContentDrawPageSchema, type ContentImageBlock, ContentImageBlockSchema, type ContentListMembership, type ContentPageBreak, ContentPageBreakSchema, type ContentParagraph, ContentParagraphSchema, type ContentPathPoint, ContentPathPointSchema, type ContentPathSegment, ContentPathSegmentSchema, type ContentRun, ContentRunSchema, type ContentSection, ContentSectionSchema, type ContentShape, ContentShapeSchema, type ContentSheet, type ContentSheetCell, ContentSheetCellSchema, type ContentSheetColumn, ContentSheetColumnSchema, type ContentSheetImage, type ContentSheetPrintRange, ContentSheetPrintRangeSchema, type ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, type ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, type ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, type ContentSlide, ContentSlideSchema, type ContentStroke, ContentStrokeSchema, type ContentSubpath, ContentSubpathSchema, type ContentTable, type ContentTableCell, ContentTableCellSchema, type ContentTableRow, ContentTableRowSchema, ContentTableSchema, type ContentVector, ContentVectorSchema, type ConversionOptions, type ConversionPlan, type ConversionRequest, type ConversionResult, type CreateDocxOptions, type CreateEmptyDocxPackageOptions, type CreateEmptyOdgPackageOptions, type CreateEmptyOdpPackageOptions, type CreateEmptyOdsPackageOptions, type CreateEmptyOdtPackageOptions, type CreateEmptyPptxPackageOptions, type CreateMarkdownEditorOptions, type CreateOdgOptions, type CreateOdpOptions, type CreateOdsOptions, type CreateOdtOptions, type CreatePdfOptions, type CreatePptxOptions, CsvBytesSchema, CsvInvalidUtf8Error, CsvParseError, type CsvReadOptions, CsvSheetNotFoundError, CsvSheetNotSpecifiedError, CsvUnsupportedDocumentKindError, type CsvWriteOptions, DEFAULT_LAYOUT_FONT, DOCUMENT_FORMATS, type DefinedName, DefinedNameSchema, type Diagnostic, DocBytesSchema, type DocumentBridgeOptions, type DocumentConverter, type DocumentFontRegistryOptions, type DocumentFormat, DocumentFormatSchema, type DocumentFormulaEntry, type DocumentJsonResult, type DocumentPayload, type DocumentSchemaKind, type DocumentToPdfOptions, type DocumentTree, type DocumentTreeJson, DocumentTreeSchema, type DocxBody, DocxBytesSchema, DocxEditor, type DocxExtras, DocxParagraph, DocxRun, DocxTable, DocxTableCell, DocxTableRow, type DocxVerticalMerge, type DrawingLayoutOptions, type DrawingLayoutResult, type DrawingParagraphInit, type DrawingRunInit, type EngineLayoutOptions, SUPPORTED_BACKUP_FORMAT_VERSION as FIREBIRD_SUPPORTED_BACKUP_FORMAT_VERSION, FirebirdBackupFormatError, FirebirdBackupParseError, type FirebirdBackupSummary, FirebirdCompositeRecordUnsupportedError, FirebirdDataParseError, FirebirdSchemaParseError, FirebirdUnsupportedFieldTypeError, FontDeobfuscationError, type FontFace, FontFaceParseError, type FontRegistry, type FontRegistryOptions, type FontSourcePackage, type FontSubstitution, type Footnote, FootnoteSchema, type GridLattice, type HeaderFooterPart, HeaderFooterPartSchema, type HsqldbBinaryScript, HsqldbBinaryScriptParseError, type HsqldbColumn, type HsqldbDecodeOptions, HsqldbRowFormatError, HsqldbScriptParseError, HsqldbSqlEvaluationError, HsqldbSqlParseError, HsqldbSqlUnsupportedError, type HsqldbTable, LATEX_DIAGNOSTIC_CODES, LAYOUT_FORMAT_VERSION, type LatexDiagnostic, type LatexDiagnosticCode, type LatexDiagnosticSink, type LatexFormulaOptions, type LatexFormulaResult, type LatexLoweringResult, type LayoutColor, type LayoutDocument, LayoutDocumentSchema, type LayoutEllipse, type LayoutFont, type LayoutFormulaOptions, type LayoutImage, type LayoutImageAsset, type LayoutItem, type LayoutLine, type LayoutLink, type LayoutMetadata, type LayoutPage, type LayoutPath, type LayoutPathSegment, type LayoutRect, type LayoutSubpath, type LayoutText, type LoadedMathFont, type LowerLatexOptions, MATH_LINT_CODES, type Margins, type MarkdownBody, MarkdownBytesSchema, MarkdownEditor, MarkdownList, type MarkdownListInit, type MarkdownMathLoweringOptions, MarkdownParagraph, type ParagraphInit as MarkdownParagraphInit, type MarkdownRenderDiagnostic, type MarkdownRenderDiagnosticCode, MarkdownRenderDiagnosticCodes, type MarkdownRenderDiagnosticSeverity, type MarkdownRenderDiagnosticSink, MarkdownRun, type RunInit as MarkdownRunInit, MarkdownTable, MarkdownTableCell, type TableInit as MarkdownTableInit, MarkdownTableRow, type MathAssembledGlyphs, type MathBox, type MathColor, type MathDiagnostic, type MathDiagnosticKind, type MathFont, type MathFontDescriptorMetrics, type MathFontMetrics, type MathGlyphMetrics, type MathGlyphPlacement, type MathGlyphRun, type MathLayoutItem, type MathLayoutResult, type MathLintCode, type MathLintDiagnostic, type MathMlAttribute, type MathMlElement, type MathMlNode, type MathMlText, type MathRule, type MathStretchAxis, type MathStretchGlyph, type MathStretchResult, type MathStroke, type MathVariant, type MetadataOverrides, NOOP_DIAGNOSTIC_SINK, type NumberingDefinition, NumberingDefinitionSchema, type NumberingDefinitions, type NumberingLevel, NumberingLevelSchema, type OdbComponentInfo, type OdbConnectionInfo, type OdbConversionOptions, type OdbForm, type OdbFormControl, type OdbFormDefinition, type OdbInventory, OdbNoEmbeddedDataSourceError, type OdbQueryInfo, type OdbReport, type OdbReportBand, type OdbReportContentOptions, OdbReportDataSourceError, type OdbReportElement, type OdbReportFunction, type OdbReportGroup, OdbReportNotSpecifiedError, type OdbReportToDocxOptions, type OdbReportToOdtOptions, OdbTableNotFoundError, OdbTableNotSpecifiedError, type OdbToCsvOptions, type OdbUnsupportedFormat, OdbUnsupportedFormatError, OdfEmbeddedFontError, OdgBoxVector, type BoxVectorInit as OdgBoxVectorInit, OdgBytesSchema, OdgEditor, OdgLineVector, type LineVectorInit as OdgLineVectorInit, OdgPage, type PageImageInit as OdgPageImageInit, OdgPathVector, type PathVectorInit as OdgPathVectorInit, type TextBoxInit as OdgTextBoxInit, type OdgVector, type OdgVectorKind, type OdmToPdfOptions, OdmUnresolvedSectionError, OdpBytesSchema, OdpEditor, OdpShape, OdpSlide, type SlideImageInit as OdpSlideImageInit, type SlideTableInit as OdpSlideTableInit, type TextBoxInit$1 as OdpTextBoxInit, OdsBytesSchema, OdsCell, OdsEditor, OdsSheet, type OdtBody, OdtBytesSchema, OdtEditor, OdtList, OdtListItem, OdtParagraph, type ParagraphInit$1 as OdtParagraphInit, OdtRun, type RunInit$1 as OdtRunInit, OdtTable, OdtTableCell, type TableInit$1 as OdtTableInit, OdtTableRow, type OmmlDiagnostic, type OmmlDiagnosticKind, type OmmlReadResult, type OmmlWriteResult, OoxmlEmbeddedFontError, type OperatorProperties, PAGE_SIZE_A4, PAGE_SIZE_LETTER, type Package, PackageSchema, type PageInit, type PageSize, type Part, PartSchema, type PatchDocxMetadataOptions, PdfBytesSchema, type PdfDiagnostic, type PdfDiagnosticSeverity, type PdfDiagnosticSink, PdfEditor, type PdfEllipseInit, PdfEllipseItem, PdfEncryptedError, type PdfImageInit, PdfImageItem, PdfInternalLinkItem, type PdfItem, type PdfLineInit, PdfLineItem, type PdfLinkInit, PdfLinkItem, PdfPage, PdfParseError, type PdfPathInit, PdfPathItem, type PdfRectInit, PdfRectItem, type PdfTextInit, PdfTextItem, type PdfToDocumentOptions, type PositionedFormula, PptBytesSchema, PptxBytesSchema, PptxEditor, PptxShape, PptxSlide, PptxTable, PptxTableCell, type PptxTableInit, PptxTableRow, type PresentationLayoutResult, type ProvidedFont, type ReadCsvContentOptions, type ReadDocumentMetadataOptions, type ReadDocxContentOptions, type ReadFirebirdBackupResult, type ReadNativeDocumentTreeOptions, type ReadPdfOptions, type ReadSvgContentOptions, type ReconstructOptions, type Relationship, type RenderMarkdownOptions, type ResolvedFace, type RptAggregateFunction, type RptBandDefinition, type RptBandInstance, type RptBandKind, type RptFormula, RptFormulaEvaluationError, RptFormulaParseError, RptFormulaUnsupportedError, type RptGroupDefinition, type RptNamedFunctionDefinition, type RptReference, type RptReportDefinition, type RptReportRun, RptReportStructureError, type RptScope, RtfBytesSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, SVG_DIAGNOSTIC_CODES, type SectionHeaderFooterReferences, SectionHeaderFooterReferencesSchema, type SetDocumentMetadataOptions, type SheetsLayoutOptions, type SlideImageInit$1 as SlideImageInit, type SlideTableInit$1 as SlideTableInit, type SlidesLayoutOptions, type SpreadsheetLayoutResult, type SqlAggregateArgument, type SqlAggregateFunction, type SqlColumnRef, type SqlComparisonOperator, type SqlFromClause, type SqlJoinClause, type SqlLiteral, type SqlNameRef, type SqlOperand, type SqlOrderByTerm, type SqlPredicate, type SqlPunctuation, type SqlResultSet, type SqlSelectItem, type SqlSelectStatement, type SqlSortDirection, type SqlToken, SvgBytesSchema, type SvgDiagnostic, type SvgDiagnosticCode, type SvgDiagnosticSink, SvgInvalidUtf8Error, SvgMissingRootElementError, SvgMultiPageNotSpecifiedError, SvgPageNotFoundError, type SvgReadOptions, SvgUnsupportedDocumentKindError, type SvgWriteOptions, type TextBoxInit$2 as TextBoxInit, type UnifiedConversionOptions, UnrecognizedDocumentSchemaError, UnsupportedFontSourceFormatError, UnsupportedPackageFormatError, type WinAnsiSubstitution, type WordprocessingLayoutResult, type WritePdfOptions, XlsBytesSchema, type XlsContentDocument, XlsxBytesSchema, type XmlCdata, XmlCdataSchema, type XmlComment, XmlCommentSchema, type XmlDeclaration, XmlDeclarationSchema, type XmlElement, XmlElementSchema, type XmlNode, XmlNodeSchema, type XmlPart, XmlPartSchema, type XmlPi, XmlPiSchema, type XmlText, XmlTextSchema, applyMathVariant, attr, base64ToBytes, buildCsvText, buildDocumentBytes, buildDocxPackage, buildDrawingBlock, buildFormulaBlock, buildMarkdownText, buildOdgPackage, buildOdpPackage, buildOdsPackage, buildOdtPackage, buildOfficeMath, buildOfficeMathParagraph, buildPptxPackage, buildSvgText, buildXlsxPackage, buildXml, bytesToBase64, cellReference, childrenWithTag, collectDocumentFormulas, collectOfficeMathElements, columnIndexToLetters, columnLettersToIndex, compactCodec, compactPackageCodec, contentDocumentWithSchema, convertDocument, convertDrawingToLayout, convertPresentationToLayout, convertSpreadsheetToLayout, convertWordprocessingToLayout, createDocumentFontRegistry, createDocx, createFontMeasurer, createFontRegistry, createLocalDocumentConverter, createMarkdownEditor, createOdg, createOdp, createOds, createOdt, createPdf, createPptx, createStandardFontMeasurer, csvMarkdownCodec, csvPdfCodec, csvToMarkdown, csvToOds, csvToPdf, csvToXlsx, decodeCompactPackage, decodeCsvText, decodeDocumentPackage, decodeEntities, decodeHsqldbCachedTables, decodeMarkdownText, decodeOdbPackage, decodePackage, decodeSvgText, deobfuscateEmbeddedFont, deriveFontKey, describeFontFace, detectGridLattice, docPdfCodec, docToPdf, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, docxPdfCodec, docxToMarkdown, docxToOdt, docxToPdf, docxToPptx, drawingOfBlock, elementChildren, elementLocalName, elementsWithTag, embeddedPresentationSerialiser, encodeCompactPackage, encodeCsvText, encodeDocumentPackage, encodeMarkdownText, encodePackage, encodeSvgText, evaluateRptBandOutsideData, evaluateSelect, extractOdfEmbeddedFonts, extractOoxmlEmbeddedFonts, extractSourceFonts, extractSourceFontsForFormat, firstChildByLocalName, fixedClock, flipY, formulaDocument, formulaOfBlock, formulaPlaceholderText, fromCompact, displayTextFor as hsqldbCellDisplayText, inferCellValue, inflateHsqldbCompressedScript, isCompactXmlNode, isContentBlock, isMathMlElement, isMathVariant, isXmlNode, latexToFormula, layoutDocumentFromPackage, layoutFormula, lintMathCoherence, loadMathFont, localName, looksLikeSfnt, lowerLatex, lowerMarkdownMath, mapMathVariant, markdownDocxCodec, markdownOdtCodec, markdownPdfCodec, markdownToCsv, markdownToDocx, markdownToOdt, markdownToPdf, markdownToXlsx, textContent as mathMlTextContent, odbReportCommandSql, odbReportGroupChain, odbReportToDocx, odbReportToOdt, odbReportToPdf, odbTablesToSpreadsheetDocument, odbToCsv, odbToXlsx, odfToPdf, odgPdfCodec, odgSvgCodec, odgToPdf, odgToSvg, odmToPdf, odpPdfCodec, odpPptxCodec, odpToOdt, odpToPdf, odpToPptx, odsCsvCodec, odsPdfCodec, odsToCsv, odsToPdf, odsToXlsx, odsXlsxCodec, odtDocxCodec, odtPdfCodec, odtToDocx, odtToMarkdown, odtToOdp, odtToPdf, openDocx, openMarkdown, openOdg, openOdp, openOds, openOdt, openPdf, openPptx, operatorProperties, packageCodec, parseCellReference, parseHsqldbBinaryScript, parseHsqldbScript, parsePackage, parseRangeReference, parseRptFormula, parseSelect, parseXml, patchDocxMetadata, pdfCodec, pdfToCsv, pdfToDoc, pdfToDocx, pdfToMarkdown, pdfToOdg, pdfToOdp, pdfToOds, pdfToOdt, pdfToPpt, pdfToPptx, pdfToRtf, pdfToSvg, pdfToXls, pdfToXlsx, pptPdfCodec, pptToPdf, pptxPdfCodec, pptxToDocx, pptxToOdp, pptxToPdf, rangeReference, readCsvContent, readDocContent, readDocumentMetadata, readDocxContent, readDocxExtras, readFirebirdBackup, readMarkdownContent, readNativeDocumentTree, readOdbForm, readOdbForms, readOdbInventory, readOdbReport, readOdbReportContent, readOdbReports, readOdbTables, readOdfEmbeddedFormula, readOdfFormulaContent, readOdgContent, readOdpContent, readOdsContent, readOdtContent, readOfficeMath, readPdf, readPptContent, readPptxContent, readRtfContent, readSvgContent, readWpdContent, readXlsContent, readXlsxContent, reconstructDrawing, reconstructPresentation, reconstructSpreadsheet, reconstructWordprocessing, renderContentDocumentToMarkdown, renderOdbReportContent, resolveCompositionPlan, resolveMetadataTimestamps, resolveOdbComponent, resolveOdbReportRows, resolveRelationships, rgbHexToColor, rootElement, rptBandDefinition, rptDefinitionFromReport, rtfPdfCodec, rtfToPdf, runRptReport, schemaUriFor, serializePackage, setDocumentMetadata, svgPdfCodec, svgToOdg, svgToPdf, systemClock, textContent$1 as textContent, throwIfAborted, toCompact, tokenizeSql, unzipPackage, walk, writeDocContent, writePdf, writePptContent, writeRtfContent, writeXlsContent, xlsPdfCodec, xlsToPdf, xlsxCsvCodec, xlsxMarkdownCodec, xlsxPdfCodec, xlsxToCsv, xlsxToMarkdown, xlsxToOds, xlsxToPdf, xmlCodec, zipPackage };
|
|
@@ -44,8 +44,86 @@ function dropOverlappingRepeatsWithinLine(items) {
|
|
|
44
44
|
}
|
|
45
45
|
return kept;
|
|
46
46
|
}
|
|
47
|
+
const REDRAW_PASS_REWIND_TOLERANCE_PT = 2;
|
|
48
|
+
const MIN_REDRAW_PASS_TEXT_LENGTH = 12;
|
|
49
|
+
const REDRAW_PASS_SIMILARITY_THRESHOLD = .6;
|
|
50
|
+
function groupByBaselineInDocumentOrder(items) {
|
|
51
|
+
const groups = [];
|
|
52
|
+
for (const item of items) {
|
|
53
|
+
const tolerance = LINE_BASELINE_TOLERANCE_FACTOR * item.sizePt;
|
|
54
|
+
const group = groups.find((g) => Math.abs(g.baselineY - item.yPt) <= tolerance);
|
|
55
|
+
if (group === void 0) groups.push({
|
|
56
|
+
baselineY: item.yPt,
|
|
57
|
+
items: [item]
|
|
58
|
+
});
|
|
59
|
+
else group.items.push(item);
|
|
60
|
+
}
|
|
61
|
+
return groups.map((g) => g.items);
|
|
62
|
+
}
|
|
63
|
+
function splitIntoPasses(group) {
|
|
64
|
+
const passes = [];
|
|
65
|
+
for (const item of group) {
|
|
66
|
+
const current = passes.at(-1);
|
|
67
|
+
const itemRightPt = item.xPt + (item.widthPt ?? 0);
|
|
68
|
+
if (current !== void 0 && item.xPt >= current.endXPt - REDRAW_PASS_REWIND_TOLERANCE_PT) {
|
|
69
|
+
current.items.push(item);
|
|
70
|
+
current.endXPt = Math.max(current.endXPt, itemRightPt);
|
|
71
|
+
} else passes.push({
|
|
72
|
+
items: [item],
|
|
73
|
+
startXPt: item.xPt,
|
|
74
|
+
endXPt: itemRightPt
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return passes;
|
|
78
|
+
}
|
|
79
|
+
function passText(pass) {
|
|
80
|
+
return pass.items.map((item) => item.text).join("").trim();
|
|
81
|
+
}
|
|
82
|
+
function passesOverlap(a, b) {
|
|
83
|
+
return a.startXPt < b.endXPt && b.startXPt < a.endXPt;
|
|
84
|
+
}
|
|
85
|
+
function levenshteinDistance(a, b) {
|
|
86
|
+
const memo = /* @__PURE__ */ new Map();
|
|
87
|
+
function distance(i, j) {
|
|
88
|
+
if (i === 0) return j;
|
|
89
|
+
if (j === 0) return i;
|
|
90
|
+
const key = `${String(i)}:${String(j)}`;
|
|
91
|
+
const cached = memo.get(key);
|
|
92
|
+
if (cached !== void 0) return cached;
|
|
93
|
+
const cost = a.charAt(i - 1) === b.charAt(j - 1) ? 0 : 1;
|
|
94
|
+
const result = Math.min(distance(i - 1, j) + 1, distance(i, j - 1) + 1, distance(i - 1, j - 1) + cost);
|
|
95
|
+
memo.set(key, result);
|
|
96
|
+
return result;
|
|
97
|
+
}
|
|
98
|
+
return distance(a.length, b.length);
|
|
99
|
+
}
|
|
100
|
+
function textSimilarity(a, b) {
|
|
101
|
+
const maxLength = Math.max(a.length, b.length);
|
|
102
|
+
if (maxLength === 0) return 1;
|
|
103
|
+
return 1 - levenshteinDistance(a, b) / maxLength;
|
|
104
|
+
}
|
|
105
|
+
function dropFuzzyRedrawnPasses(items) {
|
|
106
|
+
const toDrop = /* @__PURE__ */ new Set();
|
|
107
|
+
for (const group of groupByBaselineInDocumentOrder(items)) {
|
|
108
|
+
const passes = splitIntoPasses(group);
|
|
109
|
+
if (passes.length < 2) continue;
|
|
110
|
+
const [first, ...rest] = passes;
|
|
111
|
+
if (first === void 0) continue;
|
|
112
|
+
const firstText = passText(first);
|
|
113
|
+
if (firstText.length < MIN_REDRAW_PASS_TEXT_LENGTH) continue;
|
|
114
|
+
for (const candidate of rest) {
|
|
115
|
+
const candidateText = passText(candidate);
|
|
116
|
+
if (candidateText.length < MIN_REDRAW_PASS_TEXT_LENGTH) continue;
|
|
117
|
+
if (!passesOverlap(first, candidate)) continue;
|
|
118
|
+
if (textSimilarity(firstText, candidateText) < REDRAW_PASS_SIMILARITY_THRESHOLD) continue;
|
|
119
|
+
for (const item of candidate.items) toDrop.add(item);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
if (toDrop.size === 0) return items;
|
|
123
|
+
return items.filter((item) => !toDrop.has(item));
|
|
124
|
+
}
|
|
47
125
|
function clusterIntoLines(items) {
|
|
48
|
-
const sorted = [...dropDuplicatePaints(items)].sort((a, b) => b.yPt - a.yPt || a.xPt - b.xPt);
|
|
126
|
+
const sorted = [...dropDuplicatePaints(dropFuzzyRedrawnPasses(items))].sort((a, b) => b.yPt - a.yPt || a.xPt - b.xPt);
|
|
49
127
|
const working = [];
|
|
50
128
|
for (const item of sorted) {
|
|
51
129
|
const tolerance = LINE_BASELINE_TOLERANCE_FACTOR * item.sizePt;
|
|
@@ -43,8 +43,86 @@ function dropOverlappingRepeatsWithinLine(items) {
|
|
|
43
43
|
}
|
|
44
44
|
return kept;
|
|
45
45
|
}
|
|
46
|
+
const REDRAW_PASS_REWIND_TOLERANCE_PT = 2;
|
|
47
|
+
const MIN_REDRAW_PASS_TEXT_LENGTH = 12;
|
|
48
|
+
const REDRAW_PASS_SIMILARITY_THRESHOLD = .6;
|
|
49
|
+
function groupByBaselineInDocumentOrder(items) {
|
|
50
|
+
const groups = [];
|
|
51
|
+
for (const item of items) {
|
|
52
|
+
const tolerance = LINE_BASELINE_TOLERANCE_FACTOR * item.sizePt;
|
|
53
|
+
const group = groups.find((g) => Math.abs(g.baselineY - item.yPt) <= tolerance);
|
|
54
|
+
if (group === void 0) groups.push({
|
|
55
|
+
baselineY: item.yPt,
|
|
56
|
+
items: [item]
|
|
57
|
+
});
|
|
58
|
+
else group.items.push(item);
|
|
59
|
+
}
|
|
60
|
+
return groups.map((g) => g.items);
|
|
61
|
+
}
|
|
62
|
+
function splitIntoPasses(group) {
|
|
63
|
+
const passes = [];
|
|
64
|
+
for (const item of group) {
|
|
65
|
+
const current = passes.at(-1);
|
|
66
|
+
const itemRightPt = item.xPt + (item.widthPt ?? 0);
|
|
67
|
+
if (current !== void 0 && item.xPt >= current.endXPt - REDRAW_PASS_REWIND_TOLERANCE_PT) {
|
|
68
|
+
current.items.push(item);
|
|
69
|
+
current.endXPt = Math.max(current.endXPt, itemRightPt);
|
|
70
|
+
} else passes.push({
|
|
71
|
+
items: [item],
|
|
72
|
+
startXPt: item.xPt,
|
|
73
|
+
endXPt: itemRightPt
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return passes;
|
|
77
|
+
}
|
|
78
|
+
function passText(pass) {
|
|
79
|
+
return pass.items.map((item) => item.text).join("").trim();
|
|
80
|
+
}
|
|
81
|
+
function passesOverlap(a, b) {
|
|
82
|
+
return a.startXPt < b.endXPt && b.startXPt < a.endXPt;
|
|
83
|
+
}
|
|
84
|
+
function levenshteinDistance(a, b) {
|
|
85
|
+
const memo = /* @__PURE__ */ new Map();
|
|
86
|
+
function distance(i, j) {
|
|
87
|
+
if (i === 0) return j;
|
|
88
|
+
if (j === 0) return i;
|
|
89
|
+
const key = `${String(i)}:${String(j)}`;
|
|
90
|
+
const cached = memo.get(key);
|
|
91
|
+
if (cached !== void 0) return cached;
|
|
92
|
+
const cost = a.charAt(i - 1) === b.charAt(j - 1) ? 0 : 1;
|
|
93
|
+
const result = Math.min(distance(i - 1, j) + 1, distance(i, j - 1) + 1, distance(i - 1, j - 1) + cost);
|
|
94
|
+
memo.set(key, result);
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
return distance(a.length, b.length);
|
|
98
|
+
}
|
|
99
|
+
function textSimilarity(a, b) {
|
|
100
|
+
const maxLength = Math.max(a.length, b.length);
|
|
101
|
+
if (maxLength === 0) return 1;
|
|
102
|
+
return 1 - levenshteinDistance(a, b) / maxLength;
|
|
103
|
+
}
|
|
104
|
+
function dropFuzzyRedrawnPasses(items) {
|
|
105
|
+
const toDrop = /* @__PURE__ */ new Set();
|
|
106
|
+
for (const group of groupByBaselineInDocumentOrder(items)) {
|
|
107
|
+
const passes = splitIntoPasses(group);
|
|
108
|
+
if (passes.length < 2) continue;
|
|
109
|
+
const [first, ...rest] = passes;
|
|
110
|
+
if (first === void 0) continue;
|
|
111
|
+
const firstText = passText(first);
|
|
112
|
+
if (firstText.length < MIN_REDRAW_PASS_TEXT_LENGTH) continue;
|
|
113
|
+
for (const candidate of rest) {
|
|
114
|
+
const candidateText = passText(candidate);
|
|
115
|
+
if (candidateText.length < MIN_REDRAW_PASS_TEXT_LENGTH) continue;
|
|
116
|
+
if (!passesOverlap(first, candidate)) continue;
|
|
117
|
+
if (textSimilarity(firstText, candidateText) < REDRAW_PASS_SIMILARITY_THRESHOLD) continue;
|
|
118
|
+
for (const item of candidate.items) toDrop.add(item);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (toDrop.size === 0) return items;
|
|
122
|
+
return items.filter((item) => !toDrop.has(item));
|
|
123
|
+
}
|
|
46
124
|
function clusterIntoLines(items) {
|
|
47
|
-
const sorted = [...dropDuplicatePaints(items)].sort((a, b) => b.yPt - a.yPt || a.xPt - b.xPt);
|
|
125
|
+
const sorted = [...dropDuplicatePaints(dropFuzzyRedrawnPasses(items))].sort((a, b) => b.yPt - a.yPt || a.xPt - b.xPt);
|
|
48
126
|
const working = [];
|
|
49
127
|
for (const item of sorted) {
|
|
50
128
|
const tolerance = LINE_BASELINE_TOLERANCE_FACTOR * item.sizePt;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SqlResultSet } from "../../evaluate-
|
|
1
|
+
import { t as SqlResultSet } from "../../evaluate-DjUkdPfO.cjs";
|
|
2
2
|
import { ContentCellValue } from "document-schema.js";
|
|
3
3
|
//#region src/odb/formula/evaluate.d.ts
|
|
4
4
|
type RptBandKind = "report-header" | "group-header" | "detail" | "group-footer" | "report-footer";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as SqlResultSet } from "../../evaluate-
|
|
1
|
+
import { t as SqlResultSet } from "../../evaluate-BKLK67uP.js";
|
|
2
2
|
import { ContentCellValue } from "document-schema.js";
|
|
3
3
|
//#region src/odb/formula/evaluate.d.ts
|
|
4
4
|
type RptBandKind = "report-header" | "group-header" | "detail" | "group-footer" | "report-footer";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as HsqldbDecodeOptions } from "../../rowformat-Cl2exlEh.cjs";
|
|
2
|
-
import { t as SqlResultSet } from "../../evaluate-
|
|
2
|
+
import { t as SqlResultSet } from "../../evaluate-DjUkdPfO.cjs";
|
|
3
3
|
import { OdbQueryInfo, OdbReport, Package } from "odf.js";
|
|
4
4
|
//#region src/odb/report/source.d.ts
|
|
5
5
|
declare class OdbReportDataSourceError extends Error {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as HsqldbDecodeOptions } from "../../rowformat-Cl2exlEh.js";
|
|
2
|
-
import { t as SqlResultSet } from "../../evaluate-
|
|
2
|
+
import { t as SqlResultSet } from "../../evaluate-BKLK67uP.js";
|
|
3
3
|
import { OdbQueryInfo, OdbReport, Package } from "odf.js";
|
|
4
4
|
//#region src/odb/report/source.d.ts
|
|
5
5
|
declare class OdbReportDataSourceError extends Error {
|
package/dist/odb/sql/errors.cjs
CHANGED
|
@@ -8,7 +8,7 @@ var HsqldbSqlUnsupportedError = class extends Error {
|
|
|
8
8
|
construct;
|
|
9
9
|
sql;
|
|
10
10
|
constructor(construct, sql) {
|
|
11
|
-
super(`HSQLDB SQL: ${construct} is not supported by this bounded
|
|
11
|
+
super(`HSQLDB SQL: ${construct} is not supported by this bounded query engine -- in statement: ${truncateForMessage(sql)}`);
|
|
12
12
|
this.name = "HsqldbSqlUnsupportedError";
|
|
13
13
|
this.construct = construct;
|
|
14
14
|
this.sql = sql;
|
package/dist/odb/sql/errors.js
CHANGED
|
@@ -7,7 +7,7 @@ var HsqldbSqlUnsupportedError = class extends Error {
|
|
|
7
7
|
construct;
|
|
8
8
|
sql;
|
|
9
9
|
constructor(construct, sql) {
|
|
10
|
-
super(`HSQLDB SQL: ${construct} is not supported by this bounded
|
|
10
|
+
super(`HSQLDB SQL: ${construct} is not supported by this bounded query engine -- in statement: ${truncateForMessage(sql)}`);
|
|
11
11
|
this.name = "HsqldbSqlUnsupportedError";
|
|
12
12
|
this.construct = construct;
|
|
13
13
|
this.sql = sql;
|
|
@@ -71,34 +71,65 @@ function resolveTable(tables, ref, sql) {
|
|
|
71
71
|
if (table === void 0) throw new require_odb_sql_errors.HsqldbSqlEvaluationError(`table "${resolvedName}" not found`, sql);
|
|
72
72
|
return table;
|
|
73
73
|
}
|
|
74
|
+
function resolveColumnIndex(columns, candidateIndices, ref, sql) {
|
|
75
|
+
let firstExact;
|
|
76
|
+
let exactCount = 0;
|
|
77
|
+
for (const index of candidateIndices) if (columns[index]?.columnName === ref.name) {
|
|
78
|
+
exactCount += 1;
|
|
79
|
+
firstExact ??= index;
|
|
80
|
+
}
|
|
81
|
+
if (exactCount > 1) throw new require_odb_sql_errors.HsqldbSqlEvaluationError(`column "${ref.name}" is ambiguous -- it matches more than one joined column named "${ref.name}"`, sql);
|
|
82
|
+
if (firstExact !== void 0) return firstExact;
|
|
83
|
+
if (!ref.quoted) {
|
|
84
|
+
let firstFolded;
|
|
85
|
+
const foldedNames = [];
|
|
86
|
+
for (const index of candidateIndices) {
|
|
87
|
+
const name = columns[index]?.columnName;
|
|
88
|
+
if (name?.toUpperCase() !== ref.name) continue;
|
|
89
|
+
foldedNames.push(name);
|
|
90
|
+
firstFolded ??= index;
|
|
91
|
+
}
|
|
92
|
+
if (foldedNames.length > 1) throw new require_odb_sql_errors.HsqldbSqlEvaluationError(`column "${ref.name}" is ambiguous -- it matches ${foldedNames.join(", ")} case-insensitively`, sql);
|
|
93
|
+
if (firstFolded !== void 0) return firstFolded;
|
|
94
|
+
}
|
|
95
|
+
throw new require_odb_sql_errors.HsqldbSqlEvaluationError(`column "${ref.name}" not found -- available: ${candidateIndices.length === 0 ? "(none)" : candidateIndices.map((index) => columns[index]?.columnName ?? "?").join(", ")}`, sql);
|
|
96
|
+
}
|
|
74
97
|
var ColumnResolver = class {
|
|
75
|
-
table;
|
|
76
98
|
sql;
|
|
77
99
|
cache = /* @__PURE__ */ new Map();
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
100
|
+
columns;
|
|
101
|
+
tableNames;
|
|
102
|
+
constructor(tables, sql) {
|
|
81
103
|
this.sql = sql;
|
|
82
|
-
this.
|
|
104
|
+
this.tableNames = tables.map((table) => table.tableName);
|
|
105
|
+
this.columns = tables.flatMap((table) => table.columns.map((column) => ({
|
|
106
|
+
tableName: table.tableName,
|
|
107
|
+
columnName: column.name
|
|
108
|
+
})));
|
|
109
|
+
}
|
|
110
|
+
get columnCount() {
|
|
111
|
+
return this.columns.length;
|
|
83
112
|
}
|
|
84
113
|
nameAt(index) {
|
|
85
|
-
const
|
|
86
|
-
if (
|
|
87
|
-
return
|
|
114
|
+
const column = this.columns[index];
|
|
115
|
+
if (column === void 0) throw new require_odb_sql_errors.HsqldbSqlEvaluationError(`column index ${String(index)} is outside the joined column list`, this.sql);
|
|
116
|
+
return column.columnName;
|
|
88
117
|
}
|
|
89
118
|
indexOf(ref) {
|
|
90
119
|
const cached = this.cache.get(ref);
|
|
91
120
|
if (cached !== void 0) return cached;
|
|
121
|
+
let candidateIndices;
|
|
92
122
|
if (ref.qualifier !== void 0) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
123
|
+
const qualifierName = resolveName(this.tableNames, ref.qualifier, "table qualifier", this.sql);
|
|
124
|
+
candidateIndices = this.columns.map((column, index) => column.tableName === qualifierName ? index : -1).filter((index) => index >= 0);
|
|
125
|
+
} else candidateIndices = this.columns.map((_column, index) => index);
|
|
126
|
+
const index = resolveColumnIndex(this.columns, candidateIndices, ref.column, this.sql);
|
|
96
127
|
this.cache.set(ref, index);
|
|
97
128
|
return index;
|
|
98
129
|
}
|
|
99
130
|
valueAt(index, row) {
|
|
100
131
|
const value = row[index];
|
|
101
|
-
if (value === void 0) throw new require_odb_sql_errors.HsqldbSqlEvaluationError(`malformed
|
|
132
|
+
if (value === void 0) throw new require_odb_sql_errors.HsqldbSqlEvaluationError(`malformed joined row: it carries ${String(row.length)} values but the joined column list declares ${String(this.columns.length)}`, this.sql);
|
|
102
133
|
return value;
|
|
103
134
|
}
|
|
104
135
|
valueOf(ref, row) {
|
|
@@ -200,11 +231,11 @@ function groupKeyOf(values) {
|
|
|
200
231
|
}
|
|
201
232
|
}).join("\0");
|
|
202
233
|
}
|
|
203
|
-
function planSelectList(statement,
|
|
234
|
+
function planSelectList(statement, resolver) {
|
|
204
235
|
const plan = [];
|
|
205
236
|
for (const item of statement.items) switch (item.kind) {
|
|
206
237
|
case "star":
|
|
207
|
-
for (
|
|
238
|
+
for (let index = 0; index < resolver.columnCount; index += 1) plan.push({
|
|
208
239
|
kind: "column",
|
|
209
240
|
index,
|
|
210
241
|
text: resolver.nameAt(index)
|
|
@@ -295,12 +326,32 @@ function evaluateGrouped(statement, plan, matching, resolver) {
|
|
|
295
326
|
rows: sortRows(sortable, statement.orderBy.map((term) => term.direction), statement.sql)
|
|
296
327
|
};
|
|
297
328
|
}
|
|
329
|
+
function joinTables(from, tables, sql) {
|
|
330
|
+
const baseTable = resolveTable(tables, from.table, sql);
|
|
331
|
+
const resolvedTables = [baseTable];
|
|
332
|
+
let rows = baseTable.rows;
|
|
333
|
+
for (const join of from.joins) {
|
|
334
|
+
const joinTable = resolveTable(tables, join.table, sql);
|
|
335
|
+
const resolver = new ColumnResolver([...resolvedTables, joinTable], sql);
|
|
336
|
+
const nextRows = [];
|
|
337
|
+
for (const leftRow of rows) for (const rightRow of joinTable.rows) {
|
|
338
|
+
const combined = [...leftRow, ...rightRow];
|
|
339
|
+
if (evaluatePredicate(join.on, combined, resolver, sql) === "true") nextRows.push(combined);
|
|
340
|
+
}
|
|
341
|
+
rows = nextRows;
|
|
342
|
+
resolvedTables.push(joinTable);
|
|
343
|
+
}
|
|
344
|
+
return {
|
|
345
|
+
resolvedTables,
|
|
346
|
+
rows
|
|
347
|
+
};
|
|
348
|
+
}
|
|
298
349
|
function evaluateSelect(statement, tables) {
|
|
299
|
-
const
|
|
300
|
-
const resolver = new ColumnResolver(
|
|
301
|
-
const plan = planSelectList(statement,
|
|
350
|
+
const { resolvedTables, rows } = joinTables(statement.from, tables, statement.sql);
|
|
351
|
+
const resolver = new ColumnResolver(resolvedTables, statement.sql);
|
|
352
|
+
const plan = planSelectList(statement, resolver);
|
|
302
353
|
const where = statement.where;
|
|
303
|
-
const matching = where === void 0 ?
|
|
354
|
+
const matching = where === void 0 ? rows : rows.filter((row) => evaluatePredicate(where, row, resolver, statement.sql) === "true");
|
|
304
355
|
const hasAggregate = plan.some((item) => item.kind === "aggregate");
|
|
305
356
|
if (statement.groupBy.length > 0 || hasAggregate) {
|
|
306
357
|
if (statement.groupBy.length > 0 && statement.items.some((item) => item.kind === "star")) throw new require_odb_sql_errors.HsqldbSqlEvaluationError("SELECT * is not valid with GROUP BY -- name the grouped columns and the aggregates explicitly", statement.sql);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as evaluateSelect, t as SqlResultSet } from "../../evaluate-
|
|
1
|
+
import { n as evaluateSelect, t as SqlResultSet } from "../../evaluate-DjUkdPfO.cjs";
|
|
2
2
|
export { SqlResultSet, evaluateSelect };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as evaluateSelect, t as SqlResultSet } from "../../evaluate-
|
|
1
|
+
import { n as evaluateSelect, t as SqlResultSet } from "../../evaluate-BKLK67uP.js";
|
|
2
2
|
export { SqlResultSet, evaluateSelect };
|
package/dist/odb/sql/evaluate.js
CHANGED
|
@@ -70,34 +70,65 @@ function resolveTable(tables, ref, sql) {
|
|
|
70
70
|
if (table === void 0) throw new HsqldbSqlEvaluationError(`table "${resolvedName}" not found`, sql);
|
|
71
71
|
return table;
|
|
72
72
|
}
|
|
73
|
+
function resolveColumnIndex(columns, candidateIndices, ref, sql) {
|
|
74
|
+
let firstExact;
|
|
75
|
+
let exactCount = 0;
|
|
76
|
+
for (const index of candidateIndices) if (columns[index]?.columnName === ref.name) {
|
|
77
|
+
exactCount += 1;
|
|
78
|
+
firstExact ??= index;
|
|
79
|
+
}
|
|
80
|
+
if (exactCount > 1) throw new HsqldbSqlEvaluationError(`column "${ref.name}" is ambiguous -- it matches more than one joined column named "${ref.name}"`, sql);
|
|
81
|
+
if (firstExact !== void 0) return firstExact;
|
|
82
|
+
if (!ref.quoted) {
|
|
83
|
+
let firstFolded;
|
|
84
|
+
const foldedNames = [];
|
|
85
|
+
for (const index of candidateIndices) {
|
|
86
|
+
const name = columns[index]?.columnName;
|
|
87
|
+
if (name?.toUpperCase() !== ref.name) continue;
|
|
88
|
+
foldedNames.push(name);
|
|
89
|
+
firstFolded ??= index;
|
|
90
|
+
}
|
|
91
|
+
if (foldedNames.length > 1) throw new HsqldbSqlEvaluationError(`column "${ref.name}" is ambiguous -- it matches ${foldedNames.join(", ")} case-insensitively`, sql);
|
|
92
|
+
if (firstFolded !== void 0) return firstFolded;
|
|
93
|
+
}
|
|
94
|
+
throw new HsqldbSqlEvaluationError(`column "${ref.name}" not found -- available: ${candidateIndices.length === 0 ? "(none)" : candidateIndices.map((index) => columns[index]?.columnName ?? "?").join(", ")}`, sql);
|
|
95
|
+
}
|
|
73
96
|
var ColumnResolver = class {
|
|
74
|
-
table;
|
|
75
97
|
sql;
|
|
76
98
|
cache = /* @__PURE__ */ new Map();
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
99
|
+
columns;
|
|
100
|
+
tableNames;
|
|
101
|
+
constructor(tables, sql) {
|
|
80
102
|
this.sql = sql;
|
|
81
|
-
this.
|
|
103
|
+
this.tableNames = tables.map((table) => table.tableName);
|
|
104
|
+
this.columns = tables.flatMap((table) => table.columns.map((column) => ({
|
|
105
|
+
tableName: table.tableName,
|
|
106
|
+
columnName: column.name
|
|
107
|
+
})));
|
|
108
|
+
}
|
|
109
|
+
get columnCount() {
|
|
110
|
+
return this.columns.length;
|
|
82
111
|
}
|
|
83
112
|
nameAt(index) {
|
|
84
|
-
const
|
|
85
|
-
if (
|
|
86
|
-
return
|
|
113
|
+
const column = this.columns[index];
|
|
114
|
+
if (column === void 0) throw new HsqldbSqlEvaluationError(`column index ${String(index)} is outside the joined column list`, this.sql);
|
|
115
|
+
return column.columnName;
|
|
87
116
|
}
|
|
88
117
|
indexOf(ref) {
|
|
89
118
|
const cached = this.cache.get(ref);
|
|
90
119
|
if (cached !== void 0) return cached;
|
|
120
|
+
let candidateIndices;
|
|
91
121
|
if (ref.qualifier !== void 0) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
122
|
+
const qualifierName = resolveName(this.tableNames, ref.qualifier, "table qualifier", this.sql);
|
|
123
|
+
candidateIndices = this.columns.map((column, index) => column.tableName === qualifierName ? index : -1).filter((index) => index >= 0);
|
|
124
|
+
} else candidateIndices = this.columns.map((_column, index) => index);
|
|
125
|
+
const index = resolveColumnIndex(this.columns, candidateIndices, ref.column, this.sql);
|
|
95
126
|
this.cache.set(ref, index);
|
|
96
127
|
return index;
|
|
97
128
|
}
|
|
98
129
|
valueAt(index, row) {
|
|
99
130
|
const value = row[index];
|
|
100
|
-
if (value === void 0) throw new HsqldbSqlEvaluationError(`malformed
|
|
131
|
+
if (value === void 0) throw new HsqldbSqlEvaluationError(`malformed joined row: it carries ${String(row.length)} values but the joined column list declares ${String(this.columns.length)}`, this.sql);
|
|
101
132
|
return value;
|
|
102
133
|
}
|
|
103
134
|
valueOf(ref, row) {
|
|
@@ -199,11 +230,11 @@ function groupKeyOf(values) {
|
|
|
199
230
|
}
|
|
200
231
|
}).join("\0");
|
|
201
232
|
}
|
|
202
|
-
function planSelectList(statement,
|
|
233
|
+
function planSelectList(statement, resolver) {
|
|
203
234
|
const plan = [];
|
|
204
235
|
for (const item of statement.items) switch (item.kind) {
|
|
205
236
|
case "star":
|
|
206
|
-
for (
|
|
237
|
+
for (let index = 0; index < resolver.columnCount; index += 1) plan.push({
|
|
207
238
|
kind: "column",
|
|
208
239
|
index,
|
|
209
240
|
text: resolver.nameAt(index)
|
|
@@ -294,12 +325,32 @@ function evaluateGrouped(statement, plan, matching, resolver) {
|
|
|
294
325
|
rows: sortRows(sortable, statement.orderBy.map((term) => term.direction), statement.sql)
|
|
295
326
|
};
|
|
296
327
|
}
|
|
328
|
+
function joinTables(from, tables, sql) {
|
|
329
|
+
const baseTable = resolveTable(tables, from.table, sql);
|
|
330
|
+
const resolvedTables = [baseTable];
|
|
331
|
+
let rows = baseTable.rows;
|
|
332
|
+
for (const join of from.joins) {
|
|
333
|
+
const joinTable = resolveTable(tables, join.table, sql);
|
|
334
|
+
const resolver = new ColumnResolver([...resolvedTables, joinTable], sql);
|
|
335
|
+
const nextRows = [];
|
|
336
|
+
for (const leftRow of rows) for (const rightRow of joinTable.rows) {
|
|
337
|
+
const combined = [...leftRow, ...rightRow];
|
|
338
|
+
if (evaluatePredicate(join.on, combined, resolver, sql) === "true") nextRows.push(combined);
|
|
339
|
+
}
|
|
340
|
+
rows = nextRows;
|
|
341
|
+
resolvedTables.push(joinTable);
|
|
342
|
+
}
|
|
343
|
+
return {
|
|
344
|
+
resolvedTables,
|
|
345
|
+
rows
|
|
346
|
+
};
|
|
347
|
+
}
|
|
297
348
|
function evaluateSelect(statement, tables) {
|
|
298
|
-
const
|
|
299
|
-
const resolver = new ColumnResolver(
|
|
300
|
-
const plan = planSelectList(statement,
|
|
349
|
+
const { resolvedTables, rows } = joinTables(statement.from, tables, statement.sql);
|
|
350
|
+
const resolver = new ColumnResolver(resolvedTables, statement.sql);
|
|
351
|
+
const plan = planSelectList(statement, resolver);
|
|
301
352
|
const where = statement.where;
|
|
302
|
-
const matching = where === void 0 ?
|
|
353
|
+
const matching = where === void 0 ? rows : rows.filter((row) => evaluatePredicate(where, row, resolver, statement.sql) === "true");
|
|
303
354
|
const hasAggregate = plan.some((item) => item.kind === "aggregate");
|
|
304
355
|
if (statement.groupBy.length > 0 || hasAggregate) {
|
|
305
356
|
if (statement.groupBy.length > 0 && statement.items.some((item) => item.kind === "star")) throw new HsqldbSqlEvaluationError("SELECT * is not valid with GROUP BY -- name the grouped columns and the aggregates explicitly", statement.sql);
|
package/dist/odb/sql/parser.cjs
CHANGED
|
@@ -13,15 +13,12 @@ function isAggregateFunction(keyword) {
|
|
|
13
13
|
return AGGREGATE_FUNCTIONS.has(keyword);
|
|
14
14
|
}
|
|
15
15
|
const OUT_OF_SCOPE_KEYWORDS = /* @__PURE__ */ new Map([
|
|
16
|
-
["JOIN", "a JOIN"],
|
|
17
|
-
["INNER", "a JOIN"],
|
|
18
16
|
["OUTER", "a JOIN"],
|
|
19
17
|
["LEFT", "a JOIN"],
|
|
20
18
|
["RIGHT", "a JOIN"],
|
|
21
19
|
["FULL", "a JOIN"],
|
|
22
20
|
["CROSS", "a JOIN"],
|
|
23
21
|
["NATURAL", "a JOIN"],
|
|
24
|
-
["ON", "a JOIN"],
|
|
25
22
|
["USING", "a JOIN"],
|
|
26
23
|
["UNION", "UNION"],
|
|
27
24
|
["INTERSECT", "INTERSECT"],
|
|
@@ -442,17 +439,42 @@ var SqlParser = class {
|
|
|
442
439
|
direction: "asc"
|
|
443
440
|
};
|
|
444
441
|
}
|
|
442
|
+
parseTableRef() {
|
|
443
|
+
if (this.atPunctuation("(")) throw new require_odb_sql_errors.HsqldbSqlUnsupportedError("a derived table in FROM", this.sql);
|
|
444
|
+
const name = this.takeName("a table name");
|
|
445
|
+
if (this.atPunctuation(".")) throw new require_odb_sql_errors.HsqldbSqlUnsupportedError("a schema-qualified table name", this.sql);
|
|
446
|
+
if (this.peek().kind === "identifier") throw new require_odb_sql_errors.HsqldbSqlUnsupportedError("a table alias", this.sql);
|
|
447
|
+
return name;
|
|
448
|
+
}
|
|
449
|
+
parseJoins() {
|
|
450
|
+
const joins = [];
|
|
451
|
+
for (;;) {
|
|
452
|
+
if (this.atKeyword("INNER")) {
|
|
453
|
+
this.advance();
|
|
454
|
+
this.takeKeyword("JOIN");
|
|
455
|
+
} else if (this.atKeyword("JOIN")) this.advance();
|
|
456
|
+
else break;
|
|
457
|
+
const table = this.parseTableRef();
|
|
458
|
+
this.takeKeyword("ON");
|
|
459
|
+
const on = this.parsePredicate();
|
|
460
|
+
joins.push({
|
|
461
|
+
table,
|
|
462
|
+
on
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
return joins;
|
|
466
|
+
}
|
|
445
467
|
parseStatement() {
|
|
446
468
|
const first = this.peek();
|
|
447
469
|
if (!(first.kind === "keyword" && first.keyword === "SELECT")) this.fail("keyword SELECT");
|
|
448
470
|
this.advance();
|
|
449
471
|
const items = this.parseSelectList();
|
|
450
472
|
this.takeKeyword("FROM");
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
if (this.
|
|
473
|
+
const from = {
|
|
474
|
+
table: this.parseTableRef(),
|
|
475
|
+
joins: this.parseJoins()
|
|
476
|
+
};
|
|
477
|
+
if (this.atPunctuation(",")) throw new require_odb_sql_errors.HsqldbSqlUnsupportedError("a comma-separated FROM list (write an explicit JOIN instead)", this.sql);
|
|
456
478
|
let where;
|
|
457
479
|
if (this.atKeyword("WHERE")) {
|
|
458
480
|
this.advance();
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { SqlAggregateArgument, SqlAggregateFunction, SqlColumnRef, SqlLiteral, SqlNameRef, SqlOperand, SqlOrderByTerm, SqlPredicate, SqlSelectItem, SqlSelectStatement, SqlSortDirection, parseSelect };
|
|
1
|
+
import { a as SqlJoinClause, c as SqlOperand, d as SqlSelectItem, f as SqlSelectStatement, i as SqlFromClause, l as SqlOrderByTerm, m as parseSelect, n as SqlAggregateFunction, o as SqlLiteral, p as SqlSortDirection, r as SqlColumnRef, s as SqlNameRef, t as SqlAggregateArgument, u as SqlPredicate } from "../../parser-D9fiOUfR.cjs";
|
|
2
|
+
export { SqlAggregateArgument, SqlAggregateFunction, SqlColumnRef, SqlFromClause, SqlJoinClause, SqlLiteral, SqlNameRef, SqlOperand, SqlOrderByTerm, SqlPredicate, SqlSelectItem, SqlSelectStatement, SqlSortDirection, parseSelect };
|
package/dist/odb/sql/parser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { SqlAggregateArgument, SqlAggregateFunction, SqlColumnRef, SqlLiteral, SqlNameRef, SqlOperand, SqlOrderByTerm, SqlPredicate, SqlSelectItem, SqlSelectStatement, SqlSortDirection, parseSelect };
|
|
1
|
+
import { a as SqlJoinClause, c as SqlOperand, d as SqlSelectItem, f as SqlSelectStatement, i as SqlFromClause, l as SqlOrderByTerm, m as parseSelect, n as SqlAggregateFunction, o as SqlLiteral, p as SqlSortDirection, r as SqlColumnRef, s as SqlNameRef, t as SqlAggregateArgument, u as SqlPredicate } from "../../parser-fyVOtBAo.js";
|
|
2
|
+
export { SqlAggregateArgument, SqlAggregateFunction, SqlColumnRef, SqlFromClause, SqlJoinClause, SqlLiteral, SqlNameRef, SqlOperand, SqlOrderByTerm, SqlPredicate, SqlSelectItem, SqlSelectStatement, SqlSortDirection, parseSelect };
|
package/dist/odb/sql/parser.js
CHANGED
|
@@ -12,15 +12,12 @@ function isAggregateFunction(keyword) {
|
|
|
12
12
|
return AGGREGATE_FUNCTIONS.has(keyword);
|
|
13
13
|
}
|
|
14
14
|
const OUT_OF_SCOPE_KEYWORDS = /* @__PURE__ */ new Map([
|
|
15
|
-
["JOIN", "a JOIN"],
|
|
16
|
-
["INNER", "a JOIN"],
|
|
17
15
|
["OUTER", "a JOIN"],
|
|
18
16
|
["LEFT", "a JOIN"],
|
|
19
17
|
["RIGHT", "a JOIN"],
|
|
20
18
|
["FULL", "a JOIN"],
|
|
21
19
|
["CROSS", "a JOIN"],
|
|
22
20
|
["NATURAL", "a JOIN"],
|
|
23
|
-
["ON", "a JOIN"],
|
|
24
21
|
["USING", "a JOIN"],
|
|
25
22
|
["UNION", "UNION"],
|
|
26
23
|
["INTERSECT", "INTERSECT"],
|
|
@@ -441,17 +438,42 @@ var SqlParser = class {
|
|
|
441
438
|
direction: "asc"
|
|
442
439
|
};
|
|
443
440
|
}
|
|
441
|
+
parseTableRef() {
|
|
442
|
+
if (this.atPunctuation("(")) throw new HsqldbSqlUnsupportedError("a derived table in FROM", this.sql);
|
|
443
|
+
const name = this.takeName("a table name");
|
|
444
|
+
if (this.atPunctuation(".")) throw new HsqldbSqlUnsupportedError("a schema-qualified table name", this.sql);
|
|
445
|
+
if (this.peek().kind === "identifier") throw new HsqldbSqlUnsupportedError("a table alias", this.sql);
|
|
446
|
+
return name;
|
|
447
|
+
}
|
|
448
|
+
parseJoins() {
|
|
449
|
+
const joins = [];
|
|
450
|
+
for (;;) {
|
|
451
|
+
if (this.atKeyword("INNER")) {
|
|
452
|
+
this.advance();
|
|
453
|
+
this.takeKeyword("JOIN");
|
|
454
|
+
} else if (this.atKeyword("JOIN")) this.advance();
|
|
455
|
+
else break;
|
|
456
|
+
const table = this.parseTableRef();
|
|
457
|
+
this.takeKeyword("ON");
|
|
458
|
+
const on = this.parsePredicate();
|
|
459
|
+
joins.push({
|
|
460
|
+
table,
|
|
461
|
+
on
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
return joins;
|
|
465
|
+
}
|
|
444
466
|
parseStatement() {
|
|
445
467
|
const first = this.peek();
|
|
446
468
|
if (!(first.kind === "keyword" && first.keyword === "SELECT")) this.fail("keyword SELECT");
|
|
447
469
|
this.advance();
|
|
448
470
|
const items = this.parseSelectList();
|
|
449
471
|
this.takeKeyword("FROM");
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
if (this.
|
|
472
|
+
const from = {
|
|
473
|
+
table: this.parseTableRef(),
|
|
474
|
+
joins: this.parseJoins()
|
|
475
|
+
};
|
|
476
|
+
if (this.atPunctuation(",")) throw new HsqldbSqlUnsupportedError("a comma-separated FROM list (write an explicit JOIN instead)", this.sql);
|
|
455
477
|
let where;
|
|
456
478
|
if (this.atKeyword("WHERE")) {
|
|
457
479
|
this.advance();
|
|
@@ -88,14 +88,22 @@ interface SqlOrderByTerm {
|
|
|
88
88
|
readonly column: SqlColumnRef;
|
|
89
89
|
readonly direction: SqlSortDirection;
|
|
90
90
|
}
|
|
91
|
+
interface SqlJoinClause {
|
|
92
|
+
readonly table: SqlNameRef;
|
|
93
|
+
readonly on: SqlPredicate;
|
|
94
|
+
}
|
|
95
|
+
interface SqlFromClause {
|
|
96
|
+
readonly table: SqlNameRef;
|
|
97
|
+
readonly joins: readonly SqlJoinClause[];
|
|
98
|
+
}
|
|
91
99
|
interface SqlSelectStatement {
|
|
92
100
|
readonly sql: string;
|
|
93
101
|
readonly items: readonly SqlSelectItem[];
|
|
94
|
-
readonly from:
|
|
102
|
+
readonly from: SqlFromClause;
|
|
95
103
|
readonly where: SqlPredicate | undefined;
|
|
96
104
|
readonly groupBy: readonly SqlColumnRef[];
|
|
97
105
|
readonly orderBy: readonly SqlOrderByTerm[];
|
|
98
106
|
}
|
|
99
107
|
declare function parseSelect(sql: string): SqlSelectStatement;
|
|
100
108
|
//#endregion
|
|
101
|
-
export {
|
|
109
|
+
export { SqlJoinClause as a, SqlOperand as c, SqlSelectItem as d, SqlSelectStatement as f, SqlFromClause as i, SqlOrderByTerm as l, parseSelect as m, SqlAggregateFunction as n, SqlLiteral as o, SqlSortDirection as p, SqlColumnRef as r, SqlNameRef as s, SqlAggregateArgument as t, SqlPredicate as u };
|
|
@@ -88,14 +88,22 @@ interface SqlOrderByTerm {
|
|
|
88
88
|
readonly column: SqlColumnRef;
|
|
89
89
|
readonly direction: SqlSortDirection;
|
|
90
90
|
}
|
|
91
|
+
interface SqlJoinClause {
|
|
92
|
+
readonly table: SqlNameRef;
|
|
93
|
+
readonly on: SqlPredicate;
|
|
94
|
+
}
|
|
95
|
+
interface SqlFromClause {
|
|
96
|
+
readonly table: SqlNameRef;
|
|
97
|
+
readonly joins: readonly SqlJoinClause[];
|
|
98
|
+
}
|
|
91
99
|
interface SqlSelectStatement {
|
|
92
100
|
readonly sql: string;
|
|
93
101
|
readonly items: readonly SqlSelectItem[];
|
|
94
|
-
readonly from:
|
|
102
|
+
readonly from: SqlFromClause;
|
|
95
103
|
readonly where: SqlPredicate | undefined;
|
|
96
104
|
readonly groupBy: readonly SqlColumnRef[];
|
|
97
105
|
readonly orderBy: readonly SqlOrderByTerm[];
|
|
98
106
|
}
|
|
99
107
|
declare function parseSelect(sql: string): SqlSelectStatement;
|
|
100
108
|
//#endregion
|
|
101
|
-
export {
|
|
109
|
+
export { SqlJoinClause as a, SqlOperand as c, SqlSelectItem as d, SqlSelectStatement as f, SqlFromClause as i, SqlOrderByTerm as l, parseSelect as m, SqlAggregateFunction as n, SqlLiteral as o, SqlSortDirection as p, SqlColumnRef as r, SqlNameRef as s, SqlAggregateArgument as t, SqlPredicate as u };
|
package/package.json
CHANGED