{"repo":"phogolabs/orm","free":true,"listed":false,"github":"https://github.com/phogolabs/orm","clone":"git clone https://github.com/phogolabs/orm.git","description":"Golang Query Executor and Database Connector","language":"Go","stars":10,"topics":["golang","orm","sql","migration"],"license":"MIT","category":"databases-storage","readme_excerpt":"ORM [![Documentation][godoc-img]][godoc-url] ![License][license-img] [![Build Status][action-img]][action-url] [![Coverage][codecov-img]][codecov-url] [![Go Report Card][report-img]][report-url] The package facilitates execution of SQL scripts generated by [prana][prana-url]. Also it provides a query builder and object relation mapper. Note that it is in BETA. We may introduce breaking changes until we reach version 1.0. [![ORM][orm-img]][orm-url] Installation Getting Started Let's first import all required packages: and then establish the connection: SQL Migrations You can execute the migration generated by [prana][prana-url]. For that you have to use either [embed][embed-url] package or [os][os-url] package. SQL Queries The package provides a way to work with embeddable SQL scripts. It understands predefined files with SQL Scripts. It executes them as standard SQL queries. Let's define a SQL routines named insert-user and select-all-users : Then you can execute the desired script by just passing its name: Also you can execute raw SQL Scripts from your code: Example You can check our Getting Started Example. For more information, how you can change the default behavior you can read the help documentation by executing: Contributing We are open for any contributions. Just fork the project. logo made by [Free Pik][logo-author-url] [report-img]: https://goreportcard.com/badge/github.com/phogolabs/orm [report-url]: https://goreportcard.com/report/github.com/phogolabs/orm [logo-au","default_branch":null,"files":null,"tree":[],"storefront":"/r/phogolabs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/phogolabs/orm/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."}