File tree Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Expand file tree Collapse file tree 5 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 11# PostgreSQL Storage for [ OAuth 2.0] ( https://github.com/go-oauth2/oauth2 )
22
3+ [ ![ Build] [ Build-Status-Image ]] [ Build-Status-Url ] [ ![ Codecov] [ codecov-image ]] [ codecov-url ] [ ![ ReportCard] [ reportcard-image ]] [ reportcard-url ] [ ![ GoDoc] [ godoc-image ]] [ godoc-url ] [ ![ License] [ license-image ]] [ license-url ]
4+
35## Install
46
57``` bash
@@ -58,3 +60,20 @@ Now you can run tests using the running PostgreSQL instance using `PG_URI` envir
5860``` bash
5961PG_URI=postgres://oauth2:oauth2@localhost:5432/oauth2? sslmode=disable go test -cover ./...
6062```
63+
64+ ## MIT License
65+
66+ ```
67+ Copyright (c) 2019 Vladimir Garvardt
68+ ```
69+
70+ [ Build-Status-Url ] : https://travis-ci.org/vgarvardt/go-oauth2-pg
71+ [ Build-Status-Image ] : https://travis-ci.org/vgarvardt/go-oauth2-pg.svg?branch=master
72+ [ codecov-url ] : https://codecov.io/gh/vgarvardt/go-oauth2-pg
73+ [ codecov-image ] : https://codecov.io/gh/vgarvardt/go-oauth2-pg/branch/master/graph/badge.svg
74+ [ reportcard-url ] : https://goreportcard.com/report/github.com/vgarvardt/go-oauth2-pg
75+ [ reportcard-image ] : https://goreportcard.com/badge/github.com/vgarvardt/go-oauth2-pg
76+ [ godoc-url ] : https://godoc.org/github.com/vgarvardt/go-oauth2-pg
77+ [ godoc-image ] : https://godoc.org/github.com/vgarvardt/go-oauth2-pg?status.svg
78+ [ license-url ] : http://opensource.org/licenses/MIT
79+ [ license-image ] : https://img.shields.io/npm/l/express.svg
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ func NewConnPoolAdapter(conn *pgx.ConnPool) *ConnPoolAdapter {
1616 return & ConnPoolAdapter {conn }
1717}
1818
19- // ConnPoolAdapter is the adapter type for PGx connection connection type
19+ // ConnAdapter is the adapter type for PGx connection connection type
2020type ConnAdapter struct {
2121 conn * pgx.Conn
2222}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ func NewSQL(conn *sql.DB) *Adapter {
1717 return & Adapter {sqlx .NewDb (conn , "" )}
1818}
1919
20- // NewSQL instantiates sqlx.DB connection adapter
20+ // NewSQLx instantiates sqlx.DB connection adapter
2121func NewSQLx (conn * sqlx.DB ) * Adapter {
2222 return & Adapter {conn }
2323}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package pg
22
33import "time"
44
5- // Option is teh configuration options type for store
5+ // Option is the configuration options type for store
66type Option func (s * Store )
77
88// WithTableName returns option that sets store table name
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
1212 "gopkg.in/oauth2.v3/models"
1313)
1414
15+ // ErrNoRows is the driver-agnostic error returned when no record is found
1516var ErrNoRows = errors .New ("sql: no rows in result set" )
1617
1718// Adapter represents DB access layer interface for different PostgreSQL drivers
You can’t perform that action at this time.
0 commit comments