Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
a03adfd
build(deps): bump minimist (#104)
dependabot[bot] Apr 7, 2022
7ea8c4b
build(deps): bump node-fetch (#109)
dependabot[bot] Apr 7, 2022
181a4c6
build(deps): bump lodash (#111)
dependabot[bot] Apr 7, 2022
e1d9a49
Add FastAPI support with an ASGI Middleware (#105)
Apr 12, 2022
e790cbf
Laravel SQLCommenter (#113)
Thiyagu55 Apr 22, 2022
73776c5
Fix SQLCommenter comment addition before end of SQL statement delimit…
sjs994 Apr 28, 2022
09d353b
Integration test for laravel using docker and githubworkflow (#119)
Thiyagu55 May 12, 2022
3a89de1
build(deps): bump moment (#116)
dependabot[bot] May 12, 2022
6369b16
Add compatability for ; in sqlalchemy,psycopg2 & django (#123)
Thiyagu55 May 13, 2022
9018255
Adding asgiref as mandatory package while installing python sqlcommen…
Thiyagu55 May 24, 2022
b1f4c57
Php laravel ci automation (#128)
Thiyagu55 May 24, 2022
e2b788e
Updating laravel source ReadMe (#129)
Thiyagu55 May 24, 2022
56d0594
Renaming target branch for php push to repo workflow (#130)
Thiyagu55 May 24, 2022
153fafb
Formatting ReadMe file
sjs994 May 24, 2022
d00fa1b
Add LICENSE file (#132)
sjs994 May 24, 2022
7561463
Added dummy workflow tests for non laravel code changes (#135)
Thiyagu55 Jun 17, 2022
0c309fc
117 django middleware only applies to default database connections ig…
Thiyagu55 Jun 17, 2022
26d38da
Added workflow for unittest
Thiyagu55 Jun 27, 2022
80887ab
Change working directory of tox run
Thiyagu55 Jun 27, 2022
d87d337
Check failure case
Thiyagu55 Jun 27, 2022
0fa4163
Check failure case
Thiyagu55 Jun 27, 2022
7671d6f
Added support for all packages
Thiyagu55 Jun 27, 2022
68cfdb4
Added support for all packages
Thiyagu55 Jun 27, 2022
3a965cc
Added paths
Thiyagu55 Jun 27, 2022
9441d8b
Test paths build
Thiyagu55 Jun 27, 2022
354e8a0
Test paths build
Thiyagu55 Jun 27, 2022
0f47500
Reverting back
Thiyagu55 Jun 27, 2022
8ef4a00
Reverting testr
Thiyagu55 Jun 27, 2022
c44ca5f
Reverting testrh
Thiyagu55 Jun 27, 2022
5712294
Added lint
Thiyagu55 Jun 28, 2022
31336cd
Lint changes
Thiyagu55 Jun 28, 2022
e8d79ea
test dummy lint
Thiyagu55 Jun 28, 2022
c57852d
test dummy lint
Thiyagu55 Jun 28, 2022
2d7fcdf
test dummy lint
Thiyagu55 Jun 28, 2022
e036bc4
pr changes
Thiyagu55 Jul 11, 2022
b6d3d75
Add comment about the donation in README (#118)
Jul 13, 2022
3a29cb9
Merge branch 'master' into python-test-workflows
sjs994 Jul 13, 2022
caccc13
Merge pull request #138 from Thiyagu55/python-test-workflows
kapv89 Jul 26, 2022
b17410c
Refactor: Remove/Replace unnecessary implementations in PHP (Laravel)…
m3m0r7 Aug 19, 2022
b6d52b7
Update Laravel publish workflow destination repo (#149)
sjs994 Aug 19, 2022
2fa907e
Update description in composer.json (#150)
sjs994 Aug 19, 2022
2290ef4
Nodejs knex: Remove opencensus functionalities (#146)
Thiyagu55 Aug 29, 2022
be98183
Remove opencenus from nodejs sequelize (#153)
Thiyagu55 Aug 30, 2022
3d35d46
Nodejs CI Pipeline (#151)
Thiyagu55 Aug 30, 2022
69039b8
Laravel Readme Update (#154)
Thiyagu55 Sep 1, 2022
89887ed
Added support for go-sql-driver (#161)
Thiyagu55 Sep 30, 2022
a35d545
Added go core implementation (#163)
Thiyagu55 Sep 30, 2022
b29b610
Go http net implementation (#164)
Thiyagu55 Sep 30, 2022
7ba7ca1
go-sql refactoring (#165)
Thiyagu55 Sep 30, 2022
408a09e
Updating module name of go-sql to github.com/google/sqlcommenter/go/d…
Thiyagu55 Sep 30, 2022
14e9442
Sample module for go sqlcommenter-http (#167)
Thiyagu55 Sep 30, 2022
d7e4758
fix: handle Starlette routes in FastAPI middleware (#136)
martin1keogh Nov 14, 2022
a7117f6
working go samples/http
Nov 14, 2022
69274a7
wiring done
Nov 15, 2022
d89b78f
todo CRUD done, testing left
kapv89 Nov 15, 2022
3bbf3d2
bad request response
kapv89 Nov 15, 2022
1303440
curls working
kapv89 Nov 15, 2022
fc321f1
fix for mysql create table
kapv89 Nov 15, 2022
5ad98cd
doc comment for curls
kapv89 Nov 15, 2022
172341c
Merge branch 'master' into go_samples/http
kapv89 Nov 16, 2022
1d2bee9
Merge pull request #171 from google/go_samples/http
kapv89 Nov 16, 2022
756ad5e
Make the go sample application work with docker compose (#176)
sjs994 Nov 17, 2022
b4a9768
minor fix related to garbage collection
kapv89 Nov 18, 2022
5be250c
added sqlcommenter-http to .gitignore
kapv89 Nov 18, 2022
1bffcae
Merge pull request #178 from google/go_samples/http
kapv89 Nov 21, 2022
75f6487
database type in driver tag
kapv89 Nov 18, 2022
4585046
Merge pull request #180 from google/go/db/driverName
kapv89 Nov 21, 2022
12bbed0
application working using gorrila/mux
kapv89 Nov 20, 2022
5359d8c
traceparent functionality working example
kapv89 Nov 20, 2022
b077be0
changed docblock for update_with_traceparent.sh curl
kapv89 Nov 21, 2022
d35d54f
Merge pull request #181 from google/go/samples/traceparent
kapv89 Nov 21, 2022
60c4ead
db_driver tag fix and application tag related changes:
kapv89 Nov 21, 2022
2f6ba61
Merge pull request #183 from google/go/application_tag/core
kapv89 Nov 21, 2022
545986d
bumped go/net/http dep on go/core to v0.0.2-beta
kapv89 Nov 21, 2022
ec718c2
Merge pull request #184 from google/go/application_tag/net
kapv89 Nov 21, 2022
63b2899
update to go.mod & go.sum
kapv89 Nov 21, 2022
ff009af
Merge pull request #185 from google/go/application_tag/net
kapv89 Nov 21, 2022
7459a03
wip
kapv89 Nov 21, 2022
6c94180
db-driver tag change, application tag support with auto-initialization
kapv89 Nov 21, 2022
dcf70f4
updated readme
kapv89 Nov 21, 2022
050d742
readme change and re-order of commentsMap buildiing in go-sql.go
kapv89 Nov 21, 2022
2d8b5c6
Merge pull request #186 from google/go/application_tag/db
kapv89 Nov 21, 2022
717fd59
RequestTags interface
kapv89 Nov 22, 2022
89145a8
RequestTags interface -> RequestTagsProvider interface
kapv89 Nov 22, 2022
a5fea97
Merge pull request #188 from google/gorrila/mux/core
kapv89 Nov 23, 2022
7e7d04f
added test, simpplified the impl to just a struct
kapv89 Nov 23, 2022
1afba11
Merge pull request #189 from google/gorrila/mux/net/http
kapv89 Nov 23, 2022
eb0e19c
Update the CommenterOptions struct (#190)
sjs994 Nov 23, 2022
743b18c
Commenter core (#191)
sjs994 Nov 23, 2022
443b1b3
Update go sql to as a driver
sjs994 Nov 23, 2022
5b87db5
Add PrepareContext methof
sjs994 Nov 23, 2022
17cd0b1
Add Copyright in connection.go
sjs994 Nov 23, 2022
c9f695f
gorrila/mux.SQLCommenterMiddleware test
kapv89 Nov 23, 2022
a85954e
rebased master
kapv89 Nov 23, 2022
f04f24a
Merge pull request #193 from google/gorrila/mux/gorrila/mux
kapv89 Nov 23, 2022
f91b313
Update unit tests in parity with the existing code
sjs994 Nov 23, 2022
e221dbd
Format fix with go-fmt
sjs994 Nov 23, 2022
8e97512
Add copyright for connection_test.go
sjs994 Nov 23, 2022
de3c460
fix import orderinf
sjs994 Nov 23, 2022
46920a4
Merge branch 'google:master' into commenter-sql
sjs994 Nov 23, 2022
200f70c
Merge pull request #192 from sjs994/commenter-sql
kapv89 Nov 23, 2022
a4ebe16
working sample application
kapv89 Nov 23, 2022
fc843bc
dockerfile changes
kapv89 Nov 23, 2022
9a440a1
updated db initialization
kapv89 Nov 23, 2022
9ae8338
Merge pull request #196 from google/gorrila/sample
kapv89 Nov 23, 2022
08771c5
added method to route
kapv89 Nov 23, 2022
b356ba9
Merge pull request #197 from google/gorrila/mux/gorrila/mux
kapv89 Nov 23, 2022
4e05c75
sample application prepare-statement, go mod tidy on database/sql
kapv89 Nov 23, 2022
8c282af
Merge pull request #198 from google/go/prepare_stmt_database_go_mod_tidy
kapv89 Nov 23, 2022
c8c0733
updated docs
kapv89 Nov 23, 2022
41431dd
docs fixes
kapv89 Nov 23, 2022
7adc837
Merge pull request #199 from google/go/docs
kapv89 Nov 23, 2022
ad52f05
gh-pages workflow
kapv89 Dec 5, 2022
293b864
hugo-version latest
kapv89 Dec 5, 2022
22b9c08
hugo-version 0.79.1
kapv89 Dec 5, 2022
b9d2305
Merge pull request #202 from google/workflow/gh-pages
kapv89 Dec 5, 2022
7ec529e
workflow_dispatch
kapv89 Dec 5, 2022
c0beedd
Merge pull request #205 from google/workflow/gh-pages
kapv89 Dec 5, 2022
8dfcbcd
workflow_dispatch:
kapv89 Dec 5, 2022
7e78a80
Merge pull request #206 from google/workflow/gh-pages
kapv89 Dec 5, 2022
e6bd9fb
github pages workflow fix
kapv89 Dec 5, 2022
4c2b079
Merge pull request #207 from google/workflow/gh-pages
kapv89 Dec 5, 2022
68a0e73
github pages workflow fix
kapv89 Dec 5, 2022
c1e16e1
Merge pull request #208 from google/workflow/gh-pages
kapv89 Dec 5, 2022
1143288
github pages workflow fix
kapv89 Dec 5, 2022
a6bfea7
Merge pull request #209 from google/workflow/gh-pages
kapv89 Dec 5, 2022
36ce7d3
Ruby on Rails documentation updates (#169)
modulitos Dec 8, 2022
0579a4a
Always escape values in comments as per specification (#217)
kostyay Dec 15, 2022
b8c31ec
Add comments and unittests to go-sqlcommenter-core (#218)
sjs994 Dec 20, 2022
2e81d30
Update go test pipeline to build and test all libraries (#220)
sjs994 Dec 21, 2022
619477b
Fix sqlcommenter go imports (#219)
sjs994 Dec 21, 2022
3018fe7
Fix SQLCommenter database/sql test (#221)
sjs994 Dec 22, 2022
c447d21
#224 Add Docs for spring application properties (#225)
shubhwip Mar 22, 2023
871c1c8
fix: Add Go controller comment (#280)
duffn Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: github pages

on:
push:
branches:
- gh-pages # Set a branch that will trigger a deployment
pull_request:
branches:
- gh-pages
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: gh-pages
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.79.1'
# extended: true

- name: Build
run: cd src && hugo --minify && cd ..

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/gh-pages'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
68 changes: 68 additions & 0 deletions .github/workflows/go-sql-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: go packages test

on:
push:
branches:
- master
paths:
- go/**
pull_request:
paths:
- go/**

jobs:
unittests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Build core
run: go build -v ./...
working-directory: ./go/core

- name: Test core
run: go test -v ./...
working-directory: ./go/core

- name: Build net/http
run: go build -v ./...
working-directory: ./go/net/http

- name: Test net/http
run: go test -v ./...
working-directory: ./go/net/http

- name: Build gorilla/mux
run: go build -v ./...
working-directory: ./go/gorrila/mux

- name: Test gorilla/mux
run: go test -v ./...
working-directory: ./go/gorrila/mux

- name: Build database/sql
run: go build -v ./...
working-directory: ./go/database/sql

- name: Test database/sql
run: go test -v ./...
working-directory: ./go/database/sql

gofmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19

# Verify go fmt standards are used
- name: Format
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi
18 changes: 18 additions & 0 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Integration Tests
on:
push:
branches:
- master
paths-ignore:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
pull_request:
paths-ignore:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**

jobs:
integrationtests:
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required" '
88 changes: 88 additions & 0 deletions .github/workflows/laravel-integration-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Integration Tests
on:
push:
branches:
- master
paths:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
pull_request:
paths:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
jobs:
integrationtests:
runs-on: ubuntu-latest
container:
image: kirschbaumdevelopment/laravel-test-runner:8.0

services:
mysql:
image: mysql:8
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Get Composer Cache Directory
working-directory: ./php/sqlcommenter-php/samples/sqlcommenter-laravel
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Get yarn cache
working-directory: ./php/sqlcommenter-php/samples/sqlcommenter-laravel
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install composer dependencies
working-directory: ./php/sqlcommenter-php/samples/sqlcommenter-laravel
run: |
composer install --no-scripts

- name: Prepare Laravel Application
working-directory: ./php/sqlcommenter-php/samples/sqlcommenter-laravel
run: |
cp .env.ci .env
php artisan key:generate

- name: Install front-end dependencies
working-directory: ./php/sqlcommenter-php/samples/sqlcommenter-laravel
run: |
npm install
npm run dev

- name: Apply migrations
working-directory: ./php/sqlcommenter-php/samples/sqlcommenter-laravel
run: |
php artisan migrate

- name: Publish SQLCommenter Configurations
working-directory: ./php/sqlcommenter-php/samples/sqlcommenter-laravel
run: |
php artisan vendor:publish --provider="Google\GoogleSqlCommenterLaravel\GoogleSqlCommenterServiceProvider"

- name: Run Testsuite
working-directory: ./php/sqlcommenter-php/samples/sqlcommenter-laravel
run: vendor/bin/phpunit tests/
21 changes: 21 additions & 0 deletions .github/workflows/laravel-publish-to-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish to "sqlcommenter-laravel-php" repository
on:
push:
branches:
- master
paths:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
jobs:
push-to-repo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.PHP_SQLCOMMENTER_PUSH_TOKEN }}
with:
source-directory: 'php/sqlcommenter-php/packages/sqlcommenter-laravel'
destination-github-username: 'google'
destination-repository-name: 'sqlcommenter-laravel-php'
target-branch: main
57 changes: 57 additions & 0 deletions .github/workflows/laravel-unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Unit Tests
on:
push:
branches:
- master
paths:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**
pull_request:
paths:
- php/sqlcommenter-php/packages/sqlcommenter-laravel/**
- php/sqlcommenter-php/samples/sqlcommenter-laravel/**

jobs:
unittests:
runs-on: ubuntu-latest
container:
image: kirschbaumdevelopment/laravel-test-runner:8.0

steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Get Composer Cache Directory
working-directory: ./php/sqlcommenter-php/packages/sqlcommenter-laravel
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Get yarn cache
working-directory: ./php/sqlcommenter-php/packages/sqlcommenter-laravel
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v1
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install composer dependencies
working-directory: ./php/sqlcommenter-php/packages/sqlcommenter-laravel
run: |
composer install --no-scripts

- name: Run Testsuite
working-directory: ./php/sqlcommenter-php/packages/sqlcommenter-laravel
run: vendor/bin/phpunit tests/
32 changes: 32 additions & 0 deletions .github/workflows/nodejs-knex-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Nodejs Knex Packages Test

on:
push:
branches:
- master
paths:
- nodejs/sqlcommenter-nodejs/packages/sqlcommenter-knex
pull_request:
paths:
- nodejs/sqlcommenter-nodejs/packages/sqlcommenter-knex
jobs:
unittests:
runs-on: ubuntu-latest
strategy:
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
matrix:
node-version: [ current, lts/* ]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: ./nodejs/sqlcommenter-nodejs/packages/sqlcommenter-knex
- run: npm run build --if-present
working-directory: ./nodejs/sqlcommenter-nodejs/packages/sqlcommenter-knex
- run: npm test
working-directory: ./nodejs/sqlcommenter-nodejs/packages/sqlcommenter-knex

32 changes: 32 additions & 0 deletions .github/workflows/nodejs-sequelize-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Nodejs Sequelize Packages Test

on:
push:
branches:
- master
paths:
- nodejs/sqlcommenter-nodejs/packages/sqlcommenter-sequelize
pull_request:
paths:
- nodejs/sqlcommenter-nodejs/packages/sqlcommenter-sequelize
jobs:
unittests:
runs-on: ubuntu-latest
strategy:
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
matrix:
node-version: [ current, lts/* ]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: ./nodejs/sqlcommenter-nodejs/packages/sqlcommenter-sequelize
- run: npm run build --if-present
working-directory: ./nodejs/sqlcommenter-nodejs/packages/sqlcommenter-sequelize
- run: npm test
working-directory: ./nodejs/sqlcommenter-nodejs/packages/sqlcommenter-sequelize

Loading