{"id":18507727,"url":"https://github.com/upper/bond","last_synced_at":"2025-04-09T03:31:26.996Z","repository":{"id":32877607,"uuid":"36471864","full_name":"upper/bond","owner":"upper","description":"Simple database model layer for upper.io/db","archived":false,"fork":false,"pushed_at":"2020-05-14T21:53:40.000Z","size":61,"stargazers_count":15,"open_issues_count":7,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-29T20:56:52.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/upper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-28T23:30:43.000Z","updated_at":"2024-07-09T09:49:04.000Z","dependencies_parsed_at":"2022-08-07T18:15:51.449Z","dependency_job_id":null,"html_url":"https://github.com/upper/bond","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upper%2Fbond","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upper%2Fbond/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upper%2Fbond/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upper%2Fbond/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/upper","download_url":"https://codeload.github.com/upper/bond/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223362251,"owners_count":17133067,"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-06T15:12:16.101Z","updated_at":"2024-11-06T15:12:17.679Z","avatar_url":"https://github.com/upper.png","language":"Go","readme":"# Bond\n\nPackage `bond` (`/bɑnd/`) is a database framework on top of\n[upper-db](https://upper.io) which defines a set of hard rules and agreements\non how to work to with SQL databases.\n\n`bond` defines the following concepts:\n\n## Session\n\n* A session represents a database connection pool.\n* ...\n\n## Model\n\n* A model is the equivalence between table values and Go values.\n* ...\n\n## Store\n\n* A bond store represents the relation between a model and a table, a store\n  accepts models and commits operations.\n* ...\n\n# Requisites\n\nIf you want to use bond, your database design must follow a well-defined set of\nrules:\n\n* All models require a table with a primary key (composite primary keys are\n  also OK).\n* ...\n\n## Example project\n\nCheck out [bond-example-project](https://github.com/upper/bond-example-project)\nfor a project example.\n\n## License\n\nThis project is licensed under the terms of the **MIT License**.\n\n\u003e Copyright (c) 2015-present The upper.io/db authors. All rights reserved.\n\u003e\n\u003e Permission is hereby granted, free of charge, to any person obtaining\n\u003e a copy of this software and associated documentation files (the\n\u003e \"Software\"), to deal in the Software without restriction, including\n\u003e without limitation the rights to use, copy, modify, merge, publish,\n\u003e distribute, sublicense, and/or sell copies of the Software, and to\n\u003e permit persons to whom the Software is furnished to do so, subject to\n\u003e the following conditions:\n\u003e\n\u003e The above copyright notice and this permission notice shall be\n\u003e included in all copies or substantial portions of the Software.\n\u003e\n\u003e THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n\u003e EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n\u003e MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n\u003e NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n\u003e LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n\u003e OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n\u003e WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupper%2Fbond","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupper%2Fbond","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupper%2Fbond/lists"}