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

added unsigned int support #462

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

baseballlover723
Copy link

@baseballlover723 baseballlover723 commented Sep 3, 2024

What does this PR do?

Allows you to define models with unsigned integer fields presuming that the underlying adapter supports it. This also adds Array(8) because it looked like it was missing previously.

Any background context you want to provide?

I added support for these datatypes for sqlite in this pr: crystal-lang/crystal-sqlite3#98. There may be changes made in crystal-db to add support more generally which might be relevant. Locally I'm using UInt16 and Int16, and it seems to be working for my application using my forked versions with sqlite.

Release notes

Model

Adds potential support for Unsigned Integers (8, 16, 32, 64) and also Array(Int8)

Adapter

Adds potential support for Unsigned Integers (8, 16, 32, 64) and also Array(Int8)

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

Successfully merging this pull request may close these issues.

None yet

1 participant