Commit e0874af
authored
Add doc strings to public API + add attempt errors + reorganize some files (#27)
Go through and add docstrings to almost the entirety of the public API,
including examples and other niceties. This should be quite helpful to
many people because VSCode renders Python docstrings when hovering over
symbols. It could also be presumably used for producing Python docs, but
I'm not going to bother with that.
Add an `AttemptError` data class that unmarshals itself from `errors` on
an insertion, although this will likely be only nominally useful since
newly inserted rows never have any errors yet.
Also, shift around some types around so they're in files named
appropriately for what they are (e.g. `insert_opts.py`) rather than
generic names (e.g. `model.py`). This also helps match the structure of
the Ruby project so that it's easier to find things.1 parent 165af01 commit e0874af
File tree
10 files changed
+905
-102
lines changed- src/riverqueue
- driver
- riversqlalchemy
- tests/driver/riversqlalchemy
10 files changed
+905
-102
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | | - | |
12 | | - | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | 21 | | |
15 | 22 | | |
0 commit comments