{"id":23044773,"url":"https://github.com/danishabdullah/szgen","last_synced_at":"2026-06-22T02:32:07.146Z","repository":{"id":79472678,"uuid":"127874491","full_name":"danishabdullah/szgen","owner":"danishabdullah","description":"A generation tool to bootstrap postgrest open-resty (a la subzero cloud) using a simple yaml file describing a model.","archived":false,"fork":false,"pushed_at":"2018-05-17T23:14:12.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T21:32:24.912Z","etag":null,"topics":["generator","modeling","postgresql","postgrest","python3","subzerocloud"],"latest_commit_sha":null,"homepage":"","language":"Python","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/danishabdullah.png","metadata":{"files":{"readme":"readme.md","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}},"created_at":"2018-04-03T08:16:24.000Z","updated_at":"2018-05-17T23:14:13.000Z","dependencies_parsed_at":"2023-02-24T22:30:33.584Z","dependency_job_id":null,"html_url":"https://github.com/danishabdullah/szgen","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"7920bce00a2e9496c175761f5479cbfa9abe7341"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danishabdullah/szgen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danishabdullah%2Fszgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danishabdullah%2Fszgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danishabdullah%2Fszgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danishabdullah%2Fszgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danishabdullah","download_url":"https://codeload.github.com/danishabdullah/szgen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danishabdullah%2Fszgen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34632554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"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":["generator","modeling","postgresql","postgrest","python3","subzerocloud"],"created_at":"2024-12-15T21:15:11.725Z","updated_at":"2026-06-22T02:32:07.131Z","avatar_url":"https://github.com/danishabdullah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### szgen\nA generation tool to bootstrap postgrest open-resty a la subzero cloud.\n\n#### CLI Tool\n```bash\n$ szgen --help\nUsage: szgen [OPTIONS] YAML\n\nOptions:\n  -d, --destination PATH    Destination directory. Default will assume\n                            'output_directory' directory inside the current\n                            working directory\n  -r, --relay / --no-relay  Make `relay` columns and functions. Turned off by\n                            default\n  --help                    Show this message and exit.\n```\n\n\n#### File Specification\n```yaml\n---------------------------------------------------------------------------------\n\ntable_name:\n  enums?: # enums used in this table, an enum definited in one table can be used anywhere else\n    - name: string\n      options: comma,separated,values\n      display_names?: comma,separated,values,in,same,order,as,options\n  domains?:\n    - name: string\n      type: 'bigint' | 'bigserial' | 'bit' | 'bit varying' | 'boolean' | 'box' | 'bytea' |\n            'character' | 'character varying' | 'cidr' | 'circle' | 'date' | 'double precision' |\n            'inet' | 'integer' | 'interval' | 'json' | 'jsonb' | 'line' | 'lseg' |\n            'macaddr' | 'macaddr8' | 'money' | 'numeric' | 'path' | 'pg_lsn' | 'point' |\n            'polygon' | 'real' | 'smallint' | 'smallserial' | 'serial' | 'text' |\n            'time' | 'time with time zone' | 'timestamp' | 'timestamp with time zone' |\n            'tsquery' | 'tsvector' | 'txid_snapshot' | 'uuid' | 'xml' | 'int8' |\n            'serial8' | 'varbit' | 'bool' | 'char' | 'varchar' | 'float8' | 'int4' |\n            'decimal' | 'float4' | 'int2' | 'serial2' | 'serial4' | 'timetz' | 'timestamptz' |\n            'smallint' | 'array' | 'enum defined above'\n      check: check_constraint_string\n  columns:\n    - name: string\n      type: 'bigint' | 'bigserial' | 'bit' | 'bit varying' | 'boolean' | 'box' | 'bytea' |\n            'character' | 'character varying' | 'cidr' | 'circle' | 'date' | 'double precision' |\n            'inet' | 'integer' | 'interval' | 'json' | 'jsonb' | 'line' | 'lseg' |\n            'macaddr' | 'macaddr8' | 'money' | 'numeric' | 'path' | 'pg_lsn' | 'point' |\n            'polygon' | 'real' | 'smallint' | 'smallserial' | 'serial' | 'text' |\n            'time' | 'time with time zone' | 'timestamp' | 'timestamp with time zone' |\n            'tsquery' | 'tsvector' | 'txid_snapshot' | 'uuid' | 'xml' | 'int8' |\n            'serial8' | 'varbit' | 'bool' | 'char' | 'varchar' | 'float8' | 'int4' |\n            'decimal' | 'float4' | 'int2' | 'serial2' | 'serial4' | 'timetz' | 'timestamptz' |\n            'smallint' | 'array' | 'enum defined above' | 'domain defined above'\n      nullable?: false | true\n      primary_key?: true | false\n      default?: sql_string\n      check?: check_constraint_string\n      modifiers?: sql_string\n  foreign_keys?:\n    - name: string\n      type: 'bigint' | 'bigserial' | 'bit' | 'bit varying' | 'boolean' | 'box' | 'bytea' |\n            'character' | 'character varying' | 'cidr' | 'circle' | 'date' | 'double precision' |\n            'inet' | 'integer' | 'interval' | 'json' | 'jsonb' | 'line' | 'lseg' |\n            'macaddr' | 'macaddr8' | 'money' | 'numeric' | 'path' | 'pg_lsn' | 'point' |\n            'polygon' | 'real' | 'smallint' | 'smallserial' | 'serial' | 'text' |\n            'time' | 'time with time zone' | 'timestamp' | 'timestamp with time zone' |\n            'tsquery' | 'tsvector' | 'txid_snapshot' | 'uuid' | 'xml' | 'int8' |\n            'serial8' | 'varbit' | 'bool' | 'char' | 'varchar' | 'float8' | 'int4' |\n            'decimal' | 'float4' | 'int2' | 'serial2' | 'serial4' | 'timetz' | 'timestamptz' |\n            'smallint' | 'array' | 'enum defined above'\n      nullable?: false | true\n      primary_key?: true | false\n      default?: sql_string\n      check?: check_constraint_string\n      modifiers?: sql_string\n      references:\n        table: name_of_table\n        column: name_of_column\n  rls:\n    # row level security is automatically turned off if both read and alter are set to 'all'\n    # row level security is automatically turned off if alter is 'none'\n    # rls `self` depends on `owner_id` column please provide an explicit condition if you reference the user table differently\n    read: \"all\" | \"self\" | sql_condition # assumed 'all' if absent\n    alter: \"all\" | \"self\" | \"none\"  | sql_condition # assumed 'all' if absent\n  api:\n    exclude: comma,separated,names,of,columns # these columns will not be available to the api from this table\n  include:\n    created_at?: true | false # assumed true if absent\n    updated_at?: true | false # assumed true if absent, also sets an automatic trigger based on extension moddate\n  rabbitmq:\n    include: comma,separated,list,of,columns # on every update of row, these columns will be sent in the rabbitmq stream\n\n----------------------------------------------------------------------------------\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanishabdullah%2Fszgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanishabdullah%2Fszgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanishabdullah%2Fszgen/lists"}