Antoine Pelisse 182e411a64 sqlite3: Never set primary key in-line
Never set the primary key flag as part of the column definition. When
using sqlite3, this prevents mixed int/other type composite primary
key (because the int column always wins and get the index for itself).

Rather, let's just set the primary key at the end, whether it's composite
or not. Note that the int key will automatically be AUTOINCREMENT if
its type is "integer". For that reason, always use that type, rather
than "bigint", as bigint maps to "integer" eventually anyway.
2017-03-24 15:13:44 -07:00
2017-03-22 23:50:42 +08:00
2015-08-22 08:46:46 +08:00
2016-02-29 22:06:15 +08:00
2016-03-08 22:00:15 +08:00
2014-08-28 16:14:44 +08:00
2017-03-22 23:50:42 +08:00
2016-03-07 17:49:55 +08:00
2017-03-22 23:50:42 +08:00
2015-01-05 08:59:18 +08:00
2017-02-10 16:50:55 +08:00
2017-03-22 23:50:42 +08:00
2017-03-22 23:50:42 +08:00
2017-02-06 08:43:49 +08:00
2016-03-08 22:00:15 +08:00
2016-01-15 21:16:48 +08:00
2017-03-22 23:50:42 +08:00
2017-03-22 23:50:42 +08:00
2017-03-22 23:50:42 +08:00
2015-03-12 15:50:38 +08:00
2017-03-22 23:50:42 +08:00
2016-02-20 23:34:33 +08:00

GORM

The fantastic ORM library for Golang, aims to be developer friendly.

Join the chat at https://gitter.im/jinzhu/gorm wercker status GoDoc

Overview

  • Full-Featured ORM (almost)
  • Associations (Has One, Has Many, Belongs To, Many To Many, Polymorphism)
  • Callbacks (Before/After Create/Save/Update/Delete/Find)
  • Preloading (eager loading)
  • Transactions
  • Composite Primary Key
  • SQL Builder
  • Auto Migrations
  • Logger
  • Extendable, write Plugins based on GORM callbacks
  • Every feature comes with tests
  • Developer Friendly

Getting Started

Upgrading To V1.0

Supporting the project

http://patreon.com/jinzhu

Author

jinzhu

Contributors

https://github.com/jinzhu/gorm/graphs/contributors

License

Released under the MIT License.

Description
The fantastic ORM library for Golang, aims to be developer friendly
Readme
Languages
Go 99.9%
Shell 0.1%