https://github.com/machbase/machbasemodule4golang
How to use a Machbase module for golang
https://github.com/machbase/machbasemodule4golang
Last synced: 5 months ago
JSON representation
How to use a Machbase module for golang
- Host: GitHub
- URL: https://github.com/machbase/machbasemodule4golang
- Owner: machbase
- Created: 2020-03-03T03:47:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-02T07:18:04.000Z (over 3 years ago)
- Last Synced: 2024-06-22T03:05:01.132Z (almost 2 years ago)
- Language: Go
- Size: 50.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# golang Machbase module example
This page is an example of 'How to use a Machbase module fo golang' posted on the Machbase Tech blog.
Machbase Tech blog address is: https://kr.machbase.com/machbase-go-golang-%eb%aa%a8%eb%93%88/
machbase 1.0 : use machbase cli
machbase 1.5 : use machbase cli
machbase 6.5 : use machbase rest-api
main.go : example source
machbase/machbase.go : Machbase module fo golang
Environment Settings
If the machbase is installed in the $MACHBASE_HOME folder, add the environment variable as follows:
This environment variable is only for module version 1.0 and 1.5
export LD_LIBRARY_PATH=$MACHBASE_HOME/lib:$LD_LIBRARY_PATH
export CGO_CFLAGS="-I$MACHBASE_HOME/include"
export CGO_LDFLAGS="-L$MACHBASE_HOME/lib -lmachbasecli_dll"