-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from cloudtrust/events_db
Persist events in BD - First stage
- Loading branch information
Showing
7 changed files
with
277 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package keycloakb | ||
|
||
import ( | ||
"database/sql" | ||
) | ||
|
||
// NoopEventsDB is a eventsDB client that does nothing. | ||
type NoopEventsDB struct{} | ||
|
||
// Exec does nothing. | ||
func (NoopEventsDB) Exec(query string, args ...interface{}) (sql.Result, error) { | ||
return NoopResult{}, nil | ||
} | ||
|
||
// Query does nothing. | ||
func (NoopEventsDB) Query(query string, args ...interface{}) (*sql.Rows, error) { | ||
return nil, nil | ||
} | ||
|
||
// QueryRow does nothing. | ||
func (NoopEventsDB) QueryRow(query string, args ...interface{}) *sql.Row { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.