{"id":21502369,"url":"https://github.com/night-codes/mgo-wrapper","last_synced_at":"2025-12-14T21:28:39.342Z","repository":{"id":57495248,"uuid":"52269539","full_name":"night-codes/mgo-wrapper","owner":"night-codes","description":"Wrapper for package mgo with auto reconnect","archived":false,"fork":false,"pushed_at":"2016-02-22T15:03:36.000Z","size":2,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T23:32:40.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/night-codes.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":"2016-02-22T11:43:28.000Z","updated_at":"2023-04-19T13:39:05.000Z","dependencies_parsed_at":"2022-09-26T17:50:48.534Z","dependency_job_id":null,"html_url":"https://github.com/night-codes/mgo-wrapper","commit_stats":null,"previous_names":["mirrr/mgo-wrapper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night-codes%2Fmgo-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night-codes%2Fmgo-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night-codes%2Fmgo-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/night-codes%2Fmgo-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/night-codes","download_url":"https://codeload.github.com/night-codes/mgo-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244043512,"owners_count":20388595,"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":[],"created_at":"2024-11-23T18:14:41.438Z","updated_at":"2025-12-14T21:28:39.234Z","avatar_url":"https://github.com/night-codes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mgo-wrapper (mongo)\nWrapper for package mgo with auto reconnect\n\n## How To Use\nSet environment variable DBHOST like \"localhost:27017\" if you want to use non-standard port or host\n\n```go\npackage main\n\ntype (\n    obj  map[string]interface{}\n    prod struct{\n        // ....\n    }\n)\n\nimport (\n    \"github.com/mirrr/mgo-wrapper\"\n    \"fmt\"\n)\n\nfunc main() {\n    products := []prod{}\n    mongo.DB(\"myDataBase\").C(\"products\").Find(obj{}).All(\u0026products)\n    fmt.Println(products)\n}\n```\n\n## License\nDO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\nVersion 2, December 2004\n\nCopyright (C) 2016 Oleksiy Chechel \u003calex.mirrr@gmail.com\u003e\n\nEveryone is permitted to copy and distribute verbatim or modified\ncopies of this license document, and changing it is allowed as long\nas the name is changed.\n\nDO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\nTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight-codes%2Fmgo-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnight-codes%2Fmgo-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnight-codes%2Fmgo-wrapper/lists"}