This repository was archived by the owner on Aug 19, 2025. It is now read-only.
Commit 77270d8
authored
Allow string indexing into Record (#501)
* Allow string indexing into Record
The Record interface inherits from Sequence which only supports integer indexing. The Postgres backend supports string indexing into Records (https://github.com/encode/databases/blob/master/databases/backends/postgres.py#L135). This PR updates the interface to reflect that.
At least on the Postgres backend __getitem__ deserializes some data types, so it's not equivalent to the _mapping method.1 parent 6a52a4a commit 77270d8
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
0 commit comments