-
Notifications
You must be signed in to change notification settings - Fork 379
-
Notifications
You must be signed in to change notification settings - Fork 379
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
Tuple:frommap() or insert_map() #3282
Comments
Regarding inserts - please also consider case when primary id is autogenerated (e g via sequence), and thus not provided by inserter |
This feature is designed to build tuple or table object by map. Tuple output is default. If you wish to make a table, specify table = true option. subscriber:frommap({ddd = 1, aaa = 2, ccc = 3, bbb = 4}, {table = true}) Closes #3282
This feature is designed to build tuple or table object by map. Tuple output is default. If you wish to make a table, specify table = true option. subscriber:frommap({ddd = 1, aaa = 2, ccc = 3, bbb = 4}, {table = true}) Closes #3282
This feature is designed to build tuple or table object by map. Tuple output is default. If you wish to make a table, specify table = true option. subscriber:frommap({ddd = 1, aaa = 2, ccc = 3, bbb = 4}, {table = true}) Closes #3282
This feature is designed to build tuple or table object by map. Tuple output is default. If you wish to make a table, specify table = true option. subscriber:frommap({ddd = 1, aaa = 2, ccc = 3, bbb = 4}, {table = true}) Closes #3282
This feature is designed to build tuple or table object by map. Tuple output is default. If you wish to make a table, specify table = true option. subscriber:frommap({ddd = 1, aaa = 2, ccc = 3, bbb = 4}, {table = true}) Closes #3282
@TarantoolBot documen |
@Gerold103: Invalid request type. |
@TarantoolBot document format = {}
format[1] = {name = 'field1', type = 'unsigned'}
format[2] = {name = 'field2', type = 'unsigned'}
s = box.schema.create_space('test', {format = format})
pk = s:create_index('pk')
t = s:frommap({field1 = 100, field2 = 200})
s:insert(t) By default, it returns a tuple as cdata, but you can pass the option: |
@Gerold103: Accept. |
This feature is designed to build tuple or table object by map. Tuple output is default. If you wish to make a table, specify table = true option. subscriber:frommap({ddd = 1, aaa = 2, ccc = 3, bbb = 4}, {table = true}) Closes #3282
This feature is designed to build tuple or table object by map. Tuple output is default. If you wish to make a table, specify table = true option. subscriber:frommap({ddd = 1, aaa = 2, ccc = 3, bbb = 4}, {table = true}) Closes #3282
This feature is designed to build tuple or table object by map. Tuple output is default. If you wish to make a table, specify table = true option. subscriber:frommap({ddd = 1, aaa = 2, ccc = 3, bbb = 4}, {table = true}) Closes #3282
Please consider adding built-in tuple:frommap() functionality.
That would be useful for transparent managing formatted spaces via REST API
Possible examples (originally proposed by @Igorjan94):
The text was updated successfully, but these errors were encountered: