{"repo":"azer/crud","free":true,"listed":false,"github":"https://github.com/azer/crud","clone":"git clone https://github.com/azer/crud.git","description":"Relational database library for SQL databases & Go.","language":"Go","stars":320,"topics":["golang","database","mysql","orm","sql"],"license":"MIT","category":"databases-storage","readme_excerpt":"CRUD Lightweight, simple relational database library for Go. Supports PostgreSQL and MySQL. Table of Contents - Install - Initialize - Define - Create - CreateAndRead - Read - Reading multiple rows: - Scanning to custom values: - Update - Delete - Contexts - Transactions - Logs - Custom Queries - What's Missing? - LICENSE Install Initialize Define CRUD will automatically convert column names from \"FirstName\" (CamelCase) to \"first name\" (snake case) for you. You can still choose custom names though; If no primary key is specified, CRUD will look for a field named \"Id\" with int type, and set it as auto-incrementing primary-key field. Create & Drop Tables CreateTables takes list of structs and makes sure they exist in the database. Reset Tables Shortcut for dropping and creating tables. SQL Options CRUD tries to be smart about figuring out the best SQL options for your structs, and lets you choose manually, too. For example; Above example sets the type of the Text column as varchar(140) , makes it required ( NOT NULL ) and changes the column name as tweet . Here is the list of the options that you can pass; Types: int , bigint , varchar , text , date , time , timestamp auto-increment / autoincrement / auto increment primary-key / primarykey / primary key required default='?' name=? table-name=? If you'd like a struct field to be ignored by CRUD, choose - as options: Create Simply pass a struct. It can be pointer or not. CreateAndRead Create a row, and read it back from the DB. T","default_branch":null,"files":null,"tree":[],"storefront":"/r/azer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/azer/crud/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."}