github.com/unionj-cloud/go-doudou/v2@v2.3.5/toolkit/gormgen/field/int.go (about)

     1  package field
     2  
     3  import (
     4  	"gorm.io/gorm/clause"
     5  )
     6  
     7  // Int int type field
     8  type Int Field
     9  
    10  // Eq equal to
    11  func (field Int) Eq(value int) Expr {
    12  	return expr{e: clause.Eq{Column: field.RawExpr(), Value: value}}
    13  }
    14  
    15  // Neq not equal to
    16  func (field Int) Neq(value int) Expr {
    17  	return expr{e: clause.Neq{Column: field.RawExpr(), Value: value}}
    18  }
    19  
    20  // Gt greater than
    21  func (field Int) Gt(value int) Expr {
    22  	return expr{e: clause.Gt{Column: field.RawExpr(), Value: value}}
    23  }
    24  
    25  // Gte greater or equal to
    26  func (field Int) Gte(value int) Expr {
    27  	return expr{e: clause.Gte{Column: field.RawExpr(), Value: value}}
    28  }
    29  
    30  // Lt less than
    31  func (field Int) Lt(value int) Expr {
    32  	return expr{e: clause.Lt{Column: field.RawExpr(), Value: value}}
    33  }
    34  
    35  // Lte less or equal to
    36  func (field Int) Lte(value int) Expr {
    37  	return expr{e: clause.Lte{Column: field.RawExpr(), Value: value}}
    38  }
    39  
    40  // In ...
    41  func (field Int) In(values ...int) Expr {
    42  	return expr{e: clause.IN{Column: field.RawExpr(), Values: field.toSlice(values...)}}
    43  }
    44  
    45  // NotIn ...
    46  func (field Int) NotIn(values ...int) Expr {
    47  	return expr{e: clause.Not(field.In(values...).expression())}
    48  }
    49  
    50  // Between ...
    51  func (field Int) Between(left int, right int) Expr {
    52  	return field.between([]interface{}{left, right})
    53  }
    54  
    55  // NotBetween ...
    56  func (field Int) NotBetween(left int, right int) Expr {
    57  	return Not(field.Between(left, right))
    58  }
    59  
    60  // Like ...
    61  func (field Int) Like(value int) Expr {
    62  	return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
    63  }
    64  
    65  // NotLike ...
    66  func (field Int) NotLike(value int) Expr {
    67  	return expr{e: clause.Not(field.Like(value).expression())}
    68  }
    69  
    70  // Add ...
    71  func (field Int) Add(value int) Int {
    72  	return Int{field.add(value)}
    73  }
    74  
    75  // Sub ...
    76  func (field Int) Sub(value int) Int {
    77  	return Int{field.sub(value)}
    78  }
    79  
    80  // Mul ...
    81  func (field Int) Mul(value int) Int {
    82  	return Int{field.mul(value)}
    83  }
    84  
    85  // Div ...
    86  func (field Int) Div(value int) Int {
    87  	return Int{field.div(value)}
    88  }
    89  
    90  // Mod ...
    91  func (field Int) Mod(value int) Int {
    92  	return Int{field.mod(value)}
    93  }
    94  
    95  // FloorDiv ...
    96  func (field Int) FloorDiv(value int) Int {
    97  	return Int{field.floorDiv(value)}
    98  }
    99  
   100  // RightShift ...
   101  func (field Int) RightShift(value int) Int {
   102  	return Int{field.rightShift(value)}
   103  }
   104  
   105  // LeftShift ...
   106  func (field Int) LeftShift(value int) Int {
   107  	return Int{field.leftShift(value)}
   108  }
   109  
   110  // BitXor ...
   111  func (field Int) BitXor(value int) Int {
   112  	return Int{field.bitXor(value)}
   113  }
   114  
   115  // BitAnd ...
   116  func (field Int) BitAnd(value int) Int {
   117  	return Int{field.bitAnd(value)}
   118  }
   119  
   120  // BitOr ...
   121  func (field Int) BitOr(value int) Int {
   122  	return Int{field.bitOr(value)}
   123  }
   124  
   125  // BitFlip ...
   126  func (field Int) BitFlip() Int {
   127  	return Int{field.bitFlip()}
   128  }
   129  
   130  // Value set value
   131  func (field Int) Value(value int) AssignExpr {
   132  	return field.value(value)
   133  }
   134  
   135  // Zero set zero value
   136  func (field Int) Zero() AssignExpr {
   137  	return field.value(0)
   138  }
   139  
   140  // Sum ...
   141  func (field Int) Sum() Int {
   142  	return Int{field.sum()}
   143  }
   144  
   145  // IfNull ...
   146  func (field Int) IfNull(value int) Expr {
   147  	return field.ifNull(value)
   148  }
   149  
   150  func (field Int) toSlice(values ...int) []interface{} {
   151  	slice := make([]interface{}, len(values))
   152  	for i, v := range values {
   153  		slice[i] = v
   154  	}
   155  	return slice
   156  }
   157  
   158  // Int8 int8 type field
   159  type Int8 Int
   160  
   161  // Eq equal to
   162  func (field Int8) Eq(value int8) Expr {
   163  	return expr{e: clause.Eq{Column: field.RawExpr(), Value: value}}
   164  }
   165  
   166  // Neq not equal to
   167  func (field Int8) Neq(value int8) Expr {
   168  	return expr{e: clause.Neq{Column: field.RawExpr(), Value: value}}
   169  }
   170  
   171  // Gt greater than
   172  func (field Int8) Gt(value int8) Expr {
   173  	return expr{e: clause.Gt{Column: field.RawExpr(), Value: value}}
   174  }
   175  
   176  // Gte greater or equal to
   177  func (field Int8) Gte(value int8) Expr {
   178  	return expr{e: clause.Gte{Column: field.RawExpr(), Value: value}}
   179  }
   180  
   181  // Lt less than
   182  func (field Int8) Lt(value int8) Expr {
   183  	return expr{e: clause.Lt{Column: field.RawExpr(), Value: value}}
   184  }
   185  
   186  // Lte less or equal to
   187  func (field Int8) Lte(value int8) Expr {
   188  	return expr{e: clause.Lte{Column: field.RawExpr(), Value: value}}
   189  }
   190  
   191  // In ...
   192  func (field Int8) In(values ...int8) Expr {
   193  	return expr{e: clause.IN{Column: field.RawExpr(), Values: field.toSlice(values...)}}
   194  }
   195  
   196  // NotIn ...
   197  func (field Int8) NotIn(values ...int8) Expr {
   198  	return expr{e: clause.Not(field.In(values...).expression())}
   199  }
   200  
   201  // Between ...
   202  func (field Int8) Between(left int8, right int8) Expr {
   203  	return field.between([]interface{}{left, right})
   204  }
   205  
   206  // NotBetween ...
   207  func (field Int8) NotBetween(left int8, right int8) Expr {
   208  	return Not(field.Between(left, right))
   209  }
   210  
   211  // Like ...
   212  func (field Int8) Like(value int8) Expr {
   213  	return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
   214  }
   215  
   216  // NotLike ...
   217  func (field Int8) NotLike(value int8) Expr {
   218  	return expr{e: clause.Not(field.Like(value).expression())}
   219  }
   220  
   221  // Add ...
   222  func (field Int8) Add(value int8) Int8 {
   223  	return Int8{field.add(value)}
   224  }
   225  
   226  // Sub ...
   227  func (field Int8) Sub(value int8) Int8 {
   228  	return Int8{field.sub(value)}
   229  }
   230  
   231  // Mul ...
   232  func (field Int8) Mul(value int8) Int8 {
   233  	return Int8{field.mul(value)}
   234  }
   235  
   236  // Div ...
   237  func (field Int8) Div(value int8) Int8 {
   238  	return Int8{field.div(value)}
   239  }
   240  
   241  // Mod ...
   242  func (field Int8) Mod(value int8) Int8 {
   243  	return Int8{field.mod(value)}
   244  }
   245  
   246  // FloorDiv ...
   247  func (field Int8) FloorDiv(value int8) Int8 {
   248  	return Int8{field.floorDiv(value)}
   249  }
   250  
   251  // RightShift ...
   252  func (field Int8) RightShift(value int8) Int8 {
   253  	return Int8{field.rightShift(value)}
   254  }
   255  
   256  // LeftShift ...
   257  func (field Int8) LeftShift(value int8) Int8 {
   258  	return Int8{field.leftShift(value)}
   259  }
   260  
   261  // BitXor ...
   262  func (field Int8) BitXor(value int8) Int8 {
   263  	return Int8{field.bitXor(value)}
   264  }
   265  
   266  // BitAnd ...
   267  func (field Int8) BitAnd(value int8) Int8 {
   268  	return Int8{field.bitAnd(value)}
   269  }
   270  
   271  // BitOr ...
   272  func (field Int8) BitOr(value int8) Int8 {
   273  	return Int8{field.bitOr(value)}
   274  }
   275  
   276  // BitFlip ...
   277  func (field Int8) BitFlip() Int8 {
   278  	return Int8{field.bitFlip()}
   279  }
   280  
   281  // Value set value
   282  func (field Int8) Value(value int8) AssignExpr {
   283  	return field.value(value)
   284  }
   285  
   286  // Zero set zero value
   287  func (field Int8) Zero() AssignExpr {
   288  	return field.value(0)
   289  }
   290  
   291  // Sum ...
   292  func (field Int8) Sum() Int8 {
   293  	return Int8{field.sum()}
   294  }
   295  
   296  // IfNull ...
   297  func (field Int8) IfNull(value int8) Expr {
   298  	return field.ifNull(value)
   299  }
   300  
   301  func (field Int8) toSlice(values ...int8) []interface{} {
   302  	slice := make([]interface{}, len(values))
   303  	for i, v := range values {
   304  		slice[i] = v
   305  	}
   306  	return slice
   307  }
   308  
   309  // Int16 int16 type field
   310  type Int16 Int
   311  
   312  // Eq equal to
   313  func (field Int16) Eq(value int16) Expr {
   314  	return expr{e: clause.Eq{Column: field.RawExpr(), Value: value}}
   315  }
   316  
   317  // Neq not equal to
   318  func (field Int16) Neq(value int16) Expr {
   319  	return expr{e: clause.Neq{Column: field.RawExpr(), Value: value}}
   320  }
   321  
   322  // Gt greater than
   323  func (field Int16) Gt(value int16) Expr {
   324  	return expr{e: clause.Gt{Column: field.RawExpr(), Value: value}}
   325  }
   326  
   327  // Gte greater or equal to
   328  func (field Int16) Gte(value int16) Expr {
   329  	return expr{e: clause.Gte{Column: field.RawExpr(), Value: value}}
   330  }
   331  
   332  // Lt less than
   333  func (field Int16) Lt(value int16) Expr {
   334  	return expr{e: clause.Lt{Column: field.RawExpr(), Value: value}}
   335  }
   336  
   337  // Lte less or equal to
   338  func (field Int16) Lte(value int16) Expr {
   339  	return expr{e: clause.Lte{Column: field.RawExpr(), Value: value}}
   340  }
   341  
   342  // In ...
   343  func (field Int16) In(values ...int16) Expr {
   344  	return expr{e: clause.IN{Column: field.RawExpr(), Values: field.toSlice(values...)}}
   345  }
   346  
   347  // NotIn ...
   348  func (field Int16) NotIn(values ...int16) Expr {
   349  	return expr{e: clause.Not(field.In(values...).expression())}
   350  }
   351  
   352  // Between ...
   353  func (field Int16) Between(left int16, right int16) Expr {
   354  	return field.between([]interface{}{left, right})
   355  }
   356  
   357  // NotBetween ...
   358  func (field Int16) NotBetween(left int16, right int16) Expr {
   359  	return Not(field.Between(left, right))
   360  }
   361  
   362  // Like ...
   363  func (field Int16) Like(value int16) Expr {
   364  	return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
   365  }
   366  
   367  // NotLike ...
   368  func (field Int16) NotLike(value int16) Expr {
   369  	return expr{e: clause.Not(field.Like(value).expression())}
   370  }
   371  
   372  // Add ...
   373  func (field Int16) Add(value int16) Int16 {
   374  	return Int16{field.add(value)}
   375  }
   376  
   377  // Sub ...
   378  func (field Int16) Sub(value int16) Int16 {
   379  	return Int16{field.sub(value)}
   380  }
   381  
   382  // Mul ...
   383  func (field Int16) Mul(value int16) Int16 {
   384  	return Int16{field.mul(value)}
   385  }
   386  
   387  // Div ...
   388  func (field Int16) Div(value int16) Int16 {
   389  	return Int16{field.div(value)}
   390  }
   391  
   392  // Mod ...
   393  func (field Int16) Mod(value int16) Int16 {
   394  	return Int16{field.mod(value)}
   395  }
   396  
   397  // FloorDiv ...
   398  func (field Int16) FloorDiv(value int16) Int16 {
   399  	return Int16{field.floorDiv(value)}
   400  }
   401  
   402  // RightShift ...
   403  func (field Int16) RightShift(value int16) Int16 {
   404  	return Int16{field.rightShift(value)}
   405  }
   406  
   407  // LeftShift ...
   408  func (field Int16) LeftShift(value int16) Int16 {
   409  	return Int16{field.leftShift(value)}
   410  }
   411  
   412  // BitXor ...
   413  func (field Int16) BitXor(value int16) Int16 {
   414  	return Int16{field.bitXor(value)}
   415  }
   416  
   417  // BitAnd ...
   418  func (field Int16) BitAnd(value int16) Int16 {
   419  	return Int16{field.bitAnd(value)}
   420  }
   421  
   422  // BitOr ...
   423  func (field Int16) BitOr(value int16) Int16 {
   424  	return Int16{field.bitOr(value)}
   425  }
   426  
   427  // BitFlip ...
   428  func (field Int16) BitFlip() Int16 {
   429  	return Int16{field.bitFlip()}
   430  }
   431  
   432  // Value set value
   433  func (field Int16) Value(value int16) AssignExpr {
   434  	return field.value(value)
   435  }
   436  
   437  // Zero set zero value
   438  func (field Int16) Zero() AssignExpr {
   439  	return field.value(0)
   440  }
   441  
   442  // Sum ...
   443  func (field Int16) Sum() Int16 {
   444  	return Int16{field.sum()}
   445  }
   446  
   447  // IfNull ...
   448  func (field Int16) IfNull(value int16) Expr {
   449  	return field.ifNull(value)
   450  }
   451  
   452  func (field Int16) toSlice(values ...int16) []interface{} {
   453  	slice := make([]interface{}, len(values))
   454  	for i, v := range values {
   455  		slice[i] = v
   456  	}
   457  	return slice
   458  }
   459  
   460  // Int32 int32 type field
   461  type Int32 Int
   462  
   463  // Eq equal to
   464  func (field Int32) Eq(value int32) Expr {
   465  	return expr{e: clause.Eq{Column: field.RawExpr(), Value: value}}
   466  }
   467  
   468  // Neq not equal to
   469  func (field Int32) Neq(value int32) Expr {
   470  	return expr{e: clause.Neq{Column: field.RawExpr(), Value: value}}
   471  }
   472  
   473  // Gt greater than
   474  func (field Int32) Gt(value int32) Expr {
   475  	return expr{e: clause.Gt{Column: field.RawExpr(), Value: value}}
   476  }
   477  
   478  // Gte greater or equal to
   479  func (field Int32) Gte(value int32) Expr {
   480  	return expr{e: clause.Gte{Column: field.RawExpr(), Value: value}}
   481  }
   482  
   483  // Lt less than
   484  func (field Int32) Lt(value int32) Expr {
   485  	return expr{e: clause.Lt{Column: field.RawExpr(), Value: value}}
   486  }
   487  
   488  // Lte less or equal to
   489  func (field Int32) Lte(value int32) Expr {
   490  	return expr{e: clause.Lte{Column: field.RawExpr(), Value: value}}
   491  }
   492  
   493  // In ...
   494  func (field Int32) In(values ...int32) Expr {
   495  	return expr{e: clause.IN{Column: field.RawExpr(), Values: field.toSlice(values...)}}
   496  }
   497  
   498  // NotIn ...
   499  func (field Int32) NotIn(values ...int32) Expr {
   500  	return expr{e: clause.Not(field.In(values...).expression())}
   501  }
   502  
   503  // Between ...
   504  func (field Int32) Between(left int32, right int32) Expr {
   505  	return field.between([]interface{}{left, right})
   506  }
   507  
   508  // NotBetween ...
   509  func (field Int32) NotBetween(left int32, right int32) Expr {
   510  	return Not(field.Between(left, right))
   511  }
   512  
   513  // Like ...
   514  func (field Int32) Like(value int32) Expr {
   515  	return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
   516  }
   517  
   518  // NotLike ...
   519  func (field Int32) NotLike(value int32) Expr {
   520  	return expr{e: clause.Not(field.Like(value).expression())}
   521  }
   522  
   523  // Add ...
   524  func (field Int32) Add(value int32) Int32 {
   525  	return Int32{field.add(value)}
   526  }
   527  
   528  // Sub ...
   529  func (field Int32) Sub(value int32) Int32 {
   530  	return Int32{field.sub(value)}
   531  }
   532  
   533  // Mul ...
   534  func (field Int32) Mul(value int32) Int32 {
   535  	return Int32{field.mul(value)}
   536  }
   537  
   538  // Div ...
   539  func (field Int32) Div(value int32) Int32 {
   540  	return Int32{field.div(value)}
   541  }
   542  
   543  // Mod ...
   544  func (field Int32) Mod(value int32) Int32 {
   545  	return Int32{field.mod(value)}
   546  }
   547  
   548  // FloorDiv ...
   549  func (field Int32) FloorDiv(value int32) Int32 {
   550  	return Int32{field.floorDiv(value)}
   551  }
   552  
   553  // RightShift ...
   554  func (field Int32) RightShift(value int32) Int32 {
   555  	return Int32{field.rightShift(value)}
   556  }
   557  
   558  // LeftShift ...
   559  func (field Int32) LeftShift(value int32) Int32 {
   560  	return Int32{field.leftShift(value)}
   561  }
   562  
   563  // BitXor ...
   564  func (field Int32) BitXor(value int32) Int32 {
   565  	return Int32{field.bitXor(value)}
   566  }
   567  
   568  // BitAnd ...
   569  func (field Int32) BitAnd(value int32) Int32 {
   570  	return Int32{field.bitAnd(value)}
   571  }
   572  
   573  // BitOr ...
   574  func (field Int32) BitOr(value int32) Int32 {
   575  	return Int32{field.bitOr(value)}
   576  }
   577  
   578  // BitFlip ...
   579  func (field Int32) BitFlip() Int32 {
   580  	return Int32{field.bitFlip()}
   581  }
   582  
   583  // Value set value
   584  func (field Int32) Value(value int32) AssignExpr {
   585  	return field.value(value)
   586  }
   587  
   588  // Zero set zero value
   589  func (field Int32) Zero() AssignExpr {
   590  	return field.value(0)
   591  }
   592  
   593  // Sum ...
   594  func (field Int32) Sum() Int32 {
   595  	return Int32{field.sum()}
   596  }
   597  
   598  // IfNull ...
   599  func (field Int32) IfNull(value int32) Expr {
   600  	return field.ifNull(value)
   601  }
   602  
   603  func (field Int32) toSlice(values ...int32) []interface{} {
   604  	slice := make([]interface{}, len(values))
   605  	for i, v := range values {
   606  		slice[i] = v
   607  	}
   608  	return slice
   609  }
   610  
   611  // Int64 int64 type field
   612  type Int64 Int
   613  
   614  // Eq equal to
   615  func (field Int64) Eq(value int64) Expr {
   616  	return expr{e: clause.Eq{Column: field.RawExpr(), Value: value}}
   617  }
   618  
   619  // Neq not equal to
   620  func (field Int64) Neq(value int64) Expr {
   621  	return expr{e: clause.Neq{Column: field.RawExpr(), Value: value}}
   622  }
   623  
   624  // Gt greater than
   625  func (field Int64) Gt(value int64) Expr {
   626  	return expr{e: clause.Gt{Column: field.RawExpr(), Value: value}}
   627  }
   628  
   629  // Gte greater or equal to
   630  func (field Int64) Gte(value int64) Expr {
   631  	return expr{e: clause.Gte{Column: field.RawExpr(), Value: value}}
   632  }
   633  
   634  // Lt less than
   635  func (field Int64) Lt(value int64) Expr {
   636  	return expr{e: clause.Lt{Column: field.RawExpr(), Value: value}}
   637  }
   638  
   639  // Lte less or equal to
   640  func (field Int64) Lte(value int64) Expr {
   641  	return expr{e: clause.Lte{Column: field.RawExpr(), Value: value}}
   642  }
   643  
   644  // In ...
   645  func (field Int64) In(values ...int64) Expr {
   646  	return expr{e: clause.IN{Column: field.RawExpr(), Values: field.toSlice(values...)}}
   647  }
   648  
   649  // NotIn ...
   650  func (field Int64) NotIn(values ...int64) Expr {
   651  	return expr{e: clause.Not(field.In(values...).expression())}
   652  }
   653  
   654  // Between ...
   655  func (field Int64) Between(left int64, right int64) Expr {
   656  	return field.between([]interface{}{left, right})
   657  }
   658  
   659  // NotBetween ...
   660  func (field Int64) NotBetween(left int64, right int64) Expr {
   661  	return Not(field.Between(left, right))
   662  }
   663  
   664  // Like ...
   665  func (field Int64) Like(value int64) Expr {
   666  	return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
   667  }
   668  
   669  // NotLike ...
   670  func (field Int64) NotLike(value int64) Expr {
   671  	return expr{e: clause.Not(field.Like(value).expression())}
   672  }
   673  
   674  // Add ...
   675  func (field Int64) Add(value int64) Int64 {
   676  	return Int64{field.add(value)}
   677  }
   678  
   679  // Sub ...
   680  func (field Int64) Sub(value int64) Int64 {
   681  	return Int64{field.sub(value)}
   682  }
   683  
   684  // Mul ...
   685  func (field Int64) Mul(value int64) Int64 {
   686  	return Int64{field.mul(value)}
   687  }
   688  
   689  // Div ...
   690  func (field Int64) Div(value int64) Int64 {
   691  	return Int64{field.div(value)}
   692  }
   693  
   694  // Mod ...
   695  func (field Int64) Mod(value int64) Int64 {
   696  	return Int64{field.mod(value)}
   697  }
   698  
   699  // FloorDiv ...
   700  func (field Int64) FloorDiv(value int64) Int64 {
   701  	return Int64{field.floorDiv(value)}
   702  }
   703  
   704  // RightShift ...
   705  func (field Int64) RightShift(value int64) Int64 {
   706  	return Int64{field.rightShift(value)}
   707  }
   708  
   709  // LeftShift ...
   710  func (field Int64) LeftShift(value int64) Int64 {
   711  	return Int64{field.leftShift(value)}
   712  }
   713  
   714  // BitXor ...
   715  func (field Int64) BitXor(value int64) Int64 {
   716  	return Int64{field.bitXor(value)}
   717  }
   718  
   719  // BitAnd ...
   720  func (field Int64) BitAnd(value int64) Int64 {
   721  	return Int64{field.bitAnd(value)}
   722  }
   723  
   724  // BitOr ...
   725  func (field Int64) BitOr(value int64) Int64 {
   726  	return Int64{field.bitOr(value)}
   727  }
   728  
   729  // BitFlip ...
   730  func (field Int64) BitFlip() Int64 {
   731  	return Int64{field.bitFlip()}
   732  }
   733  
   734  // Value set value
   735  func (field Int64) Value(value int64) AssignExpr {
   736  	return field.value(value)
   737  }
   738  
   739  // Zero set zero value
   740  func (field Int64) Zero() AssignExpr {
   741  	return field.value(0)
   742  }
   743  
   744  // Sum ...
   745  func (field Int64) Sum() Int64 {
   746  	return Int64{field.sum()}
   747  }
   748  
   749  // IfNull ...
   750  func (field Int64) IfNull(value int64) Expr {
   751  	return field.ifNull(value)
   752  }
   753  
   754  func (field Int64) toSlice(values ...int64) []interface{} {
   755  	slice := make([]interface{}, len(values))
   756  	for i, v := range values {
   757  		slice[i] = v
   758  	}
   759  	return slice
   760  }
   761  
   762  // Uint uint type field
   763  type Uint Int
   764  
   765  // Eq equal to
   766  func (field Uint) Eq(value uint) Expr {
   767  	return expr{e: clause.Eq{Column: field.RawExpr(), Value: value}}
   768  }
   769  
   770  // Neq not equal to
   771  func (field Uint) Neq(value uint) Expr {
   772  	return expr{e: clause.Neq{Column: field.RawExpr(), Value: value}}
   773  }
   774  
   775  // Gt greater than
   776  func (field Uint) Gt(value uint) Expr {
   777  	return expr{e: clause.Gt{Column: field.RawExpr(), Value: value}}
   778  }
   779  
   780  // Gte greater or equal to
   781  func (field Uint) Gte(value uint) Expr {
   782  	return expr{e: clause.Gte{Column: field.RawExpr(), Value: value}}
   783  }
   784  
   785  // Lt less than
   786  func (field Uint) Lt(value uint) Expr {
   787  	return expr{e: clause.Lt{Column: field.RawExpr(), Value: value}}
   788  }
   789  
   790  // Lte less or equal to
   791  func (field Uint) Lte(value uint) Expr {
   792  	return expr{e: clause.Lte{Column: field.RawExpr(), Value: value}}
   793  }
   794  
   795  // In ...
   796  func (field Uint) In(values ...uint) Expr {
   797  	return expr{e: clause.IN{Column: field.RawExpr(), Values: field.toSlice(values...)}}
   798  }
   799  
   800  // NotIn ...
   801  func (field Uint) NotIn(values ...uint) Expr {
   802  	return expr{e: clause.Not(field.In(values...).expression())}
   803  }
   804  
   805  // Between ...
   806  func (field Uint) Between(left uint, right uint) Expr {
   807  	return field.between([]interface{}{left, right})
   808  }
   809  
   810  // NotBetween ...
   811  func (field Uint) NotBetween(left uint, right uint) Expr {
   812  	return Not(field.Between(left, right))
   813  }
   814  
   815  // Like ...
   816  func (field Uint) Like(value uint) Expr {
   817  	return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
   818  }
   819  
   820  // NotLike ...
   821  func (field Uint) NotLike(value uint) Expr {
   822  	return expr{e: clause.Not(field.Like(value).expression())}
   823  }
   824  
   825  // Add ...
   826  func (field Uint) Add(value uint) Uint {
   827  	return Uint{field.add(value)}
   828  }
   829  
   830  // Sub ...
   831  func (field Uint) Sub(value uint) Uint {
   832  	return Uint{field.sub(value)}
   833  }
   834  
   835  // Mul ...
   836  func (field Uint) Mul(value uint) Uint {
   837  	return Uint{field.mul(value)}
   838  }
   839  
   840  // Div ...
   841  func (field Uint) Div(value uint) Uint {
   842  	return Uint{field.mul(value)}
   843  }
   844  
   845  // Mod ...
   846  func (field Uint) Mod(value uint) Uint {
   847  	return Uint{field.mod(value)}
   848  }
   849  
   850  // FloorDiv ...
   851  func (field Uint) FloorDiv(value uint) Uint {
   852  	return Uint{field.floorDiv(value)}
   853  }
   854  
   855  // RightShift ...
   856  func (field Uint) RightShift(value uint) Uint {
   857  	return Uint{field.rightShift(value)}
   858  }
   859  
   860  // LeftShift ...
   861  func (field Uint) LeftShift(value uint) Uint {
   862  	return Uint{field.leftShift(value)}
   863  }
   864  
   865  // BitXor ...
   866  func (field Uint) BitXor(value uint) Uint {
   867  	return Uint{field.bitXor(value)}
   868  }
   869  
   870  // BitAnd ...
   871  func (field Uint) BitAnd(value uint) Uint {
   872  	return Uint{field.bitAnd(value)}
   873  }
   874  
   875  // BitOr ...
   876  func (field Uint) BitOr(value uint) Uint {
   877  	return Uint{field.bitOr(value)}
   878  }
   879  
   880  // BitFlip ...
   881  func (field Uint) BitFlip() Uint {
   882  	return Uint{field.bitFlip()}
   883  }
   884  
   885  // Value set value
   886  func (field Uint) Value(value uint) AssignExpr {
   887  	return field.value(value)
   888  }
   889  
   890  // Zero set zero value
   891  func (field Uint) Zero() AssignExpr {
   892  	return field.value(0)
   893  }
   894  
   895  // Sum ...
   896  func (field Uint) Sum() Uint {
   897  	return Uint{field.sum()}
   898  }
   899  
   900  // IfNull ...
   901  func (field Uint) IfNull(value uint) Expr {
   902  	return field.ifNull(value)
   903  }
   904  
   905  func (field Uint) toSlice(values ...uint) []interface{} {
   906  	slice := make([]interface{}, len(values))
   907  	for i, v := range values {
   908  		slice[i] = v
   909  	}
   910  	return slice
   911  }
   912  
   913  // Uint8 uint8 type field
   914  type Uint8 Int
   915  
   916  // Eq equal to
   917  func (field Uint8) Eq(value uint8) Expr {
   918  	return expr{e: clause.Eq{Column: field.RawExpr(), Value: value}}
   919  }
   920  
   921  // Neq not equal to
   922  func (field Uint8) Neq(value uint8) Expr {
   923  	return expr{e: clause.Neq{Column: field.RawExpr(), Value: value}}
   924  }
   925  
   926  // Gt greater than
   927  func (field Uint8) Gt(value uint8) Expr {
   928  	return expr{e: clause.Gt{Column: field.RawExpr(), Value: value}}
   929  }
   930  
   931  // Gte greater or equal to
   932  func (field Uint8) Gte(value uint8) Expr {
   933  	return expr{e: clause.Gte{Column: field.RawExpr(), Value: value}}
   934  }
   935  
   936  // Lt less than
   937  func (field Uint8) Lt(value uint8) Expr {
   938  	return expr{e: clause.Lt{Column: field.RawExpr(), Value: value}}
   939  }
   940  
   941  // Lte less or equal to
   942  func (field Uint8) Lte(value uint8) Expr {
   943  	return expr{e: clause.Lte{Column: field.RawExpr(), Value: value}}
   944  }
   945  
   946  // In ...
   947  func (field Uint8) In(values ...uint8) Expr {
   948  	return expr{e: clause.IN{Column: field.RawExpr(), Values: field.toSlice(values...)}}
   949  }
   950  
   951  // NotIn ...
   952  func (field Uint8) NotIn(values ...uint8) Expr {
   953  	return expr{e: clause.Not(field.In(values...).expression())}
   954  }
   955  
   956  // Between ...
   957  func (field Uint8) Between(left uint8, right uint8) Expr {
   958  	return field.between([]interface{}{left, right})
   959  }
   960  
   961  // NotBetween ...
   962  func (field Uint8) NotBetween(left uint8, right uint8) Expr {
   963  	return Not(field.Between(left, right))
   964  }
   965  
   966  // Like ...
   967  func (field Uint8) Like(value uint8) Expr {
   968  	return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
   969  }
   970  
   971  // NotLike ...
   972  func (field Uint8) NotLike(value uint8) Expr {
   973  	return expr{e: clause.Not(field.Like(value).expression())}
   974  }
   975  
   976  // Add ...
   977  func (field Uint8) Add(value uint8) Uint8 {
   978  	return Uint8{field.add(value)}
   979  }
   980  
   981  // Sub ...
   982  func (field Uint8) Sub(value uint8) Uint8 {
   983  	return Uint8{field.sub(value)}
   984  }
   985  
   986  // Mul ...
   987  func (field Uint8) Mul(value uint8) Uint8 {
   988  	return Uint8{field.mul(value)}
   989  }
   990  
   991  // Div ...
   992  func (field Uint8) Div(value uint8) Uint8 {
   993  	return Uint8{field.mul(value)}
   994  }
   995  
   996  // Mod ...
   997  func (field Uint8) Mod(value uint8) Uint8 {
   998  	return Uint8{field.mod(value)}
   999  }
  1000  
  1001  // FloorDiv ...
  1002  func (field Uint8) FloorDiv(value uint8) Uint8 {
  1003  	return Uint8{field.floorDiv(value)}
  1004  }
  1005  
  1006  // RightShift ...
  1007  func (field Uint8) RightShift(value uint8) Uint8 {
  1008  	return Uint8{field.rightShift(value)}
  1009  }
  1010  
  1011  // LeftShift ...
  1012  func (field Uint8) LeftShift(value uint8) Uint8 {
  1013  	return Uint8{field.leftShift(value)}
  1014  }
  1015  
  1016  // BitXor ...
  1017  func (field Uint8) BitXor(value uint8) Uint8 {
  1018  	return Uint8{field.bitXor(value)}
  1019  }
  1020  
  1021  // BitAnd ...
  1022  func (field Uint8) BitAnd(value uint8) Uint8 {
  1023  	return Uint8{field.bitAnd(value)}
  1024  }
  1025  
  1026  // BitOr ...
  1027  func (field Uint8) BitOr(value uint8) Uint8 {
  1028  	return Uint8{field.bitOr(value)}
  1029  }
  1030  
  1031  // BitFlip ...
  1032  func (field Uint8) BitFlip() Uint8 {
  1033  	return Uint8{field.bitFlip()}
  1034  }
  1035  
  1036  // Value set value
  1037  func (field Uint8) Value(value uint8) AssignExpr {
  1038  	return field.value(value)
  1039  }
  1040  
  1041  // Zero set zero value
  1042  func (field Uint8) Zero() AssignExpr {
  1043  	return field.value(0)
  1044  }
  1045  
  1046  // Sum ...
  1047  func (field Uint8) Sum() Uint8 {
  1048  	return Uint8{field.sum()}
  1049  }
  1050  
  1051  // IfNull ...
  1052  func (field Uint8) IfNull(value uint8) Expr {
  1053  	return field.ifNull(value)
  1054  }
  1055  
  1056  func (field Uint8) toSlice(values ...uint8) []interface{} {
  1057  	slice := make([]interface{}, len(values))
  1058  	for i, v := range values {
  1059  		slice[i] = v
  1060  	}
  1061  	return slice
  1062  }
  1063  
  1064  // Uint16 uint16 type field
  1065  type Uint16 Int
  1066  
  1067  // Eq equal to
  1068  func (field Uint16) Eq(value uint16) Expr {
  1069  	return expr{e: clause.Eq{Column: field.RawExpr(), Value: value}}
  1070  }
  1071  
  1072  // Neq not equal to
  1073  func (field Uint16) Neq(value uint16) Expr {
  1074  	return expr{e: clause.Neq{Column: field.RawExpr(), Value: value}}
  1075  }
  1076  
  1077  // Gt greater than
  1078  func (field Uint16) Gt(value uint16) Expr {
  1079  	return expr{e: clause.Gt{Column: field.RawExpr(), Value: value}}
  1080  }
  1081  
  1082  // Gte greater or equal to
  1083  func (field Uint16) Gte(value uint16) Expr {
  1084  	return expr{e: clause.Gte{Column: field.RawExpr(), Value: value}}
  1085  }
  1086  
  1087  // Lt less than
  1088  func (field Uint16) Lt(value uint16) Expr {
  1089  	return expr{e: clause.Lt{Column: field.RawExpr(), Value: value}}
  1090  }
  1091  
  1092  // Lte less or equal to
  1093  func (field Uint16) Lte(value uint16) Expr {
  1094  	return expr{e: clause.Lte{Column: field.RawExpr(), Value: value}}
  1095  }
  1096  
  1097  // In ...
  1098  func (field Uint16) In(values ...uint16) Expr {
  1099  	return expr{e: clause.IN{Column: field.RawExpr(), Values: field.toSlice(values...)}}
  1100  }
  1101  
  1102  // NotIn ...
  1103  func (field Uint16) NotIn(values ...uint16) Expr {
  1104  	return expr{e: clause.Not(field.In(values...).expression())}
  1105  }
  1106  
  1107  // Between ...
  1108  func (field Uint16) Between(left uint16, right uint16) Expr {
  1109  	return field.between([]interface{}{left, right})
  1110  }
  1111  
  1112  // NotBetween ...
  1113  func (field Uint16) NotBetween(left uint16, right uint16) Expr {
  1114  	return Not(field.Between(left, right))
  1115  }
  1116  
  1117  // Like ...
  1118  func (field Uint16) Like(value uint16) Expr {
  1119  	return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
  1120  }
  1121  
  1122  // NotLike ...
  1123  func (field Uint16) NotLike(value uint16) Expr {
  1124  	return expr{e: clause.Not(field.Like(value).expression())}
  1125  }
  1126  
  1127  // Add ...
  1128  func (field Uint16) Add(value uint16) Uint16 {
  1129  	return Uint16{field.add(value)}
  1130  }
  1131  
  1132  // Sub ...
  1133  func (field Uint16) Sub(value uint16) Uint16 {
  1134  	return Uint16{field.sub(value)}
  1135  }
  1136  
  1137  // Mul ...
  1138  func (field Uint16) Mul(value uint16) Uint16 {
  1139  	return Uint16{field.mul(value)}
  1140  }
  1141  
  1142  // Div ...
  1143  func (field Uint16) Div(value uint16) Uint16 {
  1144  	return Uint16{field.mul(value)}
  1145  }
  1146  
  1147  // Mod ...
  1148  func (field Uint16) Mod(value uint16) Uint16 {
  1149  	return Uint16{field.mod(value)}
  1150  }
  1151  
  1152  // FloorDiv ...
  1153  func (field Uint16) FloorDiv(value uint16) Uint16 {
  1154  	return Uint16{field.floorDiv(value)}
  1155  }
  1156  
  1157  // RightShift ...
  1158  func (field Uint16) RightShift(value uint16) Uint16 {
  1159  	return Uint16{field.rightShift(value)}
  1160  }
  1161  
  1162  // LeftShift ...
  1163  func (field Uint16) LeftShift(value uint16) Uint16 {
  1164  	return Uint16{field.leftShift(value)}
  1165  }
  1166  
  1167  // BitXor ...
  1168  func (field Uint16) BitXor(value uint16) Uint16 {
  1169  	return Uint16{field.bitXor(value)}
  1170  }
  1171  
  1172  // BitAnd ...
  1173  func (field Uint16) BitAnd(value uint16) Uint16 {
  1174  	return Uint16{field.bitAnd(value)}
  1175  }
  1176  
  1177  // BitOr ...
  1178  func (field Uint16) BitOr(value uint16) Uint16 {
  1179  	return Uint16{field.bitOr(value)}
  1180  }
  1181  
  1182  // BitFlip ...
  1183  func (field Uint16) BitFlip() Uint16 {
  1184  	return Uint16{field.bitFlip()}
  1185  }
  1186  
  1187  // Value set value
  1188  func (field Uint16) Value(value uint16) AssignExpr {
  1189  	return field.value(value)
  1190  }
  1191  
  1192  // Zero set zero value
  1193  func (field Uint16) Zero() AssignExpr {
  1194  	return field.value(0)
  1195  }
  1196  
  1197  // Sum ...
  1198  func (field Uint16) Sum() Uint16 {
  1199  	return Uint16{field.sum()}
  1200  }
  1201  
  1202  // IfNull ...
  1203  func (field Uint16) IfNull(value uint16) Expr {
  1204  	return field.ifNull(value)
  1205  }
  1206  
  1207  func (field Uint16) toSlice(values ...uint16) []interface{} {
  1208  	slice := make([]interface{}, len(values))
  1209  	for i, v := range values {
  1210  		slice[i] = v
  1211  	}
  1212  	return slice
  1213  }
  1214  
  1215  // Uint32 uint32 type field
  1216  type Uint32 Int
  1217  
  1218  // Eq equal to
  1219  func (field Uint32) Eq(value uint32) Expr {
  1220  	return expr{e: clause.Eq{Column: field.RawExpr(), Value: value}}
  1221  }
  1222  
  1223  // Neq not equal to
  1224  func (field Uint32) Neq(value uint32) Expr {
  1225  	return expr{e: clause.Neq{Column: field.RawExpr(), Value: value}}
  1226  }
  1227  
  1228  // Gt greater than
  1229  func (field Uint32) Gt(value uint32) Expr {
  1230  	return expr{e: clause.Gt{Column: field.RawExpr(), Value: value}}
  1231  }
  1232  
  1233  // Gte greater or equal to
  1234  func (field Uint32) Gte(value uint32) Expr {
  1235  	return expr{e: clause.Gte{Column: field.RawExpr(), Value: value}}
  1236  }
  1237  
  1238  // Lt less than
  1239  func (field Uint32) Lt(value uint32) Expr {
  1240  	return expr{e: clause.Lt{Column: field.RawExpr(), Value: value}}
  1241  }
  1242  
  1243  // Lte less or equal to
  1244  func (field Uint32) Lte(value uint32) Expr {
  1245  	return expr{e: clause.Lte{Column: field.RawExpr(), Value: value}}
  1246  }
  1247  
  1248  // In ...
  1249  func (field Uint32) In(values ...uint32) Expr {
  1250  	return expr{e: clause.IN{Column: field.RawExpr(), Values: field.toSlice(values...)}}
  1251  }
  1252  
  1253  // NotIn ...
  1254  func (field Uint32) NotIn(values ...uint32) Expr {
  1255  	return expr{e: clause.Not(field.In(values...).expression())}
  1256  }
  1257  
  1258  // Between ...
  1259  func (field Uint32) Between(left uint32, right uint32) Expr {
  1260  	return field.between([]interface{}{left, right})
  1261  }
  1262  
  1263  // NotBetween ...
  1264  func (field Uint32) NotBetween(left uint32, right uint32) Expr {
  1265  	return Not(field.Between(left, right))
  1266  }
  1267  
  1268  // Like ...
  1269  func (field Uint32) Like(value uint32) Expr {
  1270  	return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
  1271  }
  1272  
  1273  // NotLike ...
  1274  func (field Uint32) NotLike(value uint32) Expr {
  1275  	return expr{e: clause.Not(field.Like(value).expression())}
  1276  }
  1277  
  1278  // Add ...
  1279  func (field Uint32) Add(value uint32) Uint32 {
  1280  	return Uint32{field.add(value)}
  1281  }
  1282  
  1283  // Sub ...
  1284  func (field Uint32) Sub(value uint32) Uint32 {
  1285  	return Uint32{field.sub(value)}
  1286  }
  1287  
  1288  // Mul ...
  1289  func (field Uint32) Mul(value uint32) Uint32 {
  1290  	return Uint32{field.mul(value)}
  1291  }
  1292  
  1293  // Div ...
  1294  func (field Uint32) Div(value uint32) Uint32 {
  1295  	return Uint32{field.mul(value)}
  1296  }
  1297  
  1298  // Mod ...
  1299  func (field Uint32) Mod(value uint32) Uint32 {
  1300  	return Uint32{field.mod(value)}
  1301  }
  1302  
  1303  // FloorDiv ...
  1304  func (field Uint32) FloorDiv(value uint32) Uint32 {
  1305  	return Uint32{field.floorDiv(value)}
  1306  }
  1307  
  1308  // RightShift ...
  1309  func (field Uint32) RightShift(value uint32) Uint32 {
  1310  	return Uint32{field.rightShift(value)}
  1311  }
  1312  
  1313  // LeftShift ...
  1314  func (field Uint32) LeftShift(value uint32) Uint32 {
  1315  	return Uint32{field.leftShift(value)}
  1316  }
  1317  
  1318  // BitXor ...
  1319  func (field Uint32) BitXor(value uint32) Uint32 {
  1320  	return Uint32{field.bitXor(value)}
  1321  }
  1322  
  1323  // BitAnd ...
  1324  func (field Uint32) BitAnd(value uint32) Uint32 {
  1325  	return Uint32{field.bitAnd(value)}
  1326  }
  1327  
  1328  // BitOr ...
  1329  func (field Uint32) BitOr(value uint32) Uint32 {
  1330  	return Uint32{field.bitOr(value)}
  1331  }
  1332  
  1333  // BitFlip ...
  1334  func (field Uint32) BitFlip() Uint32 {
  1335  	return Uint32{field.bitFlip()}
  1336  }
  1337  
  1338  // Value set value
  1339  func (field Uint32) Value(value uint32) AssignExpr {
  1340  	return field.value(value)
  1341  }
  1342  
  1343  // Zero set zero value
  1344  func (field Uint32) Zero() AssignExpr {
  1345  	return field.value(0)
  1346  }
  1347  
  1348  // Sum ...
  1349  func (field Uint32) Sum() Uint32 {
  1350  	return Uint32{field.sum()}
  1351  }
  1352  
  1353  // IfNull ...
  1354  func (field Uint32) IfNull(value uint32) Expr {
  1355  	return field.ifNull(value)
  1356  }
  1357  
  1358  func (field Uint32) toSlice(values ...uint32) []interface{} {
  1359  	slice := make([]interface{}, len(values))
  1360  	for i, v := range values {
  1361  		slice[i] = v
  1362  	}
  1363  	return slice
  1364  }
  1365  
  1366  // Uint64 uint64 type field
  1367  type Uint64 Int
  1368  
  1369  // Eq equal to
  1370  func (field Uint64) Eq(value uint64) Expr {
  1371  	return expr{e: clause.Eq{Column: field.RawExpr(), Value: value}}
  1372  }
  1373  
  1374  // Neq not equal to
  1375  func (field Uint64) Neq(value uint64) Expr {
  1376  	return expr{e: clause.Neq{Column: field.RawExpr(), Value: value}}
  1377  }
  1378  
  1379  // Gt greater than
  1380  func (field Uint64) Gt(value uint64) Expr {
  1381  	return expr{e: clause.Gt{Column: field.RawExpr(), Value: value}}
  1382  }
  1383  
  1384  // Gte greater or equal to
  1385  func (field Uint64) Gte(value uint64) Expr {
  1386  	return expr{e: clause.Gte{Column: field.RawExpr(), Value: value}}
  1387  }
  1388  
  1389  // Lt less than
  1390  func (field Uint64) Lt(value uint64) Expr {
  1391  	return expr{e: clause.Lt{Column: field.RawExpr(), Value: value}}
  1392  }
  1393  
  1394  // Lte less or equal to
  1395  func (field Uint64) Lte(value uint64) Expr {
  1396  	return expr{e: clause.Lte{Column: field.RawExpr(), Value: value}}
  1397  }
  1398  
  1399  // In ...
  1400  func (field Uint64) In(values ...uint64) Expr {
  1401  	return expr{e: clause.IN{Column: field.RawExpr(), Values: field.toSlice(values...)}}
  1402  }
  1403  
  1404  // NotIn ...
  1405  func (field Uint64) NotIn(values ...uint64) Expr {
  1406  	return expr{e: clause.Not(field.In(values...).expression())}
  1407  }
  1408  
  1409  // Between ...
  1410  func (field Uint64) Between(left uint64, right uint64) Expr {
  1411  	return field.between([]interface{}{left, right})
  1412  }
  1413  
  1414  // NotBetween ...
  1415  func (field Uint64) NotBetween(left uint64, right uint64) Expr {
  1416  	return Not(field.Between(left, right))
  1417  }
  1418  
  1419  // Like ...
  1420  func (field Uint64) Like(value uint64) Expr {
  1421  	return expr{e: clause.Like{Column: field.RawExpr(), Value: value}}
  1422  }
  1423  
  1424  // NotLike ...
  1425  func (field Uint64) NotLike(value uint64) Expr {
  1426  	return expr{e: clause.Not(field.Like(value).expression())}
  1427  }
  1428  
  1429  // Add ...
  1430  func (field Uint64) Add(value uint64) Uint64 {
  1431  	return Uint64{field.add(value)}
  1432  }
  1433  
  1434  // Sub ...
  1435  func (field Uint64) Sub(value uint64) Uint64 {
  1436  	return Uint64{field.sub(value)}
  1437  }
  1438  
  1439  // Mul ...
  1440  func (field Uint64) Mul(value uint64) Uint64 {
  1441  	return Uint64{field.mul(value)}
  1442  }
  1443  
  1444  // Div ...
  1445  func (field Uint64) Div(value uint64) Uint64 {
  1446  	return Uint64{field.mul(value)}
  1447  }
  1448  
  1449  // Mod ...
  1450  func (field Uint64) Mod(value uint64) Uint64 {
  1451  	return Uint64{field.mod(value)}
  1452  }
  1453  
  1454  // FloorDiv ...
  1455  func (field Uint64) FloorDiv(value uint64) Uint64 {
  1456  	return Uint64{field.floorDiv(value)}
  1457  }
  1458  
  1459  // RightShift ...
  1460  func (field Uint64) RightShift(value uint64) Uint64 {
  1461  	return Uint64{field.rightShift(value)}
  1462  }
  1463  
  1464  // LeftShift ...
  1465  func (field Uint64) LeftShift(value uint64) Uint64 {
  1466  	return Uint64{field.leftShift(value)}
  1467  }
  1468  
  1469  // BitXor ...
  1470  func (field Uint64) BitXor(value uint64) Uint64 {
  1471  	return Uint64{field.bitXor(value)}
  1472  }
  1473  
  1474  // BitAnd ...
  1475  func (field Uint64) BitAnd(value uint64) Uint64 {
  1476  	return Uint64{field.bitAnd(value)}
  1477  }
  1478  
  1479  // BitOr ...
  1480  func (field Uint64) BitOr(value uint64) Uint64 {
  1481  	return Uint64{field.bitOr(value)}
  1482  }
  1483  
  1484  // BitFlip ...
  1485  func (field Uint64) BitFlip() Uint64 {
  1486  	return Uint64{field.bitFlip()}
  1487  }
  1488  
  1489  // Value set value
  1490  func (field Uint64) Value(value uint64) AssignExpr {
  1491  	return field.value(value)
  1492  }
  1493  
  1494  // Zero set zero value
  1495  func (field Uint64) Zero() AssignExpr {
  1496  	return field.value(0)
  1497  }
  1498  
  1499  // Sum ...
  1500  func (field Uint64) Sum() Uint64 {
  1501  	return Uint64{field.sum()}
  1502  }
  1503  
  1504  // IfNull ...
  1505  func (field Uint64) IfNull(value uint64) Expr {
  1506  	return field.ifNull(value)
  1507  }
  1508  
  1509  func (field Uint64) toSlice(values ...uint64) []interface{} {
  1510  	slice := make([]interface{}, len(values))
  1511  	for i, v := range values {
  1512  		slice[i] = v
  1513  	}
  1514  	return slice
  1515  }