58 Commits

Author SHA1 Message Date
DinoLai
fcf4c8b569 fix markdown code highlight 2017-11-17 23:30:16 +08:00
DinoLai
f6165b2dc2 fix typo in crud.md: add lost double quotation 2017-11-17 23:19:33 +08:00
DinoLai
7dbde463ea fix typo in models.md 2017-11-15 23:48:50 +08:00
Jinzhu
b50377d9be Add example for SubQuery 2017-10-18 18:41:08 +08:00
Nafis Faysal
64cfa2d425 Update database.md (#1639)
Add missing ` key on line 131 Drop table `users`
2017-10-14 22:04:17 -05:00
Jinzhu
a659f3442b Link to SQL Server Go Tutorials 2017-06-11 20:45:35 +08:00
Semih Tok
d453161737 Typo fix in "advanced" document
Little typo (character missing) fixed.
2017-05-16 10:22:01 +03:00
Jon Hester
53a1518437 fix typo in crud 2017-04-09 10:52:27 -04:00
Jinzhu
7341d7e101 Merge pull request #1403 from liubin/patch-1
Add lost backslash
2017-03-28 10:03:31 +08:00
Wenchao Hu
6f9aafa106 fix a wrong sql
`time.Now` is a function, it should be `time.Now()`
2017-03-27 22:35:58 +08:00
Bin Liu
5514c29b9b Add lost backslash
Format is broken without the three backslasees
2017-03-27 22:12:23 +08:00
Jinzhu
93834ebf2e Update 2017-03-23 00:16:10 +08:00
Grégoire Molveau
7c5ec07522 Add back-reference example to many-to-many doc 2017-03-17 17:20:23 +08:00
Joe Ferrucci
4b4b6b8a42 Clarification
Clarify when `UpdatedAt` is updated.
2017-01-22 11:35:34 -08:00
Joe Ferrucci
08c6a5ad0b Update models.md
Incorrect syntax.
2017-01-22 09:04:40 -08:00
Jinzhu
84fe98b1d6 Update doc 2017-01-16 23:35:00 +08:00
Xavier Coulon
3bfe600c82 Clarification on DB.First(...) method
Documenting the limitation on the `func (s *DB) First(out interface{}, where ...interface{}) *DB` method where the column name is optional if the primary key is numeric. In other cases, the name of the column must be provided.
2017-01-16 15:50:47 +01:00
Jinzhu
0846f2636a Merge pull request #1294 from mehdy/patch-1
associations.md: updated association fields type
2017-01-13 10:57:10 +08:00
Nikola Kovacs
1fec745f54 Fix typo in documentation 2017-01-05 10:37:37 +01:00
Jinzhu
aa47843d25 Fix page building error on github 2017-01-02 22:09:54 +08:00
Jinzhu
5945e2bab2 Fix page building error on github 2017-01-02 22:08:09 +08:00
Jinzhu
7bad00961a Update how to write documents 2017-01-02 22:02:51 +08:00
Jinzhu
5e5a9792ac Update documents 2017-01-02 21:56:33 +08:00
Jinzhu
cb1e720803 Fix link 2017-01-02 20:58:41 +08:00
Kévin Dunglas
b530757c9f Docs: add a missing backtick 2017-01-01 17:18:39 +01:00
mehdy
15605750d3 associations.md: updated association fields type
AssociationForeignKey must be the same type of ForeignKey
ForeignKey is better to be uint as gorm.Model.ID is uint
2016-12-30 12:06:57 +03:30
Jinzhu
e9fdbc2c2e Update documents 2016-10-27 12:30:00 +08:00
Mark Platt
64327f1fc2 Change "GROM" to "GORM"
That's it. Just a typo.
2016-10-20 22:18:09 -04:00
Jinzhu
cf583c7d56 Merge pull request #1216 from naokij/patch-1
Update associations.md
2016-10-19 10:22:34 +08:00
Andrey Deryabin
1273d39feb
fix typo 2016-10-10 11:59:43 +03:00
Jiang Le
00171b6f97 Update associations.md
Many to many association
should use
```
db.Model(&user).Related(&languages, "Languages") 
```
instead of
```
db.Model(&user).Related(&languages)
```
http://stackoverflow.com/questions/34667199/gorm-many-to-many-select-gives-invalid-association-error
2016-10-10 16:31:00 +08:00
Tobias Kaupat
47700ae2d2 Update models.md
Document DefaultTableNameHandler
2016-08-16 10:48:46 +02:00
☃ Dmitry (◕ᴥ◕)
96e1033335 Fix typos 2016-08-01 20:48:08 +09:00
jeff martinez
915f2c5061 Add db.Close() examples to documentation 2016-07-18 14:03:08 -07:00
Michael Storgaard
fa52e545f7 Fix typo in primary key section of docs 2016-07-01 16:46:56 +02:00
Andy Ruland
a11f3de60d Added valid postgres connect string with host and password 2016-05-04 12:25:08 +04:00
Ezra Gildesgame
df2e5ce0bd Create initial schema. 2016-04-29 12:00:44 -04:00
Jinzhu
01f571cb77 Update 2016-03-28 10:40:33 +08:00
Jinzhu
e0cc1afd91 Update Pages 2016-03-23 07:34:22 +08:00
Bryan Crowe
9e61285c9c Clean up database docs 2016-03-18 12:06:34 -04:00
Pete Morgan
b6d8e1c101 Explain chaining a bit more 2016-03-09 13:01:22 +00:00
Denis Eliseev
74d5ac58e2 Fix gorm.Open dialect
Fix gorm.Open dialect from 'sqlite' to 'sqlite3'
2016-03-09 17:44:53 +05:00
Bryan Crowe
5ca3a5bfae Fix definition spelling 2016-03-08 19:41:04 -05:00
Jinzhu
01a436c35c Fix documents 2016-03-09 07:36:34 +08:00
Jinzhu
1089f6be30 Update documents 2016-03-08 23:15:08 +08:00
Jinzhu
87fefe0c35 Rebuild 2016-03-08 12:18:56 +08:00
Jinzhu
5483a097fd Update documents 2016-03-08 12:14:16 +08:00
Jinzhu
a4a7cad6ee Update document 2016-03-08 11:59:56 +08:00
Jinzhu
187b23c091 Update advanced document 2016-03-08 09:58:31 +08:00
Jinzhu
0a92f14d87 Update callback document 2016-03-08 09:51:34 +08:00