Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package adapter |
||
2 | |||
3 | import ( |
||
4 | "github.com/cdleo/go-commons/sqlcommons" |
||
5 | ) |
||
6 | |||
7 | type noopAdapter struct{} |
||
8 | |||
9 | func NewNoopAdapter() sqlcommons.SQLAdapter { |
||
10 | return &noopAdapter{} |
||
11 | } |
||
12 | |||
13 | func (t *noopAdapter) Translate(query string) string { |
||
14 | return query |
||
15 | } |
||
16 | |||
17 | func (s *noopAdapter) ErrorHandler(err error) error { |
||
18 | return err |
||
19 | } |
||
20 |