Skip to content

Commit 8076d8c

Browse files
committed
Update docs for new flat_transaction function
1 parent d2f66ce commit 8076d8c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,29 @@ when using SQLite
5555

5656
### Functions
5757

58-
[`calc_batch_size`](https://github.com/enpaul/peewee-plus/blob/1.0.0/peewee_plus.py#L68) -
58+
[`calc_batch_size`](https://github.com/enpaul/peewee-plus/blob/1.0.0/peewee_plus.py#L71) -
5959
Helper function for determining how to batch a create/update query with SQLite
6060

61+
[`flat_transaction`](https://github.com/enpaul/peewee-plus/blob/devel/peewee_plus.py#L137)
62+
\- Decorator function for wrapping callables in a database transaction without creating
63+
nested transactions
64+
6165
### Classes
6266

63-
[`PathField`](https://github.com/enpaul/peewee-plus/blob/1.0.0/peewee_plus.py#134) - A
67+
[`PathField`](https://github.com/enpaul/peewee-plus/blob/1.0.0/peewee_plus.py#179) - A
6468
Peewee database field for storing
6569
[Pathlib](https://docs.python.org/3/library/pathlib.html) objects, optionally relative to
6670
a runtime value.
6771

68-
[`PrecisionFloatField`](https://github.com/enpaul/peewee-plus/blob/1.0.0/peewee_plus.py#L192)
72+
[`PrecisionFloatField`](https://github.com/enpaul/peewee-plus/blob/1.0.0/peewee_plus.py#L237)
6973
\- A Peewee database field for storing floats while specifying the
7074
[MySQL precision parameters](https://dev.mysql.com/doc/refman/8.0/en/floating-point-types.html)
7175
`M` and `D`
7276

73-
[`JSONField`](https://github.com/enpaul/peewee-plus/blob/1.0.0/peewee_plus.py#L222) - A
77+
[`JSONField`](https://github.com/enpaul/peewee-plus/blob/1.0.0/peewee_plus.py#L267) - A
7478
Peewee database field for storing arbitrary JSON-serializable data
7579

76-
[`EnumField`](https://github.com/enpaul/peewee-plus/blob/1.0.0/peewee_plus.py#L277) - A
80+
[`EnumField`](https://github.com/enpaul/peewee-plus/blob/1.0.0/peewee_plus.py#L322) - A
7781
Peewee database field for storing Enums by name
7882

7983
## For Developers

0 commit comments

Comments
 (0)