Hi, Кристиан,
Ok. Thank you for another way.
I decided to leave "user:grant('000590',('write'),('000590-*_settings'))"
There will be no overlap in database names.
 
 
21.05.2020, 16:59, "Christian Grün" <christian.gr...@gmail.com>:

Hi Владимир,

Database patterns are restricted to the glob syntax (see [1]). You can
create multiple patterns…

  for $n in 10 to 999
  return user:grant('000590', 'write', '000590-' || $n || '_settings')

…but you should do some performance tests before going live with that.

Best,
Кристиан

[1] https://docs.basex.org/wiki/Commands#Glob_Syntax



On Thu, May 21, 2020 at 3:32 PM Ветошкин Владимир <en-tra...@yandex.ru> wrote:


 Hi, basex team!

 How can I use regex in patterns? Or that's impossible?
 For example,
 user:grant('000590',('write'),('000590-\d{2,3}_settings'))
 Or only so:
 user:grant('000590',('write'),('000590-*_settings'))

Reply via email to