feat(orm): add ormfield.Codec (#10601)

* feat(orm): add ormvalue.Codec

* WIP

* WIP

* working tests

* update dep

* support more types, add docs

* comments

* address review comments

* updates

* add comment
This commit is contained in:
Aaron Craelius
2021-11-24 13:10:26 -05:00
committed by GitHub
parent 60483cd2bf
commit 6662f2ff30
25 changed files with 5599 additions and 10 deletions
+1
View File
@@ -1,4 +1,5 @@
version: v1
name: buf.build/cosmos/cosmos-sdk
breaking:
use:
- FILE
+3 -2
View File
@@ -43,8 +43,9 @@ message PrimaryKeyDescriptor {
// string fields support sorted iteration.
// - bytes are encoded as raw bytes in terminal segments and length-prefixed
// with a single byte in non-terminal segments. Because of this byte arrays
// longer than 255 bytes cannot be used in keys and bytes fields should not
// be assumed to be lexically sorted.
// longer than 255 bytes are unsupported and bytes fields should not
// be assumed to be lexically sorted. If you have a byte array longer than
// 255 bytes that you'd like to index, you should consider hashing it first.
// - int32, sint32, int64, sint64 are encoding as fixed width bytes with
// an encoding that enables sorted iteration.
// - google.protobuf.Timestamp and google.protobuf.Duration are encoded