(table *Table)
| 135 | } |
| 136 | |
| 137 | func NewTableContext(table *Table) (*TableContext, error) { |
| 138 | whereCtx, err := NewWhereCtx(table.GetWhere(), table) |
| 139 | if err != nil { |
| 140 | err = errors.Wrapf(err, "parsing where %v %v where %v", table.TableSchema, table.TableName, table.GetWhere()) |
| 141 | return nil, err |
| 142 | } |
| 143 | return &TableContext{ |
| 144 | Table: table, |
| 145 | WhereCtx: whereCtx, |
| 146 | DefChangedSent: false, |
| 147 | FKChildren: map[SchemaTable]struct{}{}, |
| 148 | }, nil |
| 149 | } |
| 150 | |
| 151 | func (t *TableContext) WhereTrue(row []interface{}) (bool, error) { |
| 152 | var m = make(map[string]interface{}) |
no test coverage detected