-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restructure edgedb-protocol #38
Comments
The crash is when a last brace `}` doesn't fit screen width. This only happened on the stream of objects printed so was not triggered the tests before. This commit refactors tests to trigger that crash and fixes the bug. Fixes #125, supersedes geldata/gel-rust#38
The crash is when a last brace `}` doesn't fit screen width. This only happened on the stream of objects printed so was not triggered the tests before. This commit refactors tests to trigger that crash and fixes the bug. Fixes #125, supersedes geldata/gel-rust#38
I'm fine with all names except "model". I suggest "datatypes" or "data_types" or even "dt". Is the module going to be used frequently, btw? |
IMO,
Why |
Originally I though, yes. But reconsidering it, I'm not so certain. The most popular types map to standard rust types, especially since points in time (edgedb's
That's what it's called at the moment. I also prefer names like
I'll update this pull request to call it |
Yes, we use the "decode", and "encode" terminology in other bindings and a piece of code that combines both is called a "codec". |
Sounds good. I don't think we need to re-export
This is a good question. Does it contain all the implementations of the Queryable for all the types? So it would likely contain submodules?
I've thought a bit about latter. I.e. making
It's not that |
Someone recently introduced me to Google's FlatBuffer. Unless the |
The title might be misleading, but it's about restructuring Rust crate not the protocol itself. For now we don't plan any changes on serialization of things. |
I would also like to shorten crate names, typing edgedb_protocol seems unnecessarily verbose |
I'd expose 4 public modules from edgedb-protocol:
model
- Types an application will need in its modelBigInt
,Decimal
Duration
,LocalDatetime
,LocalDate
,LocalTime
uuid::Uuid
Datetime
vsSystemTime
and jsondynamic
/value
-Value
,NamedTuple
and related types which are needed to represent unknown edgedb data at runtimeserialization
- traits for serialization, de-serialization (currentlyQueryable
) and related typesmessages
- probably should split this one into a separate crate (or rather move the rest to a separate crate likeedgedb-data
)The text was updated successfully, but these errors were encountered: