{"id":20053896,"url":"https://github.com/tyil/perl6-sql-querybuilder","last_synced_at":"2026-05-14T23:38:53.953Z","repository":{"id":85800336,"uuid":"119685544","full_name":"Tyil/perl6-SQL-QueryBuilder","owner":"Tyil","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-19T13:29:09.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T21:27:41.847Z","etag":null,"topics":["database","perl-module","perl6","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tyil.png","metadata":{"files":{"readme":"README.adoc","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}},"created_at":"2018-01-31T12:40:52.000Z","updated_at":"2018-04-03T13:26:32.000Z","dependencies_parsed_at":"2023-03-01T22:15:40.823Z","dependency_job_id":null,"html_url":"https://github.com/Tyil/perl6-SQL-QueryBuilder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tyil%2Fperl6-SQL-QueryBuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tyil%2Fperl6-SQL-QueryBuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tyil%2Fperl6-SQL-QueryBuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tyil%2Fperl6-SQL-QueryBuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tyil","download_url":"https://codeload.github.com/Tyil/perl6-SQL-QueryBuilder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241482100,"owners_count":19969850,"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":["database","perl-module","perl6","sql"],"created_at":"2024-11-13T12:30:42.134Z","updated_at":"2026-05-14T23:38:48.916Z","avatar_url":"https://github.com/Tyil.png","language":"Perl 6","funding_links":[],"categories":[],"sub_categories":[],"readme":"= SQL::QueryBuilder\n:toc: preamble\n\n== Interfaces defined\nThere are different interfaces for each type of query. Each of these interfaces\nhave at least a `Str` sub defined, which is the sub used to convert the object\ninto the actual query. These queries can in turn be used with a database\ninterfacing module, such as https://github.com/perl6/DBIish[`DBIish`].\n\n=== `SQL::QueryBuilder::Abstract::Use`\n[source,perl6]\n----\nsub db(Str:D $database --\u003e self)\n----\n\n=== `SQL::QueryBuilder::Abstract::Insert`\n[source,perl6]\n----\nsub into(Str:D $table --\u003e self)\nsub record(Any:D %record --\u003e self)\nsub records(Hash:D @records --\u003e self)\n----\n\n=== `SQL::QueryBuilder::Abstract::Select`\n[source,perl6]\n----\nsub from(Str:D $table --\u003e self)\nsub select(Str:D $column --\u003e self)\nsub select(Str:D *@columns --\u003e self)\nsub select-as(Pair:D $column --\u003e self)\nsub select-as(Pair:D *@columns --\u003e self)\nsub where(Str:D $column, Any:D $value --\u003e self)\nsub where(Str:D $column, Str:D $check, Any:D $value --\u003e self)\nsub order-by(Str:D $column, Str:D $direction = \"ASC\" --\u003e self)\nsub skip(Int:D $amount --\u003e self)\nsub take(Int:D $amount --\u003e self)\n----\n\n=== `SQL::QueryBuilder::Abstract::Update`\n[source,perl6]\n----\nsub table(Str:D $table --\u003e self)\nsub set(Str:D $column, Any:D $value --\u003e self)\nsub set(Pair:D *@records --\u003e self)\nsub set(Any:D %record --\u003e self)\nsub where(Str:D $column, Any:D $value --\u003e self)\nsub where(Str:D $column, Str:D $check, Any:D $value --\u003e self)\n----\n\n=== `SQL::QueryBuilder::Abstract::Delete`\n[source,perl6]\n----\nsub from(Str:D $table --\u003e self)\nsub where(Str:D $column, Any:D $value --\u003e self)\nsub where(Str:D $column, Str:D $check, Any:D $value --\u003e self)\n----\n\n=== `SQL::QueryBuilder::Abstract::CreateTable`\n[source,perl6]\n----\nsub name(Str:D $table --\u003e self)\nsub primary-key(Str:D $column --\u003e self)\n\n# Column types\nsub str(Str:D $name, Int:D :$length = 50, Bool:D :$nullable = False, Str :$default --\u003e self)\nsub int(Str:D $name, Bool:D :$nullable = False, Int :$default --\u003e self)\nsub uint(Str:D $name, Bool:D :$nullable = False, Int :$default --\u003e self)\nsub float(Str:D $name, Bool:D :$nullable = False, Num :$default --\u003e self)\nsub date(Str:D $name, Bool:D :$nullable = False, Date :$default --\u003e self)\n----\n\n=== `SQL::QueryBuilder::Abstract::DropTable`\n[source,perl6]\n----\nsub name(Str:D $table --\u003e self)\n----\n\n== License\nThis module is distributed under the terms of the LGPL version 3.0. See the\n`LICENSE` file in this repository for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyil%2Fperl6-sql-querybuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyil%2Fperl6-sql-querybuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyil%2Fperl6-sql-querybuilder/lists"}