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

SQL types to D types documentation #136

Closed
Marenz opened this issue Oct 6, 2017 · 1 comment
Closed

SQL types to D types documentation #136

Marenz opened this issue Oct 6, 2017 · 1 comment
Labels
Milestone

Comments

@Marenz
Copy link

Marenz commented Oct 6, 2017

Whenever I write an SQL query, I kind of have to guess what types my variables storing the result should have (or what I'll use as the .get argument.

Looking through the code, I extracted this mapping info:

TINYINT -> (u)byte
SMALLINT -> (u)short
MEDIUMINT -> (u)int
INT -> (u)int
BIGINT -> (u)long
FLOAT -> float
DOUBLE -> double
TIMESTAMP -> DateTime
TIME -> TimeOfDay
YEAR -> ushort
DATE -> Date
DATETIME -> DateTime
VARCHAR, ENUM, SET, VARSTRING, STRING, DECIMAL, NUMERIC -> string
BIT -> bool
TINYBLOB, MEDIUMBLOB, BLOB, LONGBLOB -> string / ubyte[] (?)

But I don't know a good place to put it. The readme? Somewhere in the docs?

@Abscissa
Copy link

Abscissa commented Oct 6, 2017 via email

@Abscissa Abscissa added the docs label Dec 8, 2017
@Abscissa Abscissa added this to the v1.2.0 milestone Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants