database
database copied to clipboard
Feat: throw custom exception when index key is too large
This PR exposes the index key limit of each database adapter and throws a Size exception when necessary.
Testing Unit test has been added to catch this exception
Related PRs: https://github.com/appwrite/appwrite/issues/2596
Blocked: Not sure what to do on this one - InnoDB happily accepts an index of length 3073 when the limit is supposed to be 3072.
We'll either need to estimate this limit or figure out exactly how it works. I don't think we want to convert strings to bytestreams just for this.