{"id":17672995,"url":"https://github.com/timowest12/pgcommands","last_synced_at":"2026-02-04T17:32:40.762Z","repository":{"id":227726969,"uuid":"772256197","full_name":"Timowest12/pgcommands","owner":"Timowest12","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-18T18:55:12.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T03:05:41.082Z","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/Timowest12.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-14T20:44:56.000Z","updated_at":"2024-03-14T20:44:57.000Z","dependencies_parsed_at":"2024-03-18T20:16:21.202Z","dependency_job_id":"59106c9d-3ca5-4ca1-8a1c-b35efa3a41c6","html_url":"https://github.com/Timowest12/pgcommands","commit_stats":null,"previous_names":["timowest12/pgcommands"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Timowest12/pgcommands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timowest12%2Fpgcommands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timowest12%2Fpgcommands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timowest12%2Fpgcommands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timowest12%2Fpgcommands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Timowest12","download_url":"https://codeload.github.com/Timowest12/pgcommands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Timowest12%2Fpgcommands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29091859,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T03:31:03.593Z","status":"ssl_error","status_checked_at":"2026-02-04T03:29:50.742Z","response_time":62,"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":[],"created_at":"2024-10-24T04:24:34.805Z","updated_at":"2026-02-04T17:32:40.740Z","avatar_url":"https://github.com/Timowest12.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## Project Commands Collection\n\n### Instant command\n\n###### setup, run initiate master and map port\n\tdocker run --name instance-name -e POSTGRES_PASSWORD=secretpassword -p 5432:5432 -d postgres\n\n### Docker Commands\n\n###### Pull PostgreSQL Image\n\tdocker pull postgres\n\n###### Run PostgreSQL Container\n\tdocker run --name instance-name -e POSTGRES_PASSWORD=secretpassword -d postgres\n\n###### Bash into PostgreSQL Container\n\tdocker exec -it instance-name bash\n\n### PostgreSQL Commands\n\n###### Log into PostgreSQL(need to be in container)\n\tpsql -U postgres\n\n###### List All PostgreSQL Users\n\t\\du\n\n###### Create User with Password\n\tCREATE USER username WITH PASSWORD 'secretpassword';\n\n###### Create User that Expires at Certain Moment\n\tCREATE USER name WITH PASSWORD 'secretpassword' VALID UNTIL '2005-01-01';\n\n###### Drop a user\n\tDROP USER IF EXISTS username;\n\n###### Create a Schema\n\tCREATE SCHEMA IF NOT EXISTS schemaname;\n\n###### Drop a Schema\n\tDROP SCHEMA IF EXISTS schemaname;\n\n###### List all schemas\n\tselect nspname from pg_catalog.pg_namespace;\n \n###### Create table\n\tCREATE TABLE test (\n\t\tid text,\n\t\tname text\n \t)\n\n###### INSERT\n\tINSERT INTO test (id,name) VALUES ('2','name')\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimowest12%2Fpgcommands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimowest12%2Fpgcommands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimowest12%2Fpgcommands/lists"}