{"id":27197776,"url":"https://github.com/preaction/mojolicious-plugin-dbic","last_synced_at":"2026-03-10T23:37:22.968Z","repository":{"id":53573150,"uuid":"160106182","full_name":"preaction/Mojolicious-Plugin-DBIC","owner":"preaction","description":"Mojolicious ❤️ DBIx::Class","archived":false,"fork":false,"pushed_at":"2021-07-01T22:57:40.000Z","size":46,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T20:43:19.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/preaction.png","metadata":{"files":{"readme":"README.mkdn","changelog":"CHANGES","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-02T23:20:18.000Z","updated_at":"2024-03-29T15:13:19.000Z","dependencies_parsed_at":"2022-09-03T05:51:09.196Z","dependency_job_id":null,"html_url":"https://github.com/preaction/Mojolicious-Plugin-DBIC","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/preaction/Mojolicious-Plugin-DBIC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FMojolicious-Plugin-DBIC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FMojolicious-Plugin-DBIC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FMojolicious-Plugin-DBIC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FMojolicious-Plugin-DBIC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/preaction","download_url":"https://codeload.github.com/preaction/Mojolicious-Plugin-DBIC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FMojolicious-Plugin-DBIC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278399628,"owners_count":25980330,"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-10-04T02:00:05.491Z","response_time":63,"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":[],"created_at":"2025-04-09T20:29:33.689Z","updated_at":"2025-10-05T01:32:07.509Z","avatar_url":"https://github.com/preaction.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/preaction/Mojolicious-Plugin-DBIC.svg?branch=master)](https://travis-ci.org/preaction/Mojolicious-Plugin-DBIC)\n[![Coverage Status](https://coveralls.io/repos/preaction/Mojolicious-Plugin-DBIC/badge.svg?branch=master)](https://coveralls.io/r/preaction/Mojolicious-Plugin-DBIC?branch=master)\n\n# NAME\n\nMojolicious::Plugin::DBIC - Mojolicious ♥ DBIx::Class\n\n# VERSION\n\nversion 0.005\n\n# SYNOPSIS\n\n    use Mojolicious::Lite;\n    plugin DBIC =\u003e {\n        schema =\u003e { 'Local::Schema' =\u003e 'dbi:SQLite::memory:' },\n    };\n    get '/model', {\n        controller =\u003e 'DBIC',\n        action =\u003e 'list',\n        resultset =\u003e 'Model',\n        template =\u003e 'model/list.html.ep',\n    };\n    app-\u003estart;\n    __DATA__\n    @@ model/list.html.ep\n    % for my $row ( $resultset-\u003eall ) {\n        \u003cp\u003e\u003c%= $row-\u003eid %\u003e\u003c/p\u003e\n    % }\n\n# DESCRIPTION\n\nThis plugin makes working with [DBIx::Class](https://metacpan.org/pod/DBIx::Class) easier in Mojolicious.\n\n## Configuration\n\nConfigure your schema in multiple ways:\n\n    # Just DSN\n    plugin DBIC =\u003e {\n        schema =\u003e {\n            'MySchema' =\u003e 'DSN',\n        },\n    };\n\n    # Arguments to connect()\n    plugin DBIC =\u003e {\n        schema =\u003e {\n            'MySchema' =\u003e [ 'DSN', 'user', 'password', { RaiseError =\u003e 1 } ],\n        },\n    };\n\n    # Connected schema object\n    my $schema = MySchema-\u003econnect( ... );\n    plugin DBIC =\u003e {\n        schema =\u003e $schema,\n    };\n\nThis plugin can also be configured from the application configuration\nfile:\n\n    # myapp.conf\n    {\n        dbic =\u003e {\n            schema =\u003e {\n                'MySchema' =\u003e 'dbi:SQLite:data.db',\n            },\n        },\n    }\n\n    # myapp.pl\n    use Mojolicious::Lite;\n    plugin 'Config';\n    plugin 'DBIC';\n\n## Controller\n\nThis plugin contains a controller to reduce the code needed for simple\ndatabase operations. See [Mojolicious::Plugin::DBIC::Controller::DBIC](https://metacpan.org/pod/Mojolicious::Plugin::DBIC::Controller::DBIC).\n\n# SEE ALSO\n\n[Mojolicious](https://metacpan.org/pod/Mojolicious), [DBIx::Class](https://metacpan.org/pod/DBIx::Class), [Yancy](https://metacpan.org/pod/Yancy)\n\n# AUTHOR\n\nDoug Bell \u003cpreaction@cpan.org\u003e\n\n# CONTRIBUTOR\n\nK. Andrew Parker \u003ckparker@citytech.cuny.edu\u003e\n\n# COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2018 by Doug Bell.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreaction%2Fmojolicious-plugin-dbic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreaction%2Fmojolicious-plugin-dbic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreaction%2Fmojolicious-plugin-dbic/lists"}