{"repo":"go-pg/pg","free":true,"listed":false,"github":"https://github.com/go-pg/pg","clone":"git clone https://github.com/go-pg/pg.git","description":"Golang ORM with focus on PostgreSQL features and performance","language":"Go","stars":5785,"topics":["go","golang","orm","sql","hstore","postgresql","jsonb","database"],"license":"BSD-2-Clause","category":"databases-storage","readme_excerpt":"PostgreSQL client and ORM for Golang Maintenance mode go-pg is in a maintenance mode and only critical issues are addressed. New development happens in Bun repo which offers similar functionality but works with PostgreSQL, MySQL, MariaDB, and SQLite. Golang ORM --- - Documentation - Reference - Examples - Example projects: - monetr - budgeting application focused on planning for recurring expenses - bunrouter - gin - go-kit - aah framework Tutorials - GraphQL Tutorial on YouTube. - Modern API design with Golang, PostgreSQL and Docker Ecosystem - Migrations by vmihailenco and robinjoseph08. - Genna - cli tool for generating go-pg models. - bigint - big.Int type for go-pg. - urlstruct to decode url.Values into structs. - Sharding. - go-pg-monitor - Prometheus metrics based on go-pg client stats. Features - Basic types: integers, floats, string, bool, time.Time, net.IP, net.IPNet. - sql.NullBool, sql.NullString, sql.NullInt64, sql.NullFloat64 and pg.NullTime. - sql.Scanner and sql/driver.Valuer interfaces. - Structs, maps and arrays are marshalled as JSON by default. - PostgreSQL multidimensional Arrays using array tag and Array wrapper. - Hstore using hstore tag and Hstore wrapper. - Composite types. - All struct fields are nullable by default and zero values (empty string, 0, zero time, empty map or slice, nil ptr) are marshalled as SQL NULL . pg:\",notnull\" is used to add SQL NOT NULL constraint and pg:\",use zero\" to allow Go zero values. - Transactions. - Prepared statements.","default_branch":null,"files":null,"tree":[],"storefront":"/r/go-pg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/go-pg/pg/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}