basis-company / tarantool-admin

MIT License
110 stars 28 forks source link

Support UUID column data view #58

Closed chelsEg closed 3 years ago

chelsEg commented 3 years ago

Hello.

I have error by view space data.

Error

I think it's because in my space exist uuid column.

Spaces without uuid column viewed good!

nekufa commented 3 years ago

Hello! Right now, I don't have an instance running a database with uuid keys. Please, share snapshot with this data type and i will check how it can be fixed.

chelsEg commented 3 years ago

Create space test_space:

$mapper->getSchema()->createSpace('test_space', [
    'is_sync'       => true,
    'if_not_exists' => true,
    'engine'        => 'memtx',
    'properties'    => [
        'id'          => 'unsigned',
        'uuid_column' => 'uuid',
    ],
])->addIndex([
    'fields'        => 'id',
    'if_not_exists' => true,
    'sequence'      => true,
]);

Save data into test_space:

use Symfony\Component\Uid\Uuid;

$mapper->getSchema()->getSpace('test_space')->insert([
    null,
    new Uuid('735797ec-4947-4f8d-a238-20341f67ce22')
]);
nekufa commented 3 years ago

crud for uuid implemented in v. 0.6.0

you can view, update and create tuples with uuid field types