Skip to content
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

Type alias issue in Diesel 2.0 #45

Open
developerworks opened this issue Oct 23, 2022 · 0 comments
Open

Type alias issue in Diesel 2.0 #45

developerworks opened this issue Oct 23, 2022 · 0 comments

Comments

@developerworks
Copy link

Run the command to generate schema.rs

diesel print-schema --database-url=mysql://root:root@localhost/test > src/schema.rs

In the generated src/schema.rs file, type alias Bigint used as BigInt in diesel::sql_types::*, then
in the .proto file message filed is not recognized like this:

/* TODO: unknown type Bigint */ id = 1;

Output of diesel_ext --proto > myproto.proto

diesel_ext --proto > myproto.proto
Bigint is not recognized. Please feel free to expand the HashMap. This could provide good hints: https://kotiri.com/2018/01/31/postgresql-diesel-rust-types.html
...
...
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant