# Arrow Lua example There are Lua example codes in this directory. ## How to run All example codes use [LGI](https://github.com/pavouk/lgi) to use Arrow GLib based bindings. Here are command lines to install LGI on Debian GNU/Linux and Ubuntu: ```text % sudo apt install -y luarocks % sudo luarocks install lgi ``` ## Lua example codes Here are example codes in this directory: * `write-batch.lua`: It shows how to write Arrow array to file in batch mode. * `read-batch.lua`: It shows how to read Arrow array from file in batch mode. * `write-stream.lua`: It shows how to write Arrow array to file in stream mode. * `read-stream.lua`: It shows how to read Arrow array from file in stream mode.