Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hgourvest/node-firebird
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.9
Choose a base ref
...
head repository: hgourvest/node-firebird
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 10,501 additions and 4,824 deletions.
  1. +76 −0 .github/workflows/codeql.yml
  2. +40 −0 .github/workflows/node.js.yml
  3. +0 −47 .github/workflows/npmpublish.yml
  4. +283 −208 README.md
  5. 0 git
  6. +38 −0 lib/callback.js
  7. +1,371 −0 lib/firebird.msg.json
  8. +63 −9 lib/index.d.ts
  9. +85 −4,523 lib/index.js
  10. +107 −0 lib/pool.js
  11. +281 −0 lib/srp.js
  12. +164 −0 lib/utils.js
  13. +1,965 −0 lib/wire/connection.js
  14. +772 −0 lib/wire/const.js
  15. +198 −0 lib/wire/database.js
  16. +113 −0 lib/wire/eventConnection.js
  17. +98 −0 lib/wire/fbEventManager.js
  18. +27 −3 lib/{ → wire}/serialize.js
  19. +1,046 −0 lib/wire/service.js
  20. +47 −0 lib/wire/statement.js
  21. +160 −0 lib/wire/transaction.js
  22. +518 −0 lib/wire/xsqlvar.js
  23. +2,826 −0 package-lock.json
  24. +7 −11 package.json
  25. +7 −2 test/config.js
  26. +155 −21 test/index.js
  27. +54 −0 test/srp.js
76 changes: 76 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '26 2 * * 3'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# 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
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
40 changes: 40 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node: [18, 20]
firebird-version: ['v3']

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 10

- name: Setup FirebirdSQL container
uses: juarezr/firebirdsql-github-action@v1.2.0
with:
version: ${{ matrix.firebird-version }}
isc_password: "masterkey"
enable_legacy_client_auth: "true"

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}


- name: Build
shell: bash
run: |
npm ci
- name: Test (Linux)
run: |
export FIREBIRD_DATA=/firebird/data
npx nyc npm test
47 changes: 0 additions & 47 deletions .github/workflows/npmpublish.yml

This file was deleted.

Loading