| 285 | } |
| 286 | |
| 287 | Schema *Schema_New |
| 288 | ( |
| 289 | SchemaType type, |
| 290 | int id, |
| 291 | const char *name |
| 292 | ) { |
| 293 | ASSERT(name != NULL); |
| 294 | |
| 295 | Schema *s = rm_calloc(1, sizeof(Schema)); |
| 296 | |
| 297 | s->id = id; |
| 298 | s->type = type; |
| 299 | s->name = rm_strdup(name); |
| 300 | s->constraints = array_new(Constraint, 0); |
| 301 | |
| 302 | return s; |
| 303 | } |
| 304 | |
| 305 | int Schema_ID |
| 306 | ( |
no test coverage detected