{"id":18779413,"url":"https://github.com/zostay/raku-modeldb","last_synced_at":"2026-02-06T21:00:54.582Z","repository":{"id":66558042,"uuid":"144789374","full_name":"zostay/raku-ModelDB","owner":"zostay","description":"An ORM built on top of DBIish for Raku","archived":false,"fork":false,"pushed_at":"2020-02-08T16:37:56.000Z","size":112,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-27T14:58:13.630Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl 6","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zostay.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2018-08-15T01:20:12.000Z","updated_at":"2019-11-26T21:16:17.000Z","dependencies_parsed_at":"2023-04-06T08:05:56.579Z","dependency_job_id":null,"html_url":"https://github.com/zostay/raku-ModelDB","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/zostay/raku-ModelDB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostay%2Fraku-ModelDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostay%2Fraku-ModelDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostay%2Fraku-ModelDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostay%2Fraku-ModelDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zostay","download_url":"https://codeload.github.com/zostay/raku-ModelDB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zostay%2Fraku-ModelDB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29175821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T20:14:21.878Z","status":"ssl_error","status_checked_at":"2026-02-06T20:14:21.443Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-07T20:20:00.300Z","updated_at":"2026-02-06T21:00:54.549Z","avatar_url":"https://github.com/zostay.png","language":"Perl 6","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n====\n\nModelDB - an MVP ORM\n\nSYNOPSIS\n========\n\n    use DBIish;\n    use ModelDB;\n\n    module Model {\n        use ModelDB::ModelBuilder;\n\n        model Person {\n            has Int $.person-id is column is primary;\n            has Str $.name is column is rw\n            has Int $.age is column is rw;\n            has Str $.favorite-color is column is rw;\n        }\n\n        model Pet {\n            has Str $.pet-id is column is primary;\n            has Str $.name is column is rw;\n            has Str $.animal is column is rw;\n        }\n    }\n\n    class Schema is ModelDB::Schema {\n        use ModelDB::SchemaBuilder;\n\n        has ModelDB::Table[Person] $.persons is table;\n        has ModelDB::Table[Pet] $.pets is table;\n    }\n\n    my $dbh = DBIish.connect('SQLite', :database\u003cdb.sqlite3\u003e);\n    my $schema = Schema.new(:$dbh);\n\n    my $person = $schema.persons.create(%(\n        name           =\u003e 'Steve',\n        age            =\u003e 9,\n        favorite-color =\u003e 'cyan',\n    ));\n\n    $person.name           = 'Alex';\n    $person.age            = 4;\n    $person.favorite-color = 'green';\n\n    $schema.persons.update($person);\n\n    my $by-id = $schema.pets.find(pet-id(1));\n    my @cats = $schema.pets.search(:animal\u003ccat\u003e).all;\n\nDESCRIPTION\n===========\n\nThis is a minimalist object relational mapping tool. It helps with mapping your database objects into Perl from an RDBMS. I am experimenting with this API to see what I can learn about RDBMS patterns, problems, and specific issues as related to Perl 6.\n\nAs such, this is highly experimental and I make no promises as regards the API. Though, I do use it in some production-ish code, so I don't want to change too much too fast.\n\nMy intent, though, is to use what I learn here to build a different library in a different namespace that does what I really want based on what I learn here.\n\nMy goals include:\n\nover\n====\n\n\n\nPod::Defn\u003c140403348404624\u003e\n\nPod::Defn\u003c140403348404568\u003e\n\nPod::Defn\u003c140403332796200\u003e\n\nPod::Defn\u003c140403332796256\u003e\n\nPod::Defn\u003c140403332796312\u003e\n\nback\n====\n\n\n\nPerformance and multiple RDBMS support are anti-goals. This will likely only support MySQL (and forks) and SQLite because that's what I care about. I do not plan to make performance improvements unless required and I especially do not intend to add any optimizations that harm code readability of even the internals unless required.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzostay%2Fraku-modeldb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzostay%2Fraku-modeldb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzostay%2Fraku-modeldb/lists"}