{"id":18981420,"url":"https://github.com/awncorp/doodle","last_synced_at":"2026-05-18T10:09:37.712Z","repository":{"id":77256516,"uuid":"300957265","full_name":"awncorp/doodle","owner":"awncorp","description":"Database DDL Statement Builder","archived":false,"fork":false,"pushed_at":"2020-10-03T20:35:55.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-11T10:02:58.709Z","etag":null,"topics":["database","ddl","migrations","perl","perl5"],"latest_commit_sha":null,"homepage":"","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/awncorp.png","metadata":{"files":{"readme":"README","changelog":"CHANGES","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-10-03T19:06:21.000Z","updated_at":"2022-07-24T20:58:35.000Z","dependencies_parsed_at":"2023-02-27T09:31:30.685Z","dependency_job_id":null,"html_url":"https://github.com/awncorp/doodle","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/awncorp/doodle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdoodle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdoodle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdoodle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdoodle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awncorp","download_url":"https://codeload.github.com/awncorp/doodle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awncorp%2Fdoodle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33174091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["database","ddl","migrations","perl","perl5"],"created_at":"2024-11-08T16:09:48.198Z","updated_at":"2026-05-18T10:09:37.694Z","avatar_url":"https://github.com/awncorp.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n\n    Doodle\n\nABSTRACT\n\n    Database DDL (= Data Definition Language) Statement Builder\n\nSYNOPSIS\n\n      use Doodle;\n    \n      my $self = Doodle-\u003enew;\n      my $table = $self-\u003etable('users');\n    \n      $table-\u003eprimary('id');\n      $table-\u003euuid('arid');\n      $table-\u003ecolumn('name');\n      $table-\u003estring('email');\n      $table-\u003ejson('metadata');\n    \n      my $command = $table-\u003ecreate;\n      my $grammar = $self-\u003egrammar('sqlite');\n      my $statement = $grammar-\u003eexecute($command);\n    \n      # say $statement-\u003esql;\n    \n      # create table \"users\" (\n      #   \"id\" integer primary key,\n      #   \"arid\" varchar,\n      #   \"name\" varchar,\n      #   \"email\" varchar,\n      #   \"metadata\" text\n      # )\n\nDESCRIPTION\n\n    Doodle is a database DDL (\"Data Definition Language\" or \"Data\n    Description Language\")\n    \u003chttps://en.wikipedia.org/wiki/Data_definition_language\u003e statement\n    builder and provides an object-oriented abstraction for performing\n    schema changes in various datastores. This class consumes the\n    Doodle::Helpers roles.\n\nINTEGRATES\n\n    This package integrates behaviors from:\n\n    Doodle::Helpers\n\nLIBRARIES\n\n    This package uses type constraints from:\n\n    Doodle::Library\n\nATTRIBUTES\n\n    This package has the following attributes:\n\n commands\n\n      commands(Commands)\n\n    This attribute is read-only, accepts (Commands) values, and is\n    optional.\n\nMETHODS\n\n    This package implements the following methods:\n\n build\n\n      build(Grammar $grammar, CodeRef $callback) : Any\n\n    Execute a given callback for each generated SQL statement.\n\n    build example #1\n\n        # given: synopsis\n      \n        $self-\u003ebuild($grammar, sub {\n          my $statement = shift;\n      \n          # e.g. $db-\u003edo($statement-\u003esql);\n        });\n\n grammar\n\n      grammar(Str $name) : Grammar\n\n    Returns a new Grammar object.\n\n    grammar example #1\n\n        # given: synopsis\n      \n        my $type = 'sqlite';\n      \n        $grammar = $self-\u003egrammar($type);\n\n schema\n\n      schema(Str $name, Any %args) : Schema\n\n    Returns a new Schema object.\n\n    schema example #1\n\n        # given: synopsis\n      \n        my $name = 'app';\n      \n        my $schema = $self-\u003eschema($name);\n\n statements\n\n      statements(Grammar $g) : Statements\n\n    Returns a set of Statement objects for the given grammar.\n\n    statements example #1\n\n        # given: synopsis\n      \n        my $statements = $self-\u003estatements($grammar);\n\n table\n\n      table(Str $name, Any %args) : Table\n\n    Return a new Table object.\n\n    table example #1\n\n        # given: synopsis\n      \n        my $name = 'users';\n      \n        $table = $self-\u003etable($name);\n\nAUTHOR\n\n    Al Newkirk, awncorp@cpan.org\n\nLICENSE\n\n    Copyright (C) 2011-2019, Al Newkirk, et al.\n\n    This is free software; you can redistribute it and/or modify it under\n    the terms of the The Apache License, Version 2.0, as elucidated in the\n    \"license file\"\n    \u003chttps://github.com/iamalnewkirk/doodle/blob/master/LICENSE\u003e.\n\nPROJECT\n\n    Wiki \u003chttps://github.com/iamalnewkirk/doodle/wiki\u003e\n\n    Project \u003chttps://github.com/iamalnewkirk/doodle\u003e\n\n    Initiatives \u003chttps://github.com/iamalnewkirk/doodle/projects\u003e\n\n    Milestones \u003chttps://github.com/iamalnewkirk/doodle/milestones\u003e\n\n    Contributing\n    \u003chttps://github.com/iamalnewkirk/doodle/blob/master/CONTRIBUTE.md\u003e\n\n    Issues \u003chttps://github.com/iamalnewkirk/doodle/issues\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawncorp%2Fdoodle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawncorp%2Fdoodle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawncorp%2Fdoodle/lists"}