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

Allow custom fields in space format #41

Merged
merged 1 commit into from
Dec 23, 2020
Merged

Conversation

rosik
Copy link
Contributor

@rosik rosik commented Dec 22, 2020

Tarantool allows space format to have custom fields. And users say it
may be valuable. This patch allows to add custom space.format fields,
for example

spaces = {
  test = {
    format = {{
      name = 'size',
      type = 'number',
      scale = 'bananas',
    }},
  }
}

The only restriction is that a custom field must be a string.

Close #36

Tarantool allows space format to have custom fields. And users say it
may be valuable. This patch allows to add custom `space.format` fields,
for example

```lua
spaces = {
  test = {
    format = {{
      name = 'size',
      type = 'number',
      scale = 'bananas',
    }},
  }
}
```

The only restriction is that a custom field must be a string.
@rosik rosik force-pushed the 36-custom-format-fields branch from ea90fe0 to cb60c8e Compare December 23, 2020 09:34
@rosik rosik merged commit 54e07a9 into master Dec 23, 2020
@rosik rosik deleted the 36-custom-format-fields branch December 23, 2020 09:46
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

Successfully merging this pull request may close these issues.

Allow custom fields in space:format
3 participants