{"id":19854870,"url":"https://github.com/floattech/sqlite","last_synced_at":"2025-05-02T01:30:35.726Z","repository":{"id":57655903,"uuid":"456892828","full_name":"FloatTech/sqlite","owner":"FloatTech","description":"A pure-go wrapper for database/sql using fumiama/sqlite3","archived":false,"fork":false,"pushed_at":"2025-03-30T08:34:59.000Z","size":57,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T20:36:00.399Z","etag":null,"topics":["database","go","golang","no-cgo","sqlite","sqlite3","sqlite3-orm"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FloatTech.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}},"created_at":"2022-02-08T10:52:26.000Z","updated_at":"2025-03-30T08:34:49.000Z","dependencies_parsed_at":"2024-06-18T21:21:17.097Z","dependency_job_id":"c4aac6ae-708e-4e11-9aab-29f4df50b610","html_url":"https://github.com/FloatTech/sqlite","commit_stats":{"total_commits":25,"total_committers":4,"mean_commits":6.25,"dds":0.28,"last_synced_commit":"a07b4d3c1a521b1b0df56d4c53929ff3532f8e03"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2Fsqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2Fsqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2Fsqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FloatTech%2Fsqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FloatTech","download_url":"https://codeload.github.com/FloatTech/sqlite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251969249,"owners_count":21673182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["database","go","golang","no-cgo","sqlite","sqlite3","sqlite3-orm"],"created_at":"2024-11-12T14:10:54.652Z","updated_at":"2025-05-02T01:30:35.376Z","avatar_url":"https://github.com/FloatTech.png","language":"Go","readme":"# sqlite\nA pure-go wrapper for database/sql using logoove/sqlite\n\n## Usage\n\n### 1. Replace modified sqlite lib in your go.mod\n```bash\nreplace modernc.org/sqlite =\u003e github.com/fumiama/sqlite3 v1.29.10-simp\n\nreplace modernc.org/libc =\u003e github.com/fumiama/libc v0.0.0-20240530081950-6f6d8586b5c5\n```\n\n### 2. Use it\n```go\ntype row struct {\n    ID   int // pk\n    Name string\n}\n\ndb := \u0026sql.Sqlite{DBPath: \"demo.db\"}\nerr := db.Open(time.Hour)\nif err != nil {\n    panic(err)\n}\n\nerr = db.Create(\"demotable\", \u0026row{})\nif err != nil {\n    panic(err)\n}\n\nerr = db.Insert(\"demotable\", \u0026row{ID: 123, Name: \"Anna\"})\nif err != nil {\n    panic(err)\n}\n\nvar r row\nerr = db.Find(\"demotable\", \u0026r, \"WHERE ID=123\")\nif err != nil {\n    panic(err)\n}\nfmt.Println(r)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloattech%2Fsqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloattech%2Fsqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloattech%2Fsqlite/lists"}