Documentation ¶
Index ¶
- func DecodeCursorParameters(cursor *Cursor, s string) error
- type Cursor
- func (cursor *Cursor) Clone() *Cursor
- func (cursor *Cursor) EncodeParameters() (string, error)
- func (cursor *Cursor) OrderByExpression() (string, error)
- func (cursor *Cursor) Push(p *CursorParameter)
- func (cursor *Cursor) SetValue(obj interface{})
- func (cursor *Cursor) Unshift(p *CursorParameter)
- func (cursor *Cursor) WhereExpression() (string, map[string]interface{}, error)
- type CursorParameter
- type Order
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCursorParameters ¶
DecodeCursorParameters into Cursor.
Types ¶
type Cursor ¶
type Cursor struct {
// contains filtered or unexported fields
}
func (*Cursor) EncodeParameters ¶
EncodeParameters is encode cursor parameters value to string format.
func (*Cursor) OrderByExpression ¶
OrderByExpression returns part of order by expression likes "A ASC, B DESC".
func (*Cursor) Push ¶
func (cursor *Cursor) Push(p *CursorParameter)
func (*Cursor) Unshift ¶
func (cursor *Cursor) Unshift(p *CursorParameter)
type CursorParameter ¶
type CursorParameter struct { Name string Order Order ToValue func(obj interface{}) interface{} Value interface{} }
CursorParameter is single column info for spanner cursor.
Click to show internal directories.
Click to hide internal directories.