{"id":30172923,"url":"https://github.com/noeeekr/borm","last_synced_at":"2026-05-06T02:39:12.504Z","repository":{"id":304904767,"uuid":"1019045270","full_name":"Noeeekr/borm","owner":"Noeeekr","description":"Borm or Better Object Relational Mapper is a lightweight postgresql ORM that helps querying and building database migrations.","archived":false,"fork":false,"pushed_at":"2025-08-05T19:07:07.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-05T19:10:39.303Z","etag":null,"topics":["compose","database","docker","go","golang","open-source","orm","postgres","sql"],"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/Noeeekr.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-13T16:08:23.000Z","updated_at":"2025-08-05T19:07:10.000Z","dependencies_parsed_at":"2025-07-17T07:16:05.514Z","dependency_job_id":"1fca34cb-23db-4c2a-8235-5f82858d2213","html_url":"https://github.com/Noeeekr/borm","commit_stats":null,"previous_names":["noeeekr/borm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Noeeekr/borm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noeeekr%2Fborm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noeeekr%2Fborm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noeeekr%2Fborm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noeeekr%2Fborm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Noeeekr","download_url":"https://codeload.github.com/Noeeekr/borm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Noeeekr%2Fborm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269970136,"owners_count":24505478,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compose","database","docker","go","golang","open-source","orm","postgres","sql"],"created_at":"2025-08-11T23:18:24.183Z","updated_at":"2026-05-06T02:39:12.499Z","avatar_url":"https://github.com/Noeeekr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Borm (Better Oriented Relational Mapper) is meant to be a safe and faster approach to simple database tasks. Managing boilerplate code for you as much as possible, without losing performance.\n\n# TOPICS\n___\n## MIGRATIONS:\n    // Register user and database for migration. Migrating a database also migrate its user.\n    myDatabaseUser := borm.RegisterUser(\"my_database_user\", \"my_database_user_passwd\")\n    myDatabase := borm.RegisterDatabase(\"my_databas_name\", myDatabaseUser)\n\n    // Register tables and enums for migration.\n    enum := myDatabase.RegisterEnum(\"fruits\", \"banana\", \"apple\", \"pineapple\")\n    table := myDatabase.RegisterTable(MyTableStruct{}).NeedRoles(enum)\n    \n    // Needs to connect to postgres on first time\n    borm.Connect(\"postgres\", \"postgres-Host\", \"postgres-Password\", \"postgres-User\")\n\n    borm.Settings().Migrations().Enable()\n    borm.Settings().Migrations().RecreateExisting()\n\n    // To migrate databases, users, etc.\n    borm.MigrateEnvironment()\n    \n    // To migrate tables, types, etc.\n    borm.MigrateRelations()\n___\n## TAGS\n```\n      Usage:\n        // Table name can be changed in the RegisterTable function\n        type MyDatabaseTable struct {\n          // Becomes a field of table MyDatabaseTable with name myPrivateField\n          myNonIgnoredPrivateField string \n          \n          // Ignored\n          myIgnoredPrivateField string ``borm:\"(IGNORE)\"\n\n          // Becomes a field of table MyDatabaseTable with name my_public_field\n          MyPublicField string `borm:\"(NAME, my_public_field) (CONSTRAINTS, NOT NULL)\"`\n        }\n```\n```\n  (CONSTRAINTS, string) Defines the constraints of the field.\n      Ex: (CONSTRAINTS, PRIMARY KEY)\n    \n  (NAME, string) Defines the name of the field. If not present name will be the field name to lowercase.\n      Ex: (NAME, my_field_name)\n\n  (TYPE, string) Defines the type of the field in case it is not implemented on reflection.\n      Ex: (TYPE, VARCHAR(555))\n\n  (FOREIGN KEY, primary_key_table_name, primary_key_field_name) Defines the field as a foreign key\n      Ex: (FOREIGN KEY, users, id)\n\n  (IGNORE) Ignores a field completely for all borm operations.\n```\n___\n## Operations\n```\n  myServiceDatabase := borm.RegisterDatabase(\"my_service_database_name\", myServiceDatabaseOwnerUser)\n  TableProducts := myServiceDatabase.RegisterTable(Products{}).Name(\"products\")\n\n  --\n\n  q := TableProducts.Select(\"product_name\", \"product_quantity\")\n  q.Where(q.Field(\"product_quantity\").Equals(10))\n  q.Scanner(scannerFunc)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoeeekr%2Fborm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoeeekr%2Fborm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoeeekr%2Fborm/lists"}