{"id":21605508,"url":"https://github.com/l004p/3005-assignment-03","last_synced_at":"2026-05-11T16:36:38.154Z","repository":{"id":228492511,"uuid":"767764500","full_name":"l004p/3005-assignment-03","owner":"l004p","description":"COMP 3005 assignment 3 (question 1)","archived":false,"fork":false,"pushed_at":"2024-03-19T01:21:08.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T14:47:04.385Z","etag":null,"topics":["cobra","go","postgresql","sqlc"],"latest_commit_sha":null,"homepage":"","language":"Go","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/l004p.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}},"created_at":"2024-03-05T21:25:23.000Z","updated_at":"2024-03-26T00:14:03.000Z","dependencies_parsed_at":"2024-03-19T03:31:18.106Z","dependency_job_id":"d30d08b9-9dd7-49af-9512-0eb0ab8623d1","html_url":"https://github.com/l004p/3005-assignment-03","commit_stats":null,"previous_names":["l004p/3005-assignment-03"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/l004p/3005-assignment-03","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l004p%2F3005-assignment-03","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l004p%2F3005-assignment-03/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l004p%2F3005-assignment-03/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l004p%2F3005-assignment-03/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/l004p","download_url":"https://codeload.github.com/l004p/3005-assignment-03/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/l004p%2F3005-assignment-03/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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":["cobra","go","postgresql","sqlc"],"created_at":"2024-11-24T20:14:42.116Z","updated_at":"2026-05-11T16:36:38.134Z","avatar_url":"https://github.com/l004p.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 3005 Assignment 3 Question 1\n\nThis project was created for COMP 3005: Database Management Systems in order to work with connecting to PostgreSQL and implement basic CRUD commands.\n\nIt is created with [Golang](https://go.dev), [Cobra](https://github.com/spf13/cobra), and [sqlc](https://github.com/sqlc-dev/sqlc).\n\nWatch the video demo [here](https://youtu.be/6IBSIobI0Og)\n\n## About the folders\n\n**sql:** Where the SQL lives. This includes the database schema, the provided information to populate the database, and the queries I wrote. \n\n**cmd:** Where the commands live. Root is the root command. The other commands are the respective CRUD operations as outlined by the assignment specs.\n\n**db:** I used sqlc to generate Go code from my hand written SQL queries. Any code generated with the tool lives here.\n\n## Running the code\n\n(This assumes you have Go setup)\n\n1. Create a `.env` file at the root of the directory. Put your own postgres URI into this .env with `DATABASE_URL=\"your-uri\"`\n\n2. Run `go mod tidy` to install dependencies.\n\n3. Run `go run main.go [command] [args]` to compile and run the code in one step, or compile the code seperately with `go build`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl004p%2F3005-assignment-03","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fl004p%2F3005-assignment-03","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fl004p%2F3005-assignment-03/lists"}