{"id":16310582,"url":"https://github.com/astj/p6-sql-namedplaceholder","last_synced_at":"2025-04-14T04:41:30.467Z","repository":{"id":72102326,"uuid":"75847147","full_name":"astj/p6-SQL-NamedPlaceholder","owner":"astj","description":"Perl6 port of https://github.com/cho45/SQL-NamedPlaceholder","archived":false,"fork":false,"pushed_at":"2018-06-15T03:15:50.000Z","size":19,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T09:41:50.675Z","etag":null,"topics":["perl6","query-builder","sql"],"latest_commit_sha":null,"homepage":null,"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/astj.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-12-07T15:07:02.000Z","updated_at":"2018-06-15T03:05:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c1b9d4f-b722-40b5-ab13-3a8856bdabe4","html_url":"https://github.com/astj/p6-SQL-NamedPlaceholder","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astj%2Fp6-SQL-NamedPlaceholder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astj%2Fp6-SQL-NamedPlaceholder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astj%2Fp6-SQL-NamedPlaceholder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astj%2Fp6-SQL-NamedPlaceholder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astj","download_url":"https://codeload.github.com/astj/p6-SQL-NamedPlaceholder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248824658,"owners_count":21167343,"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":["perl6","query-builder","sql"],"created_at":"2024-10-10T21:42:19.618Z","updated_at":"2025-04-14T04:41:30.446Z","avatar_url":"https://github.com/astj.png","language":"Perl 6","readme":"[![Build Status](https://travis-ci.org/astj/p6-SQL-NamedPlaceholder.svg?branch=master)](https://travis-ci.org/astj/p6-SQL-NamedPlaceholder)\n\nNAME\n====\n\nSQL::NamedPlaceholder - extension of placeholder\n\nSYNOPSIS\n========\n\n    use SQL::NamedPlaceholder;\n\n    my ($sql, $bind) = bind-named(q[\n        SELECT *\n        FROM entry\n        WHERE\n            user_id = :user_id\n    ], {\n        user_id =\u003e $user_id\n    });\n\n    $dbh.prepare($sql).execute(|$bind);\n\nDESCRIPTION\n===========\n\nSQL::NamedPlaceholder is extension of placeholder. This enable more readable and robust code.\n\nFUNCTION\n========\n\n  * [$sql, $bind] = bind-named($sql, $hash);\n\n    The $sql parameter is SQL string which contains named placeholders. The $hash parameter is map of bind parameters.\n\n    The returned $sql is new SQL string which contains normal placeholders ('?'), and $bind is List of bind parameters.\n\nSYNTAX\n======\n\n  * :foobar\n\n    Replace as placeholder which uses value from $hash{foobar}.\n\n  * foobar = ?, foobar \u003e ?, foobar \u003c ?, foobar \u003c\u003e ?, etc.\n\n    This is same as 'foobar (op.) :foobar'.\n\nAUTHOR\n======\n\nastj \u003casato.wakisaka@gmail.com\u003e\n\nORIGINAL AUTHOR\n===============\n\nThis module is port of [SQL::NamedPlaceholder in Perl5](https://github.com/cho45/SQL-NamedPlaceholder).\n\nAuthor of original SQL::NamedPlaceholder in Perl5 is cho45 \u003ccho45@lowreal.net\u003e.\n\nSEE ALSO\n========\n\n[SQL::NamedPlaceholder in Perl5](https://github.com/cho45/SQL-NamedPlaceholder)\n\nLICENSE\n=======\n\nThis library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.\n\nOriginal Perl5's SQL::NamedPlaceholder is licensed under following terms:\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastj%2Fp6-sql-namedplaceholder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastj%2Fp6-sql-namedplaceholder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastj%2Fp6-sql-namedplaceholder/lists"}