{"id":24755350,"url":"https://github.com/lukaofirst/learning-gorm","last_synced_at":"2026-05-03T13:34:47.267Z","repository":{"id":274185865,"uuid":"918759085","full_name":"lukaofirst/learning-gorm","owner":"lukaofirst","description":"This repository contains all my practices and lessons about GORM - the ORM for Go","archived":false,"fork":false,"pushed_at":"2025-01-25T14:03:56.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T15:18:18.539Z","etag":null,"topics":["filtering","go","golang","gorm","gorm-orm","many-to-many","one-to-many","one-to-one","ordering","paging","relationships","sorting","transaction"],"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/lukaofirst.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":"2025-01-18T19:26:10.000Z","updated_at":"2025-01-25T14:04:00.000Z","dependencies_parsed_at":"2025-01-25T15:18:41.287Z","dependency_job_id":"e49d8b3d-591f-4369-9cfa-64c7a49b073f","html_url":"https://github.com/lukaofirst/learning-gorm","commit_stats":null,"previous_names":["lukaofirst/learning-gorm"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaofirst%2Flearning-gorm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaofirst%2Flearning-gorm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaofirst%2Flearning-gorm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukaofirst%2Flearning-gorm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukaofirst","download_url":"https://codeload.github.com/lukaofirst/learning-gorm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061376,"owners_count":20554563,"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":["filtering","go","golang","gorm","gorm-orm","many-to-many","one-to-many","one-to-one","ordering","paging","relationships","sorting","transaction"],"created_at":"2025-01-28T12:38:50.384Z","updated_at":"2026-05-03T13:34:42.247Z","avatar_url":"https://github.com/lukaofirst.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning GORM 📚\n\n## Overview 🌟\n\nThis project demonstrates various concepts and functionalities of the GORM package in Go.\n\n## GORM Basics 🛠️\n\nGORM is an ORM (Object Relational Mapping) for Go, used to query and execute commands to a relational database. It's the equivalent of Entity Framework Core from .NET.\n\n### Key Packages 📦\n\n-   **GORM package**: `go get -u gorm.io/gorm`\n-   **SQL Server**: `go get -u gorm.io/driver/sqlserver`\n-   **SQLite**: `go get -u gorm.io/driver/sqlite`\n-   **PostgreSQL**: `go get -u gorm.io/driver/postgres`\n-   **MySQL**: `go get -u gorm.io/driver/mysql`\n\n## CRUD Operations 🔄\n\n-   **Create**: Add new records to the database.\n-   **Read**: Retrieve records from the database.\n-   **Update**: Modify existing records in the database.\n-   **Delete**: Remove records from the database.\n\n## Relationships 🔗\n\n-   **One-to-One**: A single record in one table is related to a single record in another table.\n-   **One-to-Many**: A single record in one table is related to multiple records in another table.\n-   **Many-to-Many**: Multiple records in one table are related to multiple records in another table.\n\n## Transactions 🔒\n\nExecuting database operations within a transaction to ensure data integrity.\n\n## Raw SQL and ToSQL 📝\n\n-   **Raw SQL**: Executing raw SQL queries directly.\n-   **ToSQL**: Generating SQL from GORM queries.\n\n## Views 👁️\n\nCreating and querying database views to simplify complex queries.\n\n## Stored Procedures 📜\n\nCreating and executing stored procedures for reusable database logic.\n\n## Paging, Filtering, Searching, and Ordering 🔍\n\nImplementing pagination, filtering, searching, and ordering in queries to manage large datasets efficiently.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukaofirst%2Flearning-gorm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukaofirst%2Flearning-gorm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukaofirst%2Flearning-gorm/lists"}