72 Commits

Author SHA1 Message Date
Sergey Bronnikov
b308dca8df
Typo 2018-02-24 18:52:24 +03:00
Jinzhu
11af2affe8 Update document, close #1425 2018-02-13 08:42:40 +08:00
Jinzhu
4df56744d0 Add error check for transaction 2018-02-12 14:28:47 +08:00
Jinzhu
ff8709dec7 Document Auto Preload 2018-02-12 11:03:26 +08:00
Jinzhu
3b0f7c4d97 Update documents 2018-02-12 10:34:53 +08:00
Jinzhu
566451f9df Update 2018-02-12 10:15:57 +08:00
Jinzhu
1cc132d14f Update documents 2018-02-12 10:10:55 +08:00
Jinzhu
831e406d8b Update associations 2018-02-10 22:21:46 +08:00
Jinzhu
523201c88a Update associations 2018-02-10 22:03:30 +08:00
Jinzhu
a96b40a248 Update doc for self-reference m2m 2018-02-10 21:58:20 +08:00
Jinzhu
e63dd6fb34 Update for associations 2018-02-10 17:59:51 +08:00
Jinzhu
870443750c Update templates 2018-02-09 08:20:19 +08:00
Adrian Heng
792b9b3547 add section on Dialects to the documentation. For now, it only has info on PostgreSQL, but this can be extended later to include information on the other supported dialects. (#1759) 2018-02-09 08:10:47 +08:00
Jonas Droste
4be4b87efb remove sslmode=disable from postgresql (#1748)
remove sslmode=disable from postgresql which leads to unsafe copy and paste situations
2018-02-04 08:22:52 +08:00
PapEr
62721e0dda add port in PostgreSQL connection example (#1652) 2018-01-31 17:09:24 +08:00
Sergey Lanzman
04dd90a8da "if" in golang style (#1679) 2018-01-31 17:06:57 +08:00
DinoLai
d2dfb7d0fb fix some typos in documents (#1680)
* fix typo in models.md

* fix typo in crud.md: add lost double quotation

* fix markdown code highlight

* fix misunderstanding
2018-01-31 17:06:24 +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