mapper icon indicating copy to clipboard operation
mapper copied to clipboard

Not support field type datetime

Open measproem opened this issue 2 years ago • 5 comments

Any space field contain type datetime will problem

measproem avatar May 09 '23 10:05 measproem

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

nekufa avatar Oct 10 '24 06:10 nekufa

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..)

measproem avatar Oct 16 '24 14:10 measproem

@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

nekufa avatar Oct 17 '24 13:10 nekufa

@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.

rybakit avatar Oct 17 '24 15:10 rybakit

@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

measproem avatar Oct 19 '24 19:10 measproem