Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAllowing `integer` to map to i64 for sqlite #1116
Comments
killercup
added
the
sqlite
label
Aug 18, 2017
This comment has been minimized.
|
This has been raised before, and we decided to keep things as they are for reasons I laid out in #852 (comment). If you need i64 keys, you can use |
sgrif
closed this
Aug 19, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Boscop commentedAug 17, 2017
•
edited
When I use
id integer not null primary key autoincrementin sqlite, I have to usei32in Rust but I want to havei64because I have a lot of records, but when I writeid bigint not null primary key autoincrementI get:This is a syntactic limitation of sqlite but sqlite stores all integers as arbitrary precision anyway, so it would be possible for diesel to also allow mapping integer to
i64.It would be very useful!
Also, it doesn't let me use
u64forsize_bytes unsigned bigint not null, only i64...