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 Endpoint issues #736

Closed
megastef opened this issue May 4, 2014 · 3 comments
Closed

_sql Endpoint issues #736

megastef opened this issue May 4, 2014 · 3 comments
Assignees
Labels
enhancement Enhancement that doesn't fit into a more specific feature label. Try avoid using this

Comments

@megastef
Copy link

megastef commented May 4, 2014

  1. For ORM implementation "insert into" should return generated key
  2. Option to give types back. Example: a sql console can not format date, because it is not aware about timestamp columns - same functions is required for a JDBC driver (resultset meta data)
@mfussenegger
Copy link
Member

  1. So far we don't provide an option for auto generated keys. That's why there is no option to return them with insert into. If we do add that functionality it will probably in the form of the RETURNING clause. (And yes I am aware that internally we do have a unique key that is generated, but currently that key isn't really exposed to the outside)
    For ORMs our suggestion for the time being is to generate the keys on the client side.

Yep we should have types in the response pretty soon as that's one area we're currently working on.

@mfussenegger
Copy link
Member

Hi Stefan,

with the 0.38 testing release it is now possible to include the types in the response
see

Column Types

You can download the tarball from: https://cdn.crate.io/downloads/releases/crate-0.38.0.tar.gz

@megastef
Copy link
Author

Thx. Adapted node-crate and conZole - now the date is displayed:
bildschirmfoto 2014-05-20 um 01 11 57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement that doesn't fit into a more specific feature label. Try avoid using this
Projects
None yet
Development

No branches or pull requests

3 participants