@@ -31,11 +31,15 @@ type Query struct {
3131// Build is a utility function for finding the dialect based on the driver and
3232// then calling BuildQuery(dialect)
3333func (q Query ) Build (driver string ) (sqlQuery string , params []interface {}, _ error ) {
34+ _ = driver
35+
3436 panic ("kbuilder is an experimental package and needs to be explicitly enabled see github.com/vingarcia/ksql/tree/master/kbuilder/README.md" )
3537}
3638
3739// BuildQuery implements the queryBuilder interface
3840func (q Query ) BuildQuery (dialect sqldialect.Provider ) (sqlQuery string , params []interface {}, _ error ) {
41+ _ = dialect
42+
3943 panic ("kbuilder is an experimental package and needs to be explicitly enabled see github.com/vingarcia/ksql/tree/master/kbuilder/README.md" )
4044}
4145
@@ -49,21 +53,29 @@ type WhereQueries []WhereQuery
4953// Where adds a new boolean condition to an existing
5054// WhereQueries helper.
5155func (w WhereQueries ) Where (cond string , params ... interface {}) WhereQueries {
56+ _ , _ = cond , params
57+
5258 panic ("kbuilder is an experimental package and needs to be explicitly enabled see github.com/vingarcia/ksql/tree/master/kbuilder/README.md" )
5359}
5460
5561// WhereIf conditionally adds a new boolean expression to the WhereQueries helper.
56- func (w WhereQueries ) WhereIf (ifConf bool , cond string , params ... interface {}) WhereQueries {
62+ func (w WhereQueries ) WhereIf (ifCond bool , cond string , params ... interface {}) WhereQueries {
63+ _ , _ , _ = ifCond , cond , params
64+
5765 panic ("kbuilder is an experimental package and needs to be explicitly enabled see github.com/vingarcia/ksql/tree/master/kbuilder/README.md" )
5866}
5967
6068// Where adds a new boolean condition to an existing
6169// WhereQueries helper.
6270func Where (cond string , params ... interface {}) WhereQueries {
71+ _ , _ = cond , params
72+
6373 panic ("kbuilder is an experimental package and needs to be explicitly enabled see github.com/vingarcia/ksql/tree/master/kbuilder/README.md" )
6474}
6575
6676// WhereIf conditionally adds a new boolean expression to the WhereQueries helper
6777func WhereIf (ifCond bool , cond string , params ... interface {}) WhereQueries {
78+ _ , _ , _ = ifCond , cond , params
79+
6880 panic ("kbuilder is an experimental package and needs to be explicitly enabled see github.com/vingarcia/ksql/tree/master/kbuilder/README.md" )
6981}
0 commit comments