feat: implement database handlerImplement a database api to manage nodes and relationships in a "graph databaselike" implemented in sqlite.closes #1

This commit is contained in:
Alexander Navarro 2024-11-13 19:55:02 +00:00
parent 5aaacb10e3
commit b2d8dadcee
17 changed files with 963 additions and 0 deletions

25
pkg/loglevel_string.go Normal file
View file

@ -0,0 +1,25 @@
// Code generated by "stringer -type=LogLevel"; DO NOT EDIT.
package synchronizator
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[ERROR-0]
_ = x[INFO-1]
_ = x[DEBUG-2]
}
const _LogLevel_name = "ERRORINFODEBUG"
var _LogLevel_index = [...]uint8{0, 5, 9, 14}
func (i LogLevel) String() string {
if i < 0 || i >= LogLevel(len(_LogLevel_index)-1) {
return "LogLevel(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _LogLevel_name[_LogLevel_index[i]:_LogLevel_index[i+1]]
}