{"id":19098860,"url":"https://github.com/ddliu/go-dbless","last_synced_at":"2026-04-12T13:31:45.347Z","repository":{"id":57532978,"uuid":"193323970","full_name":"ddliu/go-dbless","owner":"ddliu","description":"Database library with less complexity and less modeling.","archived":false,"fork":false,"pushed_at":"2022-09-04T16:29:52.000Z","size":44,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T01:21:22.835Z","etag":null,"topics":["database","golang","json","model","mysql","orm","postgresql","sql","sqlite"],"latest_commit_sha":null,"homepage":null,"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/ddliu.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}},"created_at":"2019-06-23T08:27:42.000Z","updated_at":"2022-09-04T16:28:20.000Z","dependencies_parsed_at":"2022-09-26T18:20:48.901Z","dependency_job_id":null,"html_url":"https://github.com/ddliu/go-dbless","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddliu%2Fgo-dbless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddliu%2Fgo-dbless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddliu%2Fgo-dbless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddliu%2Fgo-dbless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddliu","download_url":"https://codeload.github.com/ddliu/go-dbless/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240154445,"owners_count":19756463,"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","golang","json","model","mysql","orm","postgresql","sql","sqlite"],"created_at":"2024-11-09T03:47:46.417Z","updated_at":"2026-04-12T13:31:40.326Z","avatar_url":"https://github.com/ddliu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-dbless\n\n[![Travis](https://img.shields.io/travis/ddliu/go-dbless.svg?style=flat-square)](https://travis-ci.org/ddliu/go-dbless)\n[![godoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/ddliu/go-dbless)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ddliu/go-dbless)](https://goreportcard.com/report/github.com/ddliu/go-dbless)\n[![cover.run](https://cover.run/go/github.com/ddliu/go-dbless.svg?style=flat\u0026tag=golang-1.10)](https://cover.run/go?tag=golang-1.10\u0026repo=github.com%2Fddliu%2Fgo-dbless)\n\nDatabase library with less complexity and less modeling.\n\n## Install\n\n```\ngo get -u github.com/ddliu/go-dbless\n```\n\n## Usage\n\n```go\nimport (\n    \"github.com/ddliu/go-dbless\"\n    _ \"github.com/ddliu/go-dbless/driver/mysql\"\n    _ \"github.com/go-sql-driver/mysql\"\n)\ndb := dbless.Open(\"mysql\", \"dsn\")\n```\n\n### Basic\n\n- Insert\n- Update\n- Delete\n- GetRows\n- GetRow\n- Scalar\n\n### Schema\n\n- List databases\n- List tables\n- List columns\n\n### Resource\n\n```go\npackage main\nimport github.com/ddliu/go-dbless\n\nfunc main() {\n    db := somedb()\n\n    resource := dbless.Resource{\n        Name: \"user\",\n        Timestamp: true,\n        DB: db,\n    }\n\n    id, err := resource.Save(dbless.Record{\n        \"username\": \"ddliu\",\n        \"password\": \"123456\",\n    })\n\n    user, err := record.Get(id)\n\n    listing := resource.List(dbless.ListInput{\n        Pagination: dbless.Pagination {\n            PageSize: 20,\n            Page: 1,\n        },\n    })\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddliu%2Fgo-dbless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddliu%2Fgo-dbless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddliu%2Fgo-dbless/lists"}