Table interface cleanup.
This commit is contained in:
parent
8f51662fe5
commit
4d7fbf8f49
32 changed files with 543 additions and 794 deletions
|
|
@ -1,6 +1,6 @@
|
|||
package sqlbuilder
|
||||
|
||||
import "github.com/dropbox/godropbox/errors"
|
||||
import "errors"
|
||||
|
||||
type OrderByClause interface {
|
||||
serializeAsOrderBy(statement statementType, out *queryData) error
|
||||
|
|
@ -13,7 +13,7 @@ type orderByClauseImpl struct {
|
|||
|
||||
func (o *orderByClauseImpl) serializeAsOrderBy(statement statementType, out *queryData) error {
|
||||
if o.expression == nil {
|
||||
return errors.Newf("nil orderBy by clause.")
|
||||
return errors.New("nil orderBy by clause.")
|
||||
}
|
||||
|
||||
if err := o.expression.serializeAsOrderBy(statement, out); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue