Update documents
This commit is contained in:
		
							parent
							
								
									6428d4264f
								
							
						
					
					
						commit
						49efcd81c7
					
				@ -71,7 +71,7 @@ The database handle returned from db.Begin() should be used for all oper">
 | 
			
		||||
    data-chapter-title="Advanced Usage"
 | 
			
		||||
    data-filepath="advanced.md"
 | 
			
		||||
    data-basepath=""
 | 
			
		||||
    data-revision="Sun Feb 28 2016 16:13:20 GMT+0800 (CST)"
 | 
			
		||||
    data-revision="Mon Feb 29 2016 21:35:06 GMT+0800 (CST)"
 | 
			
		||||
    data-innerlanguage="">
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -773,7 +773,7 @@ db<span class="token operator">.</span><span class="token function">SetLogger<sp
 | 
			
		||||
    
 | 
			
		||||
    <script>
 | 
			
		||||
    require(["gitbook"], function(gitbook) {
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/master","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/gh-pages","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
    });
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -70,7 +70,7 @@
 | 
			
		||||
    data-chapter-title="Associations"
 | 
			
		||||
    data-filepath="associations.md"
 | 
			
		||||
    data-basepath=""
 | 
			
		||||
    data-revision="Sun Feb 28 2016 16:13:20 GMT+0800 (CST)"
 | 
			
		||||
    data-revision="Mon Feb 29 2016 21:35:06 GMT+0800 (CST)"
 | 
			
		||||
    data-innerlanguage="">
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -774,7 +774,7 @@ db<span class="token operator">.</span><span class="token function">Model<span c
 | 
			
		||||
    
 | 
			
		||||
    <script>
 | 
			
		||||
    require(["gitbook"], function(gitbook) {
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/master","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/gh-pages","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
    });
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										5
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								build.sh
									
									
									
									
									
								
							@ -1 +1,4 @@
 | 
			
		||||
cd documents; gitbook build; pwd
 | 
			
		||||
cd documents
 | 
			
		||||
gitbook build
 | 
			
		||||
pwd
 | 
			
		||||
cp -r _book/ ..
 | 
			
		||||
 | 
			
		||||
@ -71,7 +71,7 @@ If any callback returns an error, gorm will stop future operations and rollback
 | 
			
		||||
    data-chapter-title="Callbacks"
 | 
			
		||||
    data-filepath="callbacks.md"
 | 
			
		||||
    data-basepath=""
 | 
			
		||||
    data-revision="Sun Feb 28 2016 16:13:20 GMT+0800 (CST)"
 | 
			
		||||
    data-revision="Mon Feb 29 2016 21:35:06 GMT+0800 (CST)"
 | 
			
		||||
    data-innerlanguage="">
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -704,7 +704,7 @@ For this Gorm supports passing transactions to callbacks like this:</p>
 | 
			
		||||
    
 | 
			
		||||
    <script>
 | 
			
		||||
    require(["gitbook"], function(gitbook) {
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/master","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/gh-pages","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
    });
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -70,7 +70,7 @@
 | 
			
		||||
    data-chapter-title="CRUD: Reading and Writing Data"
 | 
			
		||||
    data-filepath="curd.md"
 | 
			
		||||
    data-basepath=""
 | 
			
		||||
    data-revision="Sun Feb 28 2016 16:13:20 GMT+0800 (CST)"
 | 
			
		||||
    data-revision="Mon Feb 29 2016 21:35:06 GMT+0800 (CST)"
 | 
			
		||||
    data-innerlanguage="">
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -1225,7 +1225,7 @@ db<span class="token operator">.</span><span class="token function">Unscoped<spa
 | 
			
		||||
    
 | 
			
		||||
    <script>
 | 
			
		||||
    require(["gitbook"], function(gitbook) {
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/master","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/gh-pages","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
    });
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -70,7 +70,7 @@
 | 
			
		||||
    data-chapter-title="Database"
 | 
			
		||||
    data-filepath="database.md"
 | 
			
		||||
    data-basepath=""
 | 
			
		||||
    data-revision="Sun Feb 28 2016 16:13:20 GMT+0800 (CST)"
 | 
			
		||||
    data-revision="Mon Feb 29 2016 21:35:06 GMT+0800 (CST)"
 | 
			
		||||
    data-innerlanguage="">
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -766,7 +766,7 @@ db<span class="token operator">.</span><span class="token function">Model<span c
 | 
			
		||||
    
 | 
			
		||||
    <script>
 | 
			
		||||
    require(["gitbook"], function(gitbook) {
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/master","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/gh-pages","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
    });
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -70,7 +70,7 @@
 | 
			
		||||
    data-chapter-title="Development"
 | 
			
		||||
    data-filepath="development.md"
 | 
			
		||||
    data-basepath=""
 | 
			
		||||
    data-revision="Sun Feb 28 2016 16:13:20 GMT+0800 (CST)"
 | 
			
		||||
    data-revision="Mon Feb 29 2016 21:35:06 GMT+0800 (CST)"
 | 
			
		||||
    data-innerlanguage="">
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -694,7 +694,7 @@ db.Callback().Create().Before("gorm:create").After("gorm:before_c
 | 
			
		||||
    
 | 
			
		||||
    <script>
 | 
			
		||||
    require(["gitbook"], function(gitbook) {
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/master","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/gh-pages","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
    });
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -17,7 +17,7 @@
 | 
			
		||||
      "url": "https://github.com/jinzhu/gorm"
 | 
			
		||||
    },
 | 
			
		||||
    "edit-link": {
 | 
			
		||||
      "base": "https://github.com/jinzhu/gorm/edit/master",
 | 
			
		||||
      "base": "https://github.com/jinzhu/gorm/edit/gh-pages",
 | 
			
		||||
      "label": "Edit This Page"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -68,7 +68,7 @@
 | 
			
		||||
    data-chapter-title="Getting Started with GORM"
 | 
			
		||||
    data-filepath="README.md"
 | 
			
		||||
    data-basepath=""
 | 
			
		||||
    data-revision="Sun Feb 28 2016 16:13:20 GMT+0800 (CST)"
 | 
			
		||||
    data-revision="Mon Feb 29 2016 21:35:06 GMT+0800 (CST)"
 | 
			
		||||
    data-innerlanguage="">
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -691,7 +691,7 @@
 | 
			
		||||
    
 | 
			
		||||
    <script>
 | 
			
		||||
    require(["gitbook"], function(gitbook) {
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/master","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/gh-pages","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
    });
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -70,7 +70,7 @@
 | 
			
		||||
    data-chapter-title="Models"
 | 
			
		||||
    data-filepath="models.md"
 | 
			
		||||
    data-basepath=""
 | 
			
		||||
    data-revision="Sun Feb 28 2016 16:13:20 GMT+0800 (CST)"
 | 
			
		||||
    data-revision="Mon Feb 29 2016 21:35:06 GMT+0800 (CST)"
 | 
			
		||||
    data-innerlanguage="">
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
@ -734,7 +734,7 @@ db<span class="token operator">.</span><span class="token function">Model<span c
 | 
			
		||||
    
 | 
			
		||||
    <script>
 | 
			
		||||
    require(["gitbook"], function(gitbook) {
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/master","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
        gitbook.start({"fontsettings":{"theme":"night","family":"sans","size":4},"toc":{"addClass":true,"className":"toc"},"github":{"url":"https://github.com/jinzhu/gorm"},"edit-link":{"base":"https://github.com/jinzhu/gorm/edit/gh-pages","label":"Edit This Page"},"prism":{},"anker-enable":{},"search":{"maxIndexSize":1000000},"sharing":{"all":["facebook","google","instapaper","twitter","weibo"],"facebook":true,"google":false,"instapaper":false,"twitter":true,"vk":false,"weibo":false},"theme-default":{"styles":{"ebook":"styles/ebook.css","epub":"styles/epub.css","mobi":"styles/mobi.css","pdf":"styles/pdf.css","print":"styles/print.css","website":"styles/website.css"}}});
 | 
			
		||||
    });
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user