MariaDB and FerretDB

This commit is contained in:
SheetJS 2024-05-04 12:15:00 -04:00
parent ea8129c3d4
commit bb40aa756f
16 changed files with 56 additions and 17 deletions

1
CNAME
View File

@ -1 +0,0 @@
docs.sheetjs.com

View File

@ -4,7 +4,6 @@ build:
cd docz; npx -y pnpm build; cd ..
rm -rf docs
mv docz/build/ docs
cp CNAME docs
cp _headers docs
.PHONY: init

View File

@ -1,3 +0,0 @@
# docs.sheetjs.com
<https://docs.sheetjs.com/>

View File

@ -36,7 +36,7 @@ This demo was tested in the following environments:
| MariaDB | Connector Library | Date |
|:---------|:-------------------|:-----------|
| `11.2.2` | `mysql2` (`3.6.5`) | 2023-12-04 |
| `11.3.2` | `mysql2` (`3.9.7`) | 2024-05-04 |
:::
@ -393,6 +393,20 @@ If the server is running locally, the command will be:
mysql -D SheetJSMariaDB -e 'SELECT * FROM `Presidents`;'
```
The output should be consistent with the following table:
```
+--------------+-------+
| Name | Index |
+--------------+-------+
| Bill Clinton | 42 |
| GeorgeW Bush | 43 |
| Barack Obama | 44 |
| Donald Trump | 45 |
| Joseph Biden | 46 |
+--------------+-------+
```
[^1]: See [the official `mysql2` website](https://sidorares.github.io/node-mysql2/docs) for more info.
[^2]: See [`json_to_sheet` in "Utilities"](/docs/api/utilities/array#array-of-objects-input)
[^3]: See ["Sheet Objects"](/docs/csf/sheet) in "SheetJS Data Model" for more details.

View File

@ -27,8 +27,8 @@ This demo was tested in the following environments:
| Server | Connector Library | Date |
|:--------------------|:--------------------|:-----------|
| FerretDB `1.21.0` | `mongodb` (`5.9.2`) | 2024-03-30 |
| MongoDB CE `6.0.10` | `mongodb` (`5.7.0`) | 2023-12-04 |
| MongoDB CE `7.0.2` | `mongodb` (`5.7.0`) | 2023-12-04 |
| MongoDB CE `6.0.15` | `mongodb` (`6.5.0`) | 2024-05-01 |
| MongoDB CE `7.0.8` | `mongodb` (`6.5.0`) | 2024-05-01 |
:::
@ -98,6 +98,13 @@ brew update
brew install mongodb-community
```
Older versions can be installed by passing the version major and minor numbers:
```bash
# Install 6.0
brew install mongodb-community@6.0
```
:::note pass
If `brew` was used to install MongoDB, the following command starts a server:
@ -122,7 +129,7 @@ If Homebrew is configured to use `/opt/homebrew`, the command is:
mkdir sheetjs-mongo
cd sheetjs-mongo
npm init -y
npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz mongodb@5.7.0`}
npm i --save https://cdn.sheetjs.com/xlsx-${current}/xlsx-${current}.tgz mongodb@6.5.0`}
</CodeBlock>
3) Save the following to `SheetJSMongoCRUD.mjs` (the key step is highlighted):

View File

@ -24,10 +24,10 @@ This demo was verified by NetSuite consultants in the following deployments:
| `@NScriptType` | `@NApiVersion` | Date |
|:----------------|:---------------|:-----------|
| ScheduledScript | 2.1 | 2024-03-21 |
| Restlet | 2.1 | 2023-10-05 |
| Suitelet | 2.1 | 2024-03-25 |
| MapReduceScript | 2.1 | 2023-12-07 |
| ScheduledScript | 2.1 | 2024-05-01 |
| Restlet | 2.1 | 2024-05-01 |
| Suitelet | 2.1 | 2024-05-01 |
| MapReduceScript | 2.1 | 2024-05-01 |
:::

View File

@ -4,6 +4,8 @@ sidebar_label: Photoshop and InDesign
description: Design documents using InDesign and Photoshop. Leverage spreadsheet data in app extensions using SheetJS. Use your Excel spreadsheets without leaving your Adobe apps.
pagination_prev: demos/cloud/index
pagination_next: demos/bigdata/index
sidebar_custom_props:
summary: Share data between spreadsheets and InDesign tables
---
import current from '/version.js';

View File

@ -2,6 +2,8 @@
title: Chrome and Chromium
pagination_prev: demos/cloud/index
pagination_next: demos/bigdata/index
sidebar_custom_props:
summary: Export HTML Tables in a Chromium extension
---
import current from '/version.js';

View File

@ -2,6 +2,8 @@
title: Excel JavaScript API
pagination_prev: demos/cloud/index
pagination_next: demos/bigdata/index
sidebar_custom_props:
summary: Enhance data import functionality from Excel
---
import current from '/version.js';

View File

@ -2,6 +2,8 @@
title: Google Sheets
pagination_prev: demos/cloud/index
pagination_next: demos/bigdata/index
sidebar_custom_props:
summary: Enhance data import functionality from Google Sheets
---
import current from '/version.js';

View File

@ -2,6 +2,8 @@
title: AppleScript and OSA
pagination_prev: demos/cloud/index
pagination_next: demos/bigdata/index
sidebar_custom_props:
summary: Integrate spreadsheets in macOS automation scripts
---
import current from '/version.js';

View File

@ -4,6 +4,8 @@ sidebar_label: Mathematica
description: Build complex data pipelines in Mathematica Notebooks. Seamlessly create datasets with SheetJS. Leverage the Mathematica ecosystem to analyze data from Excel workbooks.
pagination_prev: demos/cloud/index
pagination_next: demos/bigdata/index
sidebar_custom_props:
summary: Generate Mathematica-compatible CSVs from arbitrary workbooks
---
import current from '/version.js';

View File

@ -3,6 +3,8 @@ title: Modern Spreadsheets in Stata
sidebar_label: Stata
pagination_prev: demos/cloud/index
pagination_next: demos/bigdata/index
sidebar_custom_props:
summary: Generate Stata-compatible XLSX workbooks from incompatible files
---
import current from '/version.js';

View File

@ -4,6 +4,8 @@ sidebar_label: MATLAB
description: Build complex data pipelines in MATLAB M-Files. Seamlessly create MATLAB tables with SheetJS. Leverage the MATLAB toolbox ecosystem to analyze data from Excel workbooks.
pagination_prev: demos/cloud/index
pagination_next: demos/bigdata/index
sidebar_custom_props:
summary: Convert between MATLAB tables and spreadsheets
---
import current from '/version.js';

View File

@ -3,6 +3,8 @@ title: Modern Spreadsheets in Maple
sidebar_label: Maple
pagination_prev: demos/cloud/index
pagination_next: demos/bigdata/index
sidebar_custom_props:
summary: Generate Maple-compatible XLSX workbooks from incompatible files
---
import current from '/version.js';

View File

@ -7,10 +7,15 @@ pagination_next: demos/bigdata/index
import DocCardList from '@theme/DocCardList';
import {useCurrentSidebarCategory} from '@docusaurus/theme-common';
Thanks to the broad availability of powerful engines, JavaScript is a popular
language for writing extensions for apps. Some applications like Chromium use V8
while others use engines that only support ES3 JavaScript. With conservative use
of modern language features, SheetJS can be used in many app extensions.
[SheetJS](https://sheetjs.com) is a JavaScript library for reading and writing
data from spreadsheets.
JavaScript is a popular language for writing app extensions. Some applications
embed the same [JavaScript engines](/docs/demos/engines) used in browsers. Other
applications embed purpose-built engines that only support ES3 JavaScript.
With conservative use of modern language features, SheetJS can be used in many
app extensions to enable complex data import and export workflows.
Demos for common applications are included in separate pages: