Skip to content

Conversation

@no1seman
Copy link

@no1seman no1seman commented May 18, 2022

add crud.VERSION (_crud.VERSION) constant to make possible to determine module version in runtime.

I didn't forget about

  • Tests
  • Changelog
  • Documentation

Closes #240

@Totktonada
Copy link
Contributor

NB: tarantool/graphql#53 (comment)


`VERSION` - is a crud module version constant.

Use `crud.VERSION` on "routers" to get module version, or `_crud.VERSION` - on storages.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we use globals and different API for routers and storages? There are no supported cases for using _crud now, all interaction are processed with require('crud').something

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no supported cases for using _crud: And what is this:

crud/crud.lua

Line 123 in e709a87

rawset(_G, '_crud', {})
?
and this;
_G._crud.select_on_storage = select_on_storage

and so on...?

Copy link
Member

@DifferentialOrange DifferentialOrange May 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's internal and should be used only by crud itself, not by user

@DifferentialOrange
Copy link
Member

Closed by #342

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.

Add MODULE_VERSION constant to have an ability to determine available crud features

3 participants