Skip to content

Commit fb295a4

Browse files
committed
testing workflow
1 parent 0907115 commit fb295a4

File tree

6 files changed

+74
-76
lines changed

6 files changed

+74
-76
lines changed

.github/workflows/gh-pages.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- master
6+
- psharma/update_readme
67
paths:
78
- 'website/**'
89
workflow_dispatch:
@@ -39,7 +40,8 @@ jobs:
3940
run: cd website && npm run build
4041

4142
- name: Deploy
42-
uses: peaceiris/actions-gh-pages@v3
43-
with:
44-
github_token: ${{ secrets.GITHUB_TOKEN }}
45-
publish_dir: ./website/build
43+
uses: peaceiris/actions-gh-pages@v2
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
PUBLISH_BRANCH: gh-pages
47+
PUBLISH_DIR: ./website/build
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
slug: /contributing
3-
title: MySQL2
3+
title: SINGLESTORE-NODEJS
44
---
55

66
import { PageTitle } from '@site/src/components/PageTitle';
@@ -9,5 +9,5 @@ import { PageTitle } from '@site/src/components/PageTitle';
99

1010
# Contributing
1111

12-
Want to improve something in **MySQL2**?
13-
Please check [Contributing.md](https://github.com/sidorares/node-mysql2/blob/master/Contributing.md) for detailed instruction on how to get started.
12+
Want to improve something in **singlestore-nodejs**?
13+
Please check [Contributing.md](https://github.com/singlestore-labs/singlestore-nodejs/blob/master/Contributing.md) for detailed instruction on how to get started.

website/docs/contributing/website.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ You will need these tools installed on your system:
2323

2424
## Development
2525

26-
1. Fork the [MySQL2](https://github.com/sidorares/node-mysql2) repository.
27-
2. Download your forked repository locally. The website's workspace is the "_website_" directory in **node-mysql2** root.
26+
1. Fork the [SingleStore Node.js Driver](https://github.com/singlestore-labs/singlestore-nodejs) repository.
27+
2. Download your forked repository locally. The website's workspace is the "_website_" directory in **singlestore-nodejs** root.
2828
3. Create a new branch from `master` (optional).
2929
4. Run `cd website` to enter the website workspace.
30-
5. Run `npm ci` to install the dependecies from _package-lock.json_.
31-
6. Run `npm start` to starting the local development.
30+
5. Run `npm ci` to install the dependencies from _package-lock.json_.
31+
6. Run `npm start` to start the local development.
3232

3333
> It will start a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
3434
@@ -37,9 +37,9 @@ For **Docusaurus** complete documentation, please [see here](https://docusaurus.
3737
<FAQ title='CLI example'>
3838

3939
```bash
40-
git clone https://github.com/sidorares/node-mysql2.git
40+
git clone https://github.com/singlestore-labs/singlestore-nodejs.git
4141
git checkout -b website # optional
42-
cd /path-to/node-mysql2/website
42+
cd /path-to/singlestore-nodejs/website
4343
npm ci
4444
npm start
4545
```
@@ -55,7 +55,7 @@ Documentation is auto-generated from **MDX** files placed in these directories:
5555
:::danger Caution
5656
Note that the website has its own _package.json_.
5757

58-
Please, do not install dependencies for the website in **node-mysql2** root.
58+
Please, do not install dependencies for the website in **singlestore-nodejs** root.
5959
:::
6060

6161
<hr />
@@ -181,12 +181,12 @@ import { ExternalCodeEmbed } from '@site/src/components/ExternalCodeEmbed';
181181

182182
<FAQ title='Example'>
183183
<ExternalCodeEmbed
184-
url='https://raw.githubusercontent.com/sidorares/node-mysql2/master/.prettierrc'
184+
url='https://raw.githubusercontent.com/singlestore-labs/singlestore-nodejs/master/.prettierrc'
185185
language='json'
186186
/>
187187

188188
<ExternalCodeEmbed
189-
url='https://raw.githubusercontent.com/sidorares/node-mysql2/master/tools/parse-row.js'
189+
url='https://raw.githubusercontent.com/singlestore-labs/singlestore-nodejs/master/tools/parse-row.js'
190190
language='js'
191191
extractMethod='parseC'
192192
methodType='function'

website/docs/documentation/00-index.mdx

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ import { PageTitle } from '@site/src/components/PageTitle';
99

1010
# Documentation
1111

12-
[node-mysql]: https://github.com/mysqljs/mysql
12+
[node-mysql2]: https://github.com/sidorares/node-mysql2
1313

14-
MySQL2 aims to be a drop in replacement for [Node MySQL][node-mysql].
14+
**singlestore-nodejs** is a Node.js driver for SingleStoreDB, forked from [node-mysql2][node-mysql2]. It maintains compatibility with the MySQL protocol while providing optimized support for SingleStoreDB features.
1515

1616
:::note
17-
_If you see any API incompatibilities with [Node MySQL][node-mysql], please report via github issue._
17+
_This driver is based on [node-mysql2][node-mysql2] and maintains API compatibility. If you encounter any issues specific to SingleStoreDB, please report via GitHub issue._
1818
:::
1919

20-
Not only **MySQL2** offers better performance over [Node MySQL][node-mysql], we also support these additional features:
20+
**singlestore-nodejs** offers:
2121

2222
- [Prepared Statements](/docs/documentation/prepared-statements)
2323
- [Promise Wrapper](/docs/documentation/promise-wrapper)
@@ -33,7 +33,7 @@ Not only **MySQL2** offers better performance over [Node MySQL][node-mysql], we
3333

3434
## Examples
3535

36-
Please check these [examples](/docs/examples) for **MySQL2**.
36+
Please check these [examples](/docs/examples) for **singlestore-nodejs**.
3737

3838
<hr />
3939

@@ -66,17 +66,13 @@ This option could lose precision on the number as Javascript Number is a Float!
6666

6767
## Other Resources
6868

69-
- [Wire protocol documentation](https://dev.mysql.com/doc/internals/en/client-server-protocol.html)
70-
- [Node MySQL][node-mysql] - Most popular node.js mysql client library
71-
- [node-mariasql](https://github.com/mscdex/node-mariasql/) - Bindings to libmariasql. One of the fastest clients
72-
- [node-libmysqlclient](https://github.com/Sannis/node-mysql-libmysqlclient) - Bindings to libmysqlclient
73-
- [go-mysql](https://github.com/siddontang/go-mysql) - MySQL Go client (prepared statements, binlog protocol, server)
69+
- [SingleStoreDB Documentation](https://docs.singlestore.com/)
70+
- [MySQL Wire Protocol Documentation](https://dev.mysql.com/doc/internals/en/client-server-protocol.html)
71+
- [node-mysql2][node-mysql2] - The upstream MySQL client library this driver is based on
7472

7573
<hr />
7674

7775
## Benchmarks
7876

79-
- https://gist.github.com/sidorares/ffe9ee9c423f763e3b6b
8077
- `npm run benchmarks`
81-
- [node-mysql-benchmarks](https://github.com/mscdex/node-mysql-benchmarks)
82-
- try to run example [benchmarks](https://github.com/sidorares/node-mysql2/tree/master/benchmarks) on your system
78+
- try to run example [benchmarks](https://github.com/singlestore-labs/singlestore-nodejs/tree/master/benchmarks) on your system

0 commit comments

Comments
 (0)