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

Not support field type datetime #32

Open
measproem opened this issue May 9, 2023 · 5 comments
Open

Not support field type datetime #32

measproem opened this issue May 9, 2023 · 5 comments

Comments

@measproem
Copy link

Any space field contain type datetime will problem

@nekufa
Copy link
Member

nekufa commented Oct 10, 2024

hi @measproem, is this actual issue?
can you provide an example of tarantool schema?
never heard about datetime type in tarantool

@nekufa nekufa closed this as completed Oct 10, 2024
@measproem
Copy link
Author

hi @measproem, is this actual issue? can you provide an example of tarantool schema? never heard about datetime type in tarantool

It is commonly issue for Tarantool client require implement MessagePack extension the data type of space column (UUID, DateTime, Decimal..)

@nekufa
Copy link
Member

nekufa commented Oct 17, 2024

@measproem yep, looks like uuid, decimal and emails type are already implemented.
https://github.com/tarantool-php/client/tree/master/examples/user_defined_type

i can't find an example of datetime type usage in tarantool, only lua module for datetime management

@rybakit
Copy link
Member

rybakit commented Oct 17, 2024

@nekufa Here are all the extensions currently supported by the client. I recall starting work on adding datetime support but didn’t finish, as the Tarantool specification was still in development and subject to change at the time (I might still have some of that work). That said, implementing this and other missing types should be relatively straightforward. If anyone wants to give it a try, this example of MessagePack's timestamp extension might serve as a good reference. There's also a datetime extension example, though it's mostly for demo purposes and doesn’t align with the Tarantool specification. Finally, here's an article on writing your own extension, which could also be useful.

@nekufa nekufa reopened this Oct 17, 2024
@measproem
Copy link
Author

@measproem yep, looks like uuid, decimal and emails type are already implemented. https://github.com/tarantool-php/client/tree/master/examples/user_defined_type

i can't find an example of datetime type usage in tarantool, only lua module for datetime management

I forked other repo and solved but with Rust and TypeScript just personal

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

No branches or pull requests

3 participants