Skip to content

gobuffalo/pop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6c1d2c2 · Oct 5, 2019
Aug 29, 2018
Jun 26, 2019
Aug 27, 2019
Aug 28, 2019
Oct 5, 2019
Aug 28, 2019
Sep 6, 2018
Mar 18, 2019
Aug 26, 2019
Oct 5, 2019
Jun 26, 2019
Oct 5, 2019
Jun 26, 2019
Nov 17, 2018
Aug 27, 2019
Aug 27, 2019
Aug 9, 2018
Aug 29, 2018
Feb 2, 2016
Aug 25, 2019
Mar 18, 2019
Aug 25, 2019
Sep 19, 2019
Mar 18, 2019
Dec 7, 2018
Jun 3, 2019
Sep 30, 2018
Mar 7, 2019
Apr 4, 2019
Jun 3, 2019
Oct 29, 2018
Aug 7, 2018
Sep 19, 2019
Jun 7, 2019
Aug 25, 2019
Aug 25, 2019
Sep 19, 2019
Jun 3, 2019
Mar 18, 2019
Jun 16, 2018
Aug 25, 2019
Aug 15, 2019
Sep 19, 2019
Aug 25, 2019
Aug 15, 2019
Mar 3, 2019
Aug 15, 2019
Feb 17, 2019
Aug 15, 2019
Jun 3, 2019
Jun 3, 2019
Oct 20, 2018
Jun 16, 2018
Jun 16, 2018
Oct 2, 2019
Oct 2, 2019
Sep 19, 2019
Jun 4, 2019
Jun 3, 2019
Oct 29, 2018
Oct 29, 2018
Oct 29, 2018
Jun 14, 2019
Nov 3, 2018
Jun 25, 2019
Jun 25, 2019
Aug 25, 2019
Jul 3, 2019
Jun 3, 2019
Jul 3, 2019
Apr 4, 2019
Apr 4, 2019
Aug 15, 2019
Jul 14, 2019
Jun 3, 2019
Jun 14, 2019
Nov 24, 2018
Jun 3, 2019
Nov 7, 2018
Aug 7, 2018
Aug 7, 2018
Jun 14, 2019
Jun 3, 2019
Nov 28, 2018
Nov 28, 2018
Jun 16, 2018
Jun 3, 2019
Aug 19, 2018
Oct 29, 2018
Jun 16, 2018
Jun 3, 2019
Jun 11, 2018
Apr 4, 2019

Repository files navigation

GoDoc Build Status

POP

A Tasty Treat For All Your Database Needs

So what does Pop do exactly? Well, it wraps the absolutely amazing https://github.com/jmoiron/sqlx library. It cleans up some of the common patterns and work flows usually associated with dealing with databases in Go.

Pop makes it easy to do CRUD operations, run migrations, and build/execute queries.

Pop, by default, follows conventions that were influenced by the ActiveRecord Ruby gem. What does this mean?

  • Tables must have an "id" column and a corresponding "ID" field on the struct being used.
  • If there is a timestamp column named created_at, and a CreatedAt time.Time attribute on the struct, it will be set with the current time when the record is created.
  • If there is a timestamp column named updated_at, and a UpdatedAt time.Time attribute on the struct, it will be set with the current time when the record is updated.
  • Default database table names are lowercase, plural, and underscored versions of the struct name. Examples: User{} is "users", FooBar{} is "foo_bars", etc...

Want to know more? Take a look at the documentation!

Documentation

Please visit http://gobuffalo.io for the latest documentation, examples, and more.

Quick Start

Shoulders of Giants

Pop would not be possible if not for all of the great projects it depends on. Please see SHOULDERS.md to see a list of them.

Contributing

First, thank you so much for wanting to contribute! It means so much that you care enough to want to contribute. We appreciate every PR from the smallest of typos to the be biggest of features.

To contribute, please read the contribution guidelines: CONTRIBUTING