{"id":17882240,"url":"https://github.com/mackee/nephia-plugin-teng","last_synced_at":"2025-07-10T12:09:50.292Z","repository":{"id":9390875,"uuid":"11253148","full_name":"mackee/Nephia-Plugin-Teng","owner":"mackee","description":null,"archived":false,"fork":false,"pushed_at":"2019-12-04T16:44:21.000Z","size":191,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-06T13:58:34.435Z","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/mackee.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}},"created_at":"2013-07-08T11:51:58.000Z","updated_at":"2014-09-09T12:24:23.000Z","dependencies_parsed_at":"2022-09-02T03:51:01.068Z","dependency_job_id":null,"html_url":"https://github.com/mackee/Nephia-Plugin-Teng","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mackee/Nephia-Plugin-Teng","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2FNephia-Plugin-Teng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2FNephia-Plugin-Teng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2FNephia-Plugin-Teng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2FNephia-Plugin-Teng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mackee","download_url":"https://codeload.github.com/mackee/Nephia-Plugin-Teng/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackee%2FNephia-Plugin-Teng/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264578347,"owners_count":23631543,"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-10-28T12:49:01.959Z","updated_at":"2025-07-10T12:09:50.258Z","avatar_url":"https://github.com/mackee.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/mackee/Nephia-Plugin-Teng.png?branch=master)](https://travis-ci.org/mackee/Nephia-Plugin-Teng)\n# NAME\n\nNephia::Plugin::Teng - Simple ORMapper Plugin For Nephia\n\n# SYNOPSIS\n\n    use Nephia plugins =\u003e [qw/Teng/];\n\n    path '/person/:id' =\u003e sub {\n        my $id = path_param('id');\n        my $row = teng-\u003elookup('person', { id =\u003e $id });\n        return res { 404 } unless $row;\n\n        return {\n            id =\u003e $id,\n            name =\u003e $row-\u003eget_column('name'),\n            age =\u003e $row-\u003eget_column('age'),\n        };\n    };\n\nRead row from person table in database in this code.\n\n# DESCRIPTION\n\n## configuration - configuration for Teng.\n\nconfiguration file:\n\n    'DBI' =\u003e {\n        connect_info =\u003e ['dbi:SQLite:dbname=data.db'],\n        teng_plugins =\u003e [qw/Lookup Pager/]\n    },\n\nThe \"connect\\_info\" is connect information for [DBI](http://search.cpan.org/perldoc?DBI).\n\nEnumerate in \"plugins\" option if you want load Teng plugins.\n\n## teng - Create Teng Object\n\n\"teng\" DSL create the Teng Object.\n\n## database\\_do - load SQL before plackup.\n\nIn this example to create table before plackup.\n\nin controller :\n\n    database_do \"CREATE TABLE IF NOT EXISTS person (id INTEGER, name TEXT, age INTEGER);\"\n\n    path '/' =\u003e sub {\n        ...\n    };\n\n# SEE ALSO\n\n[Nephia](http://search.cpan.org/perldoc?Nephia)\n\n[Teng](http://search.cpan.org/perldoc?Teng)\n\n# LICENSE\n\nCopyright (C) macopy.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nmackee \u003cmacopy123\\[attttt\\]gmai.com\u003e\n\nichigotake\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackee%2Fnephia-plugin-teng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmackee%2Fnephia-plugin-teng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackee%2Fnephia-plugin-teng/lists"}