Commit fc30ca2
committed
feat: implement static checks for Ids in get*, remove operations
Added static_assert in get, get_pointer, get_optional and remove
to produce a clear compile-time error when non-bindable types (e.g. where())
are passed as Ids, instead of a runtime crash.
Changes are applied in dev/storage.h; include/sqlite_orm/sqlite_orm.h
is the regenerated amalgamation.1 parent 237b8e0 commit fc30ca2
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| 395 | + | |
395 | 396 | | |
396 | 397 | | |
397 | 398 | | |
| |||
535 | 536 | | |
536 | 537 | | |
537 | 538 | | |
| 539 | + | |
538 | 540 | | |
539 | 541 | | |
540 | 542 | | |
| |||
554 | 556 | | |
555 | 557 | | |
556 | 558 | | |
| 559 | + | |
557 | 560 | | |
558 | 561 | | |
559 | 562 | | |
| |||
592 | 595 | | |
593 | 596 | | |
594 | 597 | | |
| 598 | + | |
595 | 599 | | |
596 | 600 | | |
597 | 601 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25388 | 25388 | | |
25389 | 25389 | | |
25390 | 25390 | | |
| 25391 | + | |
25391 | 25392 | | |
25392 | 25393 | | |
25393 | 25394 | | |
| |||
25531 | 25532 | | |
25532 | 25533 | | |
25533 | 25534 | | |
| 25535 | + | |
25534 | 25536 | | |
25535 | 25537 | | |
25536 | 25538 | | |
| |||
25550 | 25552 | | |
25551 | 25553 | | |
25552 | 25554 | | |
| 25555 | + | |
25553 | 25556 | | |
25554 | 25557 | | |
25555 | 25558 | | |
| |||
25588 | 25591 | | |
25589 | 25592 | | |
25590 | 25593 | | |
| 25594 | + | |
25591 | 25595 | | |
25592 | 25596 | | |
25593 | 25597 | | |
| |||
0 commit comments