Versions in this module Expand all Collapse all v0 v0.1.3 Dec 12, 2022 v0.1.2 Dec 10, 2022 Changes in this version type State + func NewState(sType *Type, args []driver.NamedValue) *State v0.1.1 Dec 8, 2022 v0.1.0 Dec 8, 2022 Changes in this version + const KindCreateTable + const KindDropTable + const KindUndefined + const ParameterKindColumn + const ParameterKindField + const ParameterKindLiteral + const ParameterKindPlaceholder + const ParameterKindValue + const StrategyPartiql + func Convert(attributeType string) reflect.Type + func Encode(value interface{}) (types.AttributeValue, error) + func Register(name string, newFunc NewFunc) + type Column struct + Fields []int + Func Function + Name string + Pos int + Type reflect.Type + func (c *Column) Link(field *Field) + type Execution struct + Create *table.Create + Drop *table.Drop + HasTable bool + Kind Kind + Limit *int + Parti *PartiQL + SQL string + Table string + Type *Type + func NewCreateTable(table string, stmt *table.Create, desc *types.TableDescription) (*Execution, error) + func NewDelete(table string, stmt *del.Statement, desc *types.TableDescription) (*Execution, error) + func NewDropTable(table string, stmt *table.Drop, desc *types.TableDescription) (*Execution, error) + func NewInsert(table string, stmt *insert.Statement, desc *types.TableDescription) (*Execution, error) + func NewQuery(table string, query *query.Select, desc *types.TableDescription) (*Execution, error) + func NewUpdate(table string, stmt *insert.Statement, desc *types.TableDescription) (*Execution, error) + func (e *Execution) CreateTableInput() (*dynamodb.CreateTableInput, error) + func (e *Execution) DeleteTableInput() (*dynamodb.DeleteTableInput, error) + func (e *Execution) NewState(args []driver.NamedValue) *State + func (e *Execution) ReleaseState(state *State) + type Field struct + Decoder func(dec *gojay.Decoder) (interface{}, error) + Name string + Pos int + Required bool + Type reflect.Type + func (f *Field) IsSlice() bool + type Function interface + Exec func(value interface{}, state *State) (interface{}, error) + type Kind int + type NewFunc func(call *expr.Call, rowType *Type) (Function, reflect.Type, error) + func Lookup(name string) NewFunc + type Parameter struct + Kind ParameterKind + Name string + Pos int + Type reflect.Type + Value interface{} + func NewColumn(name string, pos int) *Parameter + func NewField(name string) *Parameter + func NewLiteral(text string, kind string) *Parameter + func NewPlaceholder(name string) *Parameter + func NewValue() *Parameter + type ParameterKind string + type Parameters struct + BindingLen int + Criteria []*Parameter + List []*Parameter + func (p *Parameters) AddCriteria(param *Parameter) + func (p *Parameters) AddItem(param *Parameter) + func (p *Parameters) NumInput() int + type PartiQL struct + Query string + type State struct + Args []driver.NamedValue + Columns []driver.Value + Fields []driver.Value + Reset []driver.Value + Type *Type + func (s *State) Init() error + func (s *State) NKeys() int + func (s *State) ProjectionListParameters() ([]types.AttributeValue, error) + func (s *State) QueryParameters() ([]types.AttributeValue, error) + func (s *State) Reconcile() error + func (s *State) SetDest(dest []driver.Value) + func (s *State) UnmarshalJSONObject(dec *gojay.Decoder, k string) (err error) + func (s *State) Values(value interface{}, parameters []*Parameter) ([]interface{}, error) + type Strategy string + type Type struct + Columns []Column + Fields []Field + Keys map[string]types.KeyType + Wildcard bool + func NewType(wildcard bool) *Type + func (t *Type) Add(fName, cName, attrType string, isRequired bool) *Field + func (t *Type) AddCriteria(param *Parameter) + func (t *Type) AddItem(param *Parameter) + func (t *Type) Column(name string) *Column + func (t *Type) Field(name string) *Field + func (t *Type) Init() error