{"id":16887574,"url":"https://github.com/alicebob/schemaspy","last_synced_at":"2025-04-11T12:40:47.227Z","repository":{"id":57605879,"uuid":"81642758","full_name":"alicebob/schemaspy","owner":"alicebob","description":"Read Postgres schema definitions in Go.","archived":false,"fork":false,"pushed_at":"2017-02-27T17:03:04.000Z","size":19,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T19:29:58.964Z","etag":null,"topics":["database","go","postgresql","schema"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alicebob.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}},"created_at":"2017-02-11T09:17:36.000Z","updated_at":"2019-03-05T07:10:12.000Z","dependencies_parsed_at":"2022-09-26T20:01:57.551Z","dependency_job_id":null,"html_url":"https://github.com/alicebob/schemaspy","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/alicebob%2Fschemaspy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alicebob%2Fschemaspy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alicebob%2Fschemaspy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alicebob%2Fschemaspy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alicebob","download_url":"https://codeload.github.com/alicebob/schemaspy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248402525,"owners_count":21097330,"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","go","postgresql","schema"],"created_at":"2024-10-13T16:45:05.274Z","updated_at":"2025-04-11T12:40:46.808Z","avatar_url":"https://github.com/alicebob.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What\n\nSchemaspy gets a schema from a PostgreSQL server as a simple Go datastructure.\nIt describes which tables there are, their columns, \u0026c. Schemaspy only reads; any changes to the database need to be done by\nother means, such as `ALTER TABLE`.\n\n# Use cases\n\nhow this is used:\n\n- a maintenance script which creates and archives partitioned tables. It needs to know which tables are there already, and which need to be created or have an outdated definition.\n- to compare on deployment the current database (as returned by schemaspy) against the wanted state, so the deploy process can warn about missing database changes.\n\n# Test\n\nThe tests need access to a PostgreSQL server, with a database `schemaspy`:\n\n    # su  -c \"createuser -DRS yourusername\" postgres\n    # su  -c \"createdb -O yourusername schemaspy\" postgres\n    $ make int\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falicebob%2Fschemaspy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falicebob%2Fschemaspy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falicebob%2Fschemaspy/lists"}