github.com/yongjacky/phoenix-go-orm-builder@v0.3.5/error.go (about)

     1  // Copyright 2016 The Xorm Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package builder
     6  
     7  import "errors"
     8  
     9  var (
    10  	// ErrNotSupportType not supported SQL type error
    11  	ErrNotSupportType = errors.New("Not supported SQL type")
    12  	// ErrNoNotInConditions no NOT IN params error
    13  	ErrNoNotInConditions = errors.New("No NOT IN conditions")
    14  	// ErrNoInConditions no IN params error
    15  	ErrNoInConditions = errors.New("No IN conditions")
    16  	// ErrNeedMoreArguments need more arguments
    17  	ErrNeedMoreArguments = errors.New("Need more sql arguments")
    18  	// ErrNoTableName no table name
    19  	ErrNoTableName = errors.New("No table indicated")
    20  	// ErrNoColumnToUpdate no column to update
    21  	ErrNoColumnToUpdate = errors.New("No column(s) to update")
    22  	// ErrNoColumnToInsert no column to insert
    23  	ErrNoColumnToInsert = errors.New("No column(s) to insert")
    24  	// ErrNotSupportDialectType not supported dialect type error
    25  	ErrNotSupportDialectType = errors.New("Not supported dialect type")
    26  	// ErrNotUnexpectedUnionConditions using union in a wrong way
    27  	ErrNotUnexpectedUnionConditions = errors.New("Unexpected conditional fields in UNION query")
    28  	// ErrUnsupportedUnionMembers unexpected members in UNION query
    29  	ErrUnsupportedUnionMembers = errors.New("Unexpected members in UNION query")
    30  	// ErrUnexpectedSubQuery Unexpected sub-query in SELECT query
    31  	ErrUnexpectedSubQuery = errors.New("Unexpected sub-query in SELECT query")
    32  	// ErrDialectNotSetUp dialect is not setup yet
    33  	ErrDialectNotSetUp = errors.New("Dialect is not setup yet, try to use `Dialect(dbType)` at first")
    34  	// ErrInvalidLimitation offset or limit is not correct
    35  	ErrInvalidLimitation = errors.New("Offset or limit is not correct")
    36  	// ErrUnnamedDerivedTable Every derived table must have its own alias
    37  	ErrUnnamedDerivedTable = errors.New("Every derived table must have its own alias")
    38  	// ErrInconsistentDialect Inconsistent dialect in same builder
    39  	ErrInconsistentDialect = errors.New("Inconsistent dialect in same builder")
    40  )