{"id":18894114,"url":"https://github.com/serkansipahi/corm","last_synced_at":"2026-04-25T12:32:30.217Z","repository":{"id":57603557,"uuid":"103318623","full_name":"SerkanSipahi/corm","owner":"SerkanSipahi","description":"Developer friendly ORM for CouchDB written in Golang","archived":false,"fork":false,"pushed_at":"2018-02-11T18:14:50.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T12:54:39.388Z","etag":null,"topics":["api","couchdb","database","friendly","golang","helper","nosql-database","orm","rapid","testdriven"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SerkanSipahi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-12T20:42:25.000Z","updated_at":"2017-09-13T05:38:42.000Z","dependencies_parsed_at":"2022-09-12T21:41:02.494Z","dependency_job_id":null,"html_url":"https://github.com/SerkanSipahi/corm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SerkanSipahi%2Fcorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SerkanSipahi%2Fcorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SerkanSipahi%2Fcorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SerkanSipahi%2Fcorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SerkanSipahi","download_url":"https://codeload.github.com/SerkanSipahi/corm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869219,"owners_count":19710485,"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":["api","couchdb","database","friendly","golang","helper","nosql-database","orm","rapid","testdriven"],"created_at":"2024-11-08T08:18:06.823Z","updated_at":"2026-02-27T07:30:15.773Z","avatar_url":"https://github.com/SerkanSipahi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CORM\n\nThe awesome CouchDB ORM library for Golang, aims to be developer friendly.\n\n[![GoDoc](https://godoc.org/github.com/SerkanSipahi/corm?status.svg)](https://godoc.org/github.com/SerkanSipahi/corm)\n[![Go Report Card](https://goreportcard.com/badge/github.com/SerkanSipahi/corm)](https://goreportcard.com/report/github.com/SerkanSipahi/corm)\n\n## Overview\n\n* Our goal is to adapt/implement the Domain-Classes Methods from [grails](http://docs.grails.org/latest/ref/Domain%20Classes/save.html) and some of the CouchDB specific [Api](https://godoc.org/github.com/flimzy/kivik) for CouchDb\n* Be careful when using. The api can changed. We are in early state.\n* If you have some suggestions or concerns please contact us or make a issue ticket.\n\n## Requirements\n\n* CouchDB \u003e= 2.1\n* Golang \u003e= 1.9\n\n## Installation\n\n```golang\ngo get -u github.com/SerkanSipahi/corm\n```\n\n### ORM methods (our goal for a Nosql-Database)\n\n#### db methods\n\n```golang\nctx := context.TODO()\ndb, err := corm.New(ctx, corm.Config{\n    DBName: \"myDatabase\",\n})\n```\n\n- [x] [Save](https://godoc.org/github.com/SerkanSipahi/corm#Orm.Save)\n- [x] [Read](https://godoc.org/github.com/SerkanSipahi/corm#Orm.Read)\n- [x] [Update](https://godoc.org/github.com/SerkanSipahi/corm#Orm.Update)\n- [x] [Delete](https://godoc.org/github.com/SerkanSipahi/corm#Orm.Delete)\n- [ ] First\n- [ ] Last\n- [ ] Count\n- [ ] CountBy\n- [ ] Exists\n- [ ] BelongsTo\n- [ ] DeleteMany\n- [ ] ExecuteQuery\n- [ ] UpdateAll\n- [ ] Find\n- [ ] FindAll\n- [ ] FindAllBy\n- [ ] FindAllWhere\n- [ ] FindBy\n- [ ] FindWhere\n- [ ] Get\n- [ ] GetAll\n- [ ] HasMany\n- [ ] HasOne\n- [ ] List\n- [ ] ListOrderBy\n- [ ] Refresh\n- [ ] SaveAll\n- [ ] SaveJson\n- [ ] Sync\n- [ ] Validate\n- [ ] Where\n- [ ] WhereAny\n\n### Basic usage\n```golang\n\ntype Product struct {\n\tId          string `json:\"_id,omitempty\"`  // required in this style\n\tRev         string `json:\"_rev,omitempty\"` // required in this style\n\tType        string `json:\"type\"`           // required: tag this but don´t touch it\n\t// additionals\n\tName        string `json:\"name\"`\n}\n\n// init DB\nctx := context.TODO()\ndb, err := corm.New(ctx, corm.Config{\n    DBName: \"myDatabase\",\n})\n\n// save document with custom Id\ndocId, rev, err := db.Save(ctx, Product{\n    Id:   \"111-222-333\",\n    Name: \"Foo\",\n})\n\n// save document with auto Id\ndocId, rev, err = db.Save(ctx, Product{\n    Name: \"Bar\",\n})\n\n// update document\nrev, err = db.Update(ctx, Product{\n    Id:   docId,\n    Rev:  rev,\n    Name: \"Baz\",\n})\n\n// read document\nvar product Product\n_, err = db.Read(ctx, docId, \u0026product)\nfmt.Println(product) // product{ Id: \"asdfj334234f34asdfq34\", Rev: \"1-alsj34lkjij3lksife\" ...\n\n// delete document\nrev, err = db.Delete(ctx, docId, rev)\n```\n\n## Author\n\n**SerkanSipahi**\n\n* \u003chttp://github.com/SerkanSipahi\u003e\n* \u003cserkan.sipahi@yahoo.de\u003e\n* \u003chttps://twitter.com/Bitcollage\u003e\n\n## Contributors\n\nhttps://github.com/SerkanSipahi/corm/graphs/contributors\n\n## License\n\nThis software is released under the terms of the Apache 2.0 license. See LICENCE.md, or read the [full license](http://www.apache.org/licenses/LICENSE-2.0).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserkansipahi%2Fcorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserkansipahi%2Fcorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserkansipahi%2Fcorm/lists"}