github.com/goravel/framework@v1.13.9/database/gorm/conditions.go (about)

     1  package gorm
     2  
     3  import (
     4  	ormcontract "github.com/goravel/framework/contracts/database/orm"
     5  )
     6  
     7  type Conditions struct {
     8  	distinct      []any
     9  	group         string
    10  	having        *Having
    11  	join          []Join
    12  	limit         *int
    13  	lockForUpdate bool
    14  	model         any
    15  	offset        *int
    16  	omit          []string
    17  	order         []any
    18  	scopes        []func(ormcontract.Query) ormcontract.Query
    19  	selectColumns *Select
    20  	sharedLock    bool
    21  	table         *Table
    22  	where         []Where
    23  	with          []With
    24  	withoutEvents bool
    25  	withTrashed   bool
    26  }
    27  
    28  type Having struct {
    29  	query any
    30  	args  []any
    31  }
    32  
    33  type Join struct {
    34  	query string
    35  	args  []any
    36  }
    37  
    38  type Select struct {
    39  	query any
    40  	args  []any
    41  }
    42  
    43  type Table struct {
    44  	name string
    45  	args []any
    46  }
    47  
    48  type Where struct {
    49  	query any
    50  	args  []any
    51  	or    bool
    52  }
    53  
    54  type With struct {
    55  	query string
    56  	args  []any
    57  }