Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ramsailopal/yottalua-gitpod
Gitpod environment for development with Lua and YottaDB
https://github.com/ramsailopal/yottalua-gitpod
lua mumps yottadb
Last synced: about 4 hours ago
JSON representation
Gitpod environment for development with Lua and YottaDB
- Host: GitHub
- URL: https://github.com/ramsailopal/yottalua-gitpod
- Owner: RamSailopal
- Created: 2022-06-27T09:16:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-27T11:57:00.000Z (over 2 years ago)
- Last Synced: 2023-03-08T13:39:49.611Z (over 1 year ago)
- Topics: lua, mumps, yottadb
- Language: Shell
- Homepage:
- Size: 151 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# YottaLua-Gitpod
Gitpod environment for development with Lua and YottaDB
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/RamSailopal/YottaLua-Gitpod)
Once the environment has provisioned fully, four windows will open at the bottom of the screen.
The first window can be ignored, the second window will give access to the YottaDB environment, the third will be access to a Lua environment and fourth, access to a command line to run Lua code.
![Alt text](Gitpod-Lua.JPG?raw=true "Gitpod")
A simple test code example is stored in the code folder:
ydb = require('yottadb')
ydb.set('^TEST', {'1'}, "Testing")
res = ydb.get('^TEST', {'1'})
print(res)
This can be run in the fourth window with:lua test.lua
The code performs the following equivalent in M:S ^TEST("1")="Testing"
This can further be seen by running the following in the second window:YDB>D ^%G
Output device: :
List ^TEST
^TEST(1)="Testing"
The same Lua code can be run in the Lua environment (third window)
ydb = require('yottadb')
ydb.set('^TEST', {'1'}, "Testing")
ydb.get('^TEST', {'1'})
Testing
# Further Coding Reference
https://docs.yottadb.com/MultiLangProgGuide/luaprogram.html