-
Notifications
You must be signed in to change notification settings - Fork 39
src/query.dart exported #5
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
Conversation
I think a better way to do it would be to expose the |
With this property I know the real type of the column. With this, I use a generator of typed and static classes to map each column of the table. Without access to typeId, the most I can do is a column with values of type "dynamic". In addition to the typeID, I also use other FieldDescription properties, such as: maxLen, defaultValue and etc. See example of generated class in: static_postgres In order not to have to stop my project, I had to attach a copy of the postgres package to this. If there is another way (like an extension) to not have to expose this class in your package, I will do it. |
I'm not sure I follow: how do you know these properties from these? https://github.com/isoos/postgresql-dart/blob/master/lib/src/query.dart#L235-L248
I think it is reasonable to expose some of the properties from FieldDescription, however:
|
Forgiveness. There was a mistake on my part. I just need the typeID.
If ColumnDescription exposes typeID, even if with another name, it is satisfactory for me.So the package would not need to export query.dart |
@andriwsluna Maybe you know this better: is |
I think I can answer this: it looks like |
Yes. |
typeOid seems more correct, but typeId is more understandable to people in general. In this case, I would choose typeOid. |
I've published |
Thanks |
I need to access the class ColumnDescription as FieldDescription to grant access to typeID property of this class.
The class FieldDescription is writed in file "query.dart" thats not exported.
With this information, i can automate proccess im my project.