{"id":37097364,"url":"https://github.com/dark-person/lazydb","last_synced_at":"2026-01-14T11:58:02.420Z","repository":{"id":258722591,"uuid":"875329769","full_name":"dark-person/lazydb","owner":"dark-person","description":"Go SQLite collection for lazy people.","archived":false,"fork":false,"pushed_at":"2025-09-26T17:19:36.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-26T19:07:03.811Z","etag":null,"topics":["go","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dark-person.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-10-19T17:30:12.000Z","updated_at":"2025-09-26T17:04:28.000Z","dependencies_parsed_at":"2024-11-15T14:20:31.762Z","dependency_job_id":"5efcb2a6-a849-42b0-9b98-183d9a197f4a","html_url":"https://github.com/dark-person/lazydb","commit_stats":null,"previous_names":["dark-person/lazydb"],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/dark-person/lazydb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-person%2Flazydb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-person%2Flazydb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-person%2Flazydb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-person%2Flazydb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dark-person","download_url":"https://codeload.github.com/dark-person/lazydb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dark-person%2Flazydb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","sqlite"],"created_at":"2026-01-14T11:58:01.665Z","updated_at":"2026-01-14T11:58:02.410Z","avatar_url":"https://github.com/dark-person.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LazyDB\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/dark-person/lazydb.svg)](https://pkg.go.dev/github.com/dark-person/lazydb)\n![GitHub Release](https://img.shields.io/github/v/release/dark-person/lazydb?sort=date)\n[![Go Report Card](https://goreportcard.com/badge/gojp/goreportcard)](https://goreportcard.com/report/github.com/dark-person/lazydb)\n\nGo SQLite collection for lazy people.\n\nInclude these feature:\n\n- Create SQLite database file\n- Migration with `fs.fs`\n- Auto Backup when migration\n- Manual backup by call function\n\nNote: You must has `CGO` enabled to compile this project.\n\n## Get Started\n\nRun this command:\n\n```bash\ngo get github.com/dark-person/lazydb\n```\n\nAn example to use this package as:\n\n```go\nimport (\n    \"embed\"\n    \"fmt\"\n\n    \"github.com/dark-person/lazydb\"\n)\n\n//go:embed all:schema\nvar schema embed.FS\n\nfunc main() {\n    var err error\n\n    // Init db\n    db := lazydb.New(\n        lazydb.DbPath(\"path/data.db\"),    // Database path\n        lazydb.Migrate(schema, \"schema\"), // Migration schema location\n        lazydb.BackupDir(\"./backup\"),     // Set auto backup directory\n        lazydb.Version(2),                // Specify Version\n    )\n\n    // Connect to db, which will create file if necessary\n    err = db.Connect()\n    if err != nil {\n        panic(err)\n    }\n    defer db.Close()\n\n    // Force Backup\n    err = db.BackupTo(\"somewhere/backup.db\")\n    if err != nil {\n        panic(err)\n    }\n\n    // Migration performed\n    backup, err := db.Migrate()\n    if err != nil {\n        panic(err)\n    }\n\n    if backup != \"\" {\n        fmt.Println(\"Auto backup as migration performed: \" + backup)\n    }\n\n    // Optional: Ensure connection is success\n    if !db.Connected() {\n        fmt.Println(\"Database is not connected\")\n    }\n\n    // Usage here...\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdark-person%2Flazydb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdark-person%2Flazydb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdark-person%2Flazydb/lists"}