{"modulePath":"github.com/IceWhaleTech/CasaOS-LocalStorage","version":"v0.4.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sqlite\n\n## Constants\n\n```go\nconst (\n\n\t// GORM's lifecyle\n\tHookBeforeCreate = \"before_create\"\n\tHookAfterCreate  = \"after_create\"\n\tHookBeforeSave   = \"before_save\"\n\tHookAfterSave    = \"after_save\"\n\tHookBeforeUpdate = \"before_update\"\n\tHookAfterUpdate  = \"after_update\"\n\tHookBeforeDelete = \"before_delete\"\n\tHookAfterDelete  = \"after_delete\"\n\tHookAfterFind    = \"after_find\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\n\t// A map of hook to callbacks per GORM’s lifecycle.\n\t// This allows additional logic to happen when a row is created, updated, deleted, or queried from the database, without changing original model structure or logic.\n\t// Otherwise we will have to add migration logic from version to version.\n\tHooks map[string][]func(*gorm.DB, interface{})\n)\n```\n\n## Functions\n\n```go\nfunc GetDBByFile(dbFile string) *gorm.DB\n```\n\n```go\nfunc GetGlobalDB(dbPath string) *gorm.DB\n```\n\n## Types\n\n```go\ntype ContextKey string\n```\n\n","path":"github.com/IceWhaleTech/CasaOS-LocalStorage/pkg/sqlite","name":"sqlite","synopsis":"","isRedistributable":true}
