Sequence
Manage named counters in base 36 (0-9 then a-z): create, read, increment, update and remove them. Typical uses: generate unique numbers for orders, invoices or files.
sequence showsequence get currentsequence add sequence create|insert|addsequence existsequence incrementsequence updatesequence generate updatesequence remove
sequence show
Description
To show all sequences
To show all sequences
admin
sequence show
mentdb
{ "pid": "2k", "test": "67" }
Often used with
not · sequence add · sequence exist · sequence generate update · sequence get current · sequence increment · sequence remove · sequence update
not · sequence add · sequence exist · sequence generate update · sequence get current · sequence increment · sequence remove · sequence update
sequence get current <key>
Description
To get the current sequence value
To get the current sequence value
Parameters
key: The key - string - required
key: The key - string - required
admin
sequence get current "pid"
mentdb
2k
Used in use cases (22 recipes)
JSON & document store developer › Invoice numbers from a sequence
Async developer › Push a script to the stack and watch it close
Scheduler developer › A heartbeat job every 2 seconds: run, pause, resume, remove
Event developer › Run a script when a file arrives in a folder
Algorithms in MQL › Fibonacci with a memo stored in a node
Automation architect › Kill a runaway process of the stack
and 16 more in the Use cases
JSON & document store developer › Invoice numbers from a sequence
Async developer › Push a script to the stack and watch it close
Scheduler developer › A heartbeat job every 2 seconds: run, pause, resume, remove
Event developer › Run a script when a file arrives in a folder
Algorithms in MQL › Fibonacci with a memo stored in a node
Automation architect › Kill a runaway process of the stack
and 16 more in the Use cases
Often used with
sequence add · sequence remove · script create · script delete · sequence increment · wait · and · date now
sequence add · sequence remove · script create · script delete · sequence increment · wait · and · date now
sequence add <key> <value>
Synonymous
sequence create|insert|add
sequence create|insert|add
Description
To add a new sequence
To add a new sequence
Parameters
key: The key - string - required
value: The value - integer - required
key: The key - string - required
value: The value - integer - required
admin
sequence add "test" 0;
mentdb
Sequence added with successful.
Used in use cases (24 recipes)
JSON & document store developer › Invoice numbers from a sequence
Web service developer › POST: create an order with validation
Async developer › Push a script to the stack and watch it close
Scheduler developer › A heartbeat job every 2 seconds: run, pause, resume, remove
Event developer › Run a script when a file arrives in a folder
Algorithms in MQL › Fibonacci with a memo stored in a node
and 18 more in the Use cases
JSON & document store developer › Invoice numbers from a sequence
Web service developer › POST: create an order with validation
Async developer › Push a script to the stack and watch it close
Scheduler developer › A heartbeat job every 2 seconds: run, pause, resume, remove
Event developer › Run a script when a file arrives in a folder
Algorithms in MQL › Fibonacci with a memo stored in a node
and 18 more in the Use cases
Often used with
sequence remove · script create · script delete · sequence get current · sequence increment · wait · and · date now
sequence remove · script create · script delete · sequence get current · sequence increment · wait · and · date now
sequence exist <key>
Description
To check if a sequence exists
To check if a sequence exists
Parameters
key: The key - string - required
key: The key - string - required
admin
sequence exist "test"
mentdb
1
Often used with
not · sequence add · sequence generate update · sequence get current · sequence increment · sequence remove · sequence show · sequence update
not · sequence add · sequence generate update · sequence get current · sequence increment · sequence remove · sequence show · sequence update
sequence increment <key>
Description
To increment a sequence value (+1)
To increment a sequence value (+1)
Parameters
key: The key - string - required
key: The key - string - required
admin
sequence increment "test";
mentdb
1
admin
sequence increment "test"
mentdb
2
Used in use cases (22 recipes)
JSON & document store developer › Invoice numbers from a sequence
Web service developer › POST: create an order with validation
Async developer › Push a script to the stack and watch it close
Scheduler developer › A heartbeat job every 2 seconds: run, pause, resume, remove
Event developer › Run a script when a file arrives in a folder
Algorithms in MQL › Fibonacci with a memo stored in a node
and 16 more in the Use cases
JSON & document store developer › Invoice numbers from a sequence
Web service developer › POST: create an order with validation
Async developer › Push a script to the stack and watch it close
Scheduler developer › A heartbeat job every 2 seconds: run, pause, resume, remove
Event developer › Run a script when a file arrives in a folder
Algorithms in MQL › Fibonacci with a memo stored in a node
and 16 more in the Use cases
Often used with
sequence add · sequence remove · script create · script delete · sequence get current · wait · and · date now
sequence add · sequence remove · script create · script delete · sequence get current · wait · and · date now
sequence update <key> <value>
Description
To update a sequence
To update a sequence
Parameters
key: The key - string - required
value: The value - integer - required
key: The key - string - required
value: The value - integer - required
admin
sequence update "test" 67;
mentdb
Sequence updated with successful.
admin
sequence get current "test"
mentdb
67
Used in use cases (7 recipes)
JSON & document store developer › Invoice numbers from a sequence
Async developer › A run fails, the API comes back, replay it
Scheduler developer › Postpone a stack run until a condition is true
Event developer › The watcher validates, a heavy loader runs later in the stack
Algorithms in MQL › Fibonacci with a memo stored in a node
Async developer › Replay a whole batch of failed exports
and 1 more in the Use cases
JSON & document store developer › Invoice numbers from a sequence
Async developer › A run fails, the API comes back, replay it
Scheduler developer › Postpone a stack run until a condition is true
Event developer › The watcher validates, a heavy loader runs later in the stack
Algorithms in MQL › Fibonacci with a memo stored in a node
Async developer › Replay a whole batch of failed exports
and 1 more in the Use cases
Often used with
sequence add · sequence get current · sequence remove · and · script create · script delete · date now · sequence increment
sequence add · sequence get current · sequence remove · and · script create · script delete · date now · sequence increment
sequence generate update <key>
Description
To generate a sequence update request
To generate a sequence update request
Parameters
key: The key - string - required
key: The key - string - required
admin
sequence generate update "test";
mentdb
sequence update "test" "67";
Often used with
not · sequence add · sequence exist · sequence get current · sequence increment · sequence remove · sequence show · sequence update
not · sequence add · sequence exist · sequence get current · sequence increment · sequence remove · sequence show · sequence update
sequence remove <key>
Description
To remove a sequence
To remove a sequence
Parameters
key: The key - string - required
key: The key - string - required
admin
sequence remove "test";
mentdb
Sequence removed with successful.
Used in use cases (24 recipes)
JSON & document store developer › Invoice numbers from a sequence
Web service developer › POST: create an order with validation
Async developer › Push a script to the stack and watch it close
Scheduler developer › A heartbeat job every 2 seconds: run, pause, resume, remove
Event developer › Run a script when a file arrives in a folder
Algorithms in MQL › Fibonacci with a memo stored in a node
and 18 more in the Use cases
JSON & document store developer › Invoice numbers from a sequence
Web service developer › POST: create an order with validation
Async developer › Push a script to the stack and watch it close
Scheduler developer › A heartbeat job every 2 seconds: run, pause, resume, remove
Event developer › Run a script when a file arrives in a folder
Algorithms in MQL › Fibonacci with a memo stored in a node
and 18 more in the Use cases
Often used with
sequence add · script create · script delete · sequence get current · sequence increment · wait · and · date now
sequence add · script create · script delete · sequence get current · sequence increment · wait · and · date now
