Skip to content

Commit

Permalink
chore(docs): added docs job
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio Pennati committed Sep 26, 2024
1 parent fa3809c commit 1047b11
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 11 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Docs

on:
push:
branches:
- main

jobs:
deploy_docs:
name: Deploy Docs
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install deps
run: npm ci
env:
CI: true

- name: Generate Docs
run: npm run docs
env:
CI: true

- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}

- name: Deploy code to server
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} 'rm -rf ${{ secrets.SSH_REMOTE_PATH }} && mkdir -p ${{ secrets.SSH_REMOTE_PATH }}'
scp -o StrictHostKeyChecking=no -r ./docs/* ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}:${{ secrets.SSH_REMOTE_PATH }}
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<p align="center">
<a href="https://www.npmjs.com/package/lupdo-mysql" target="__blank">
<a href="https://www.npmjs.com/package/lupdo-mysql" target="__blank">
<img src="https://img.shields.io/npm/v/lupdo-mysql?color=0476bc&label=" alt="NPM version">
</a>
<a href="https://www.npmjs.com/package/lupdo-mysql" target="__blank">
<a href="https://www.npmjs.com/package/lupdo-mysql" target="__blank">
<img alt="NPM Downloads" src="https://img.shields.io/npm/dm/lupdo-mysql?color=3890aa&label=">
</a>
<a href="https://app.codecov.io/github/Lupennat/lupdo-mysql" target="__blank">
Expand All @@ -20,14 +20,14 @@

## Supported Databases

- [mysql](https://www.mysql.com/) (v5.6, 5.7, 8)
- [mariadb](https://mariadb.org/) (v10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11)
- [mysql](https://www.mysql.com/) (v5.6, 5.7, 8)
- [mariadb](https://mariadb.org/) (v10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11)

## Third Party Library

Lupdo-mysql, under the hood, uses stable and performant npm packages:

- [mysql2](https://github.com/sidorares/node-mysql2)
- [mysql2](https://github.com/sidorares/node-mysql2)

## Usage

Expand Down Expand Up @@ -91,12 +91,12 @@ By default Ludpo-mysql overrides user connection options with this:

Lupdo-mysql has a custom type parser

- `boolean` are returned as number 1 or 0.
- `bigint` are returned as number or BigInt when necessary.
- `binary` and `blob` are returned as Buffer.
- `zerofill` numbers are returned as string.
- all `geometry` are returned as json string, coordinates are identified as x,y.
- all others types are always returned as string.
- `boolean` are returned as number 1 or 0.
- `bigint` are returned as number or BigInt when necessary.
- `binary` and `blob` are returned as Buffer.
- `zerofill` numbers are returned as string.
- all `geometry` are returned as json string, coordinates are identified as x,y.
- all others types are always returned as string.

## Parameters Binding

Expand Down

0 comments on commit 1047b11

Please sign in to comment.