| 205 | } |
| 206 | |
| 207 | type Loader interface { |
| 208 | // Loads the entire Record using the value of the PRIMARY_KEY(s) |
| 209 | // This will only fetch columns that are mapped on the bound Record. But you can think of it |
| 210 | // as doing something like this: |
| 211 | // |
| 212 | // SELECT * FROM bound_table WHERE id=? LIMIT 1 |
| 213 | // |
| 214 | // And then mapping the result to the currently bound Record. |
| 215 | Load() error |
| 216 | // Load by a WHERE-like clause. See Squirrel's Where(pred, args) |
| 217 | LoadWhere(interface{}, ...interface{}) error |
| 218 | } |
| 219 | |
| 220 | type Saver interface { |
| 221 | // Insert inserts the bound Record into the bound table. |
no outgoing calls
no test coverage detected