You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use only 'java' to analyze code written in Java, Kotlin or both
38
+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
39
+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
40
+
41
+
steps:
42
+
- name: Checkout repository
43
+
uses: actions/checkout@v3
44
+
45
+
# Initializes the CodeQL tools for scanning.
46
+
- name: Initialize CodeQL
47
+
uses: github/codeql-action/init@v2
48
+
with:
49
+
languages: ${{ matrix.language }}
50
+
# If you wish to specify custom queries, you can do so here or in a config file.
51
+
# By default, queries listed here will override any specified in a config file.
52
+
# Prefix the list here with "+" to use these queries and those in the config file.
53
+
54
+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55
+
# queries: security-extended,security-and-quality
56
+
57
+
58
+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
59
+
# If this step fails, then you should remove it and run the build manually (see below)
60
+
- name: Autobuild
61
+
uses: github/codeql-action/autobuild@v2
62
+
63
+
# ℹ️ Command-line programs to run using the OS shell.
64
+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
65
+
66
+
# If the Autobuild fails above, remove it and uncomment the following three lines.
67
+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3
+
4
+
name: Node.js CI
5
+
6
+
on:
7
+
push:
8
+
branches: ["dev"]
9
+
pull_request:
10
+
branches: ["dev"]
11
+
12
+
jobs:
13
+
build:
14
+
runs-on: ubuntu-latest
15
+
16
+
strategy:
17
+
matrix:
18
+
node-version: [18.x]
19
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
Copy file name to clipboardExpand all lines: README.md
+53-8Lines changed: 53 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,15 @@
1
-
> Need a powerful, low-cost VPS for hosting your applications & bots 24/7? Check out our partner, [Contabo](https://www.tkqlhce.com/click-8950879-15301134)! 🎉
> Need a powerful, low-cost VPS for hosting your applications & bots 24/7? Check out our partner, [Contabo](https://www.tkqlhce.com/click-8950879-15301134)! 🎉
Quick.db is an open-source package meant to provide an easy way for beginners and people of all levels to access & store data in a low to medium volume environment. All data is stored persistently via either [better-sqlite3](https://github.com/JoshuaWise/better-sqlite3) or [promise-mysql](https://www.npmjs.com/package/promise-mysql) and comes way various other quality-of-life features.
9
+
Quick.db is an open-source package meant to provide an easy way for beginners and people of all levels to access & store data in a low to medium volume environment. All data is stored persistently via either [better-sqlite3](https://github.com/JoshuaWise/better-sqlite3) or [mysql2](https://www.npmjs.com/package/mysql2) and comes way various other quality-of-life features.
11
10
12
11
-**Persistent Storage** - Data doesn't disappear through restarts
13
-
-**Multiple Drivers** - You can use either better-sqlite3 or promise-mysql
12
+
-**Multiple Drivers** - You can use either better-sqlite3 or mysql2
14
13
-**Works out of the box** - No need to set up a database server, all the data is stored locally in the same project
15
14
-**Beginner Friendly** - Originally created for use in tutorials, the documentation is straightforward and jargon-free
16
15
- & more...
@@ -31,7 +30,7 @@ Quick.db is an open-source package meant to provide an easy way for beginners an
31
30
32
31
```python
33
32
npm i quick.db better-sqlite3 # (Default) Local SQLite3 File
34
-
npm i quick.db promise-mysql# (Alternative) MySQL Server Connection
33
+
npm i quick.db mysql2# (Alternative) MySQL Server Connection
35
34
```
36
35
37
36
> If you're having troubles installing, please follow [this troubleshooting guide](https://github.com/JoshuaWise/better-sqlite3/blob/master/docs/troubleshooting.md).
@@ -56,7 +55,7 @@ const db = new QuickDB(); // will make a json.sqlite in the root folder
56
55
// -> { difficulty: 'Easy' }
57
56
58
57
// Getting an object property from the database:
59
-
awaitdb.set("userInfo.difficulty");
58
+
awaitdb.get("userInfo.difficulty");
60
59
// -> 'Easy'
61
60
62
61
// Setting an object in the database:
@@ -85,7 +84,7 @@ const db = new QuickDB(); // will make a json.sqlite in the root folder
85
84
86
85
## Example With MySQLDriver
87
86
88
-
> **NOTE:** In order to use this driver, install `npm i promise-mysql` separately.
87
+
> **NOTE:** In order to use this driver, install `npm i mysql2` separately.
0 commit comments