encode / databases

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.
Rickert Mulder Rickert Mulder committed on Aug 3, 2022, 12:11 PM
Showing 1 changed files +3 additions -0 deletions
Browse files at this commit โ†’