{"id":16068389,"url":"https://github.com/unicodeveloper/psql-cheatsheet","last_synced_at":"2025-10-22T14:30:42.528Z","repository":{"id":87984532,"uuid":"44949010","full_name":"unicodeveloper/psql-cheatsheet","owner":"unicodeveloper","description":"Postgresql psql cheatsheet","archived":false,"fork":false,"pushed_at":"2015-10-26T06:22:20.000Z","size":344,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-16T06:56:44.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/unicodeveloper.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}},"created_at":"2015-10-26T05:58:14.000Z","updated_at":"2022-04-02T05:30:23.000Z","dependencies_parsed_at":"2023-03-07T07:52:36.343Z","dependency_job_id":null,"html_url":"https://github.com/unicodeveloper/psql-cheatsheet","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/unicodeveloper%2Fpsql-cheatsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Fpsql-cheatsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Fpsql-cheatsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unicodeveloper%2Fpsql-cheatsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unicodeveloper","download_url":"https://codeload.github.com/unicodeveloper/psql-cheatsheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237698016,"owners_count":19352380,"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":[],"created_at":"2024-10-09T06:20:58.210Z","updated_at":"2025-10-22T14:30:37.208Z","avatar_url":"https://github.com/unicodeveloper.png","language":null,"readme":"# psql-cheatsheet\n\nPsql cheatsheet\n\n* **\\l or \\list** - List all databases\n* **\\c or \\connect db_name** - Connect to a particular database\n* **use db_name** - Connect or use a particular database\n* **\\dt** - List all the tables in a particular database\n* **DROP schema public cascade;** - Drop all tables in the database\n* **CREATE SCHEMA public;** - Creates the schema in the database. Run this after dropping all the tables using the command above this.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Fpsql-cheatsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funicodeveloper%2Fpsql-cheatsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funicodeveloper%2Fpsql-cheatsheet/lists"}