diff --git a/404.html b/404.html
index 213884f2728..dda81e64d08 100644
--- a/404.html
+++ b/404.html
@@ -32,8 +32,8 @@
-
-
+
+
diff --git a/ar_SA/index.html b/ar_SA/index.html
index 6c6d6ba9bd2..5920d002236 100644
--- a/ar_SA/index.html
+++ b/ar_SA/index.html
@@ -56,8 +56,8 @@
-
-
+
+
diff --git a/az_AZ/404.html b/az_AZ/404.html
index 21e0c0040f2..e756d414eb6 100644
--- a/az_AZ/404.html
+++ b/az_AZ/404.html
@@ -32,8 +32,8 @@
-
-
+
+
diff --git a/az_AZ/index.html b/az_AZ/index.html
index e453115f386..25b61651c90 100644
--- a/az_AZ/index.html
+++ b/az_AZ/index.html
@@ -56,8 +56,8 @@
-
-
+
+
diff --git a/community.html b/community.html
index bc31243efce..e6a925ca66d 100644
--- a/community.html
+++ b/community.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -184,7 +184,7 @@
type User struct { ID string `gorm:"default:uuid_generate_v3()"` FirstName string LastName string Age uint8 FullName string `gorm:"->;type:GENERATED ALWAYS AS (concat(firstname,' ',lastname));default:(-);"` }
+NOTE SQLite doesn’t support some records are default values when batch insert. See SQLite Insert stmt . For example:
+type Pet struct { Name string `gorm:"default:cat"` } db.Create(&[]Pet{{Name: "dog" }, {}})
+A viable alternative is to assign default value to fields in the hook, e.g.
+func (p *Pet) BeforeCreate(tx *gorm.DB) (err error ) { if p.Name == "" { p.Name = "cat" } }
+
+You can see more info in issues#6335
+
+
When using virtual/generated value, you might need to disable its creating/updating permission, check out Field-Level Permission
Upsert / On Conflict GORM provides compatible Upsert support for different databases
import "gorm.io/gorm/clause" db.Clauses(clause.OnConflict{DoNothing: true }).Create(&user) db.Clauses(clause.OnConflict{ Columns: []clause.Column{{Name: "id" }}, DoUpdates: clause.Assignments(map [string ]interface {}{"role" : "user" }), }).Create(&users) db.Clauses(clause.OnConflict{ Columns: []clause.Column{{Name: "id" }}, DoUpdates: clause.Assignments(map [string ]interface {}{"count" : gorm.Expr("GREATEST(count, VALUES(count))" )}), }).Create(&users) db.Clauses(clause.OnConflict{ Columns: []clause.Column{{Name: "id" }}, DoUpdates: clause.AssignmentColumns([]string {"name" , "age" }), }).Create(&users) db.Clauses(clause.OnConflict{ UpdateAll: true , }).Create(&users)
@@ -220,7 +228,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/data_types.html b/docs/data_types.html
index b506b3c50ac..b890a62d026 100644
--- a/docs/data_types.html
+++ b/docs/data_types.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -189,7 +189,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/dbresolver.html b/docs/dbresolver.html
index 909dbeb2e6f..c683ffad057 100644
--- a/docs/dbresolver.html
+++ b/docs/dbresolver.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -183,7 +183,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/delete.html b/docs/delete.html
index 4ace6fecc1d..7ba11f82a28 100644
--- a/docs/delete.html
+++ b/docs/delete.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -202,7 +202,7 @@ Prev Next
diff --git a/docs/error_handling.html b/docs/error_handling.html
index 9e39028e9db..11f8f86a6b9 100644
--- a/docs/error_handling.html
+++ b/docs/error_handling.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -187,7 +187,7 @@ Prev Next
diff --git a/docs/generic_interface.html b/docs/generic_interface.html
index 53f292a6b21..66a4b7ea68b 100644
--- a/docs/generic_interface.html
+++ b/docs/generic_interface.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -160,7 +160,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/gorm_config.html b/docs/gorm_config.html
index 0c227df0df1..cc324df210a 100644
--- a/docs/gorm_config.html
+++ b/docs/gorm_config.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -182,7 +182,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/has_many.html b/docs/has_many.html
index 60e115b2ea2..1d6b7be9e90 100644
--- a/docs/has_many.html
+++ b/docs/has_many.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -183,7 +183,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/has_one.html b/docs/has_one.html
index 8ac2ac9de4e..781d9d7821f 100644
--- a/docs/has_one.html
+++ b/docs/has_one.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -183,7 +183,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/hints.html b/docs/hints.html
index f658fa78c64..6988a8b5ea5 100644
--- a/docs/hints.html
+++ b/docs/hints.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -160,7 +160,7 @@ Prev Next
diff --git a/docs/hooks.html b/docs/hooks.html
index 32794c734d2..32a6279ed8b 100644
--- a/docs/hooks.html
+++ b/docs/hooks.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -186,7 +186,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/index.html b/docs/index.html
index 4a82d96f4f3..f0fb723a585 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -173,7 +173,7 @@ Next
diff --git a/docs/indexes.html b/docs/indexes.html
index a1f728ded59..92594bd79b9 100644
--- a/docs/indexes.html
+++ b/docs/indexes.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -179,7 +179,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/logger.html b/docs/logger.html
index 87f9c4ac078..e74752d69b7 100644
--- a/docs/logger.html
+++ b/docs/logger.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -166,7 +166,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/many_to_many.html b/docs/many_to_many.html
index 2ab35fb91cd..6517d8ea23f 100644
--- a/docs/many_to_many.html
+++ b/docs/many_to_many.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -191,7 +191,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/method_chaining.html b/docs/method_chaining.html
index 0676e433729..6dac2bd7d44 100644
--- a/docs/method_chaining.html
+++ b/docs/method_chaining.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -210,7 +210,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/migration.html b/docs/migration.html
index 375962ad4c8..6318376e16f 100644
--- a/docs/migration.html
+++ b/docs/migration.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -206,7 +206,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/models.html b/docs/models.html
index dc5060159bb..189b25fbf0a 100644
--- a/docs/models.html
+++ b/docs/models.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -315,7 +315,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/performance.html b/docs/performance.html
index b40296bc20a..0105c8acfde 100644
--- a/docs/performance.html
+++ b/docs/performance.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -178,7 +178,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/preload.html b/docs/preload.html
index 23309659e67..8e641355814 100644
--- a/docs/preload.html
+++ b/docs/preload.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -191,7 +191,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/prometheus.html b/docs/prometheus.html
index 0e8e04f657d..a582fc90b4d 100644
--- a/docs/prometheus.html
+++ b/docs/prometheus.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -162,7 +162,7 @@ Prev Next
diff --git a/docs/query.html b/docs/query.html
index c9a83849f83..2e9e19210fe 100644
--- a/docs/query.html
+++ b/docs/query.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -243,7 +243,7 @@ Prev Next
diff --git a/docs/scopes.html b/docs/scopes.html
index 84b00529e51..3f5836696d4 100644
--- a/docs/scopes.html
+++ b/docs/scopes.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -164,7 +164,7 @@ Prev Next
diff --git a/docs/security.html b/docs/security.html
index ebe12e62d89..3eb1d39f1f2 100644
--- a/docs/security.html
+++ b/docs/security.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -169,7 +169,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/serializer.html b/docs/serializer.html
index 3dc59141dc6..b041db0e588 100644
--- a/docs/serializer.html
+++ b/docs/serializer.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -171,7 +171,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/session.html b/docs/session.html
index dc426021efb..2162b926636 100644
--- a/docs/session.html
+++ b/docs/session.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -204,7 +204,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/settings.html b/docs/settings.html
index dcf3d25dd30..36d2a469b42 100644
--- a/docs/settings.html
+++ b/docs/settings.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -163,7 +163,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/sharding.html b/docs/sharding.html
index af86963a2f7..b1f5b6d48f6 100644
--- a/docs/sharding.html
+++ b/docs/sharding.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -168,7 +168,7 @@ Prev Next
diff --git a/docs/sql_builder.html b/docs/sql_builder.html
index 3cae2ba8206..0a27f35f6b0 100644
--- a/docs/sql_builder.html
+++ b/docs/sql_builder.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -207,7 +207,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/transactions.html b/docs/transactions.html
index e56f3a140ea..3417707b315 100644
--- a/docs/transactions.html
+++ b/docs/transactions.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -169,7 +169,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/update.html b/docs/update.html
index 7bc5d2921a9..cb992055c5d 100644
--- a/docs/update.html
+++ b/docs/update.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -208,7 +208,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/v2_release_note.html b/docs/v2_release_note.html
index 3283a6cac40..e9a2ec0c0ad 100644
--- a/docs/v2_release_note.html
+++ b/docs/v2_release_note.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -355,7 +355,7 @@ Next
diff --git a/docs/write_driver.html b/docs/write_driver.html
index ec906e97d43..05193c35b31 100644
--- a/docs/write_driver.html
+++ b/docs/write_driver.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -192,7 +192,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/docs/write_plugins.html b/docs/write_plugins.html
index b6add11f6d7..403e1e569a7 100644
--- a/docs/write_plugins.html
+++ b/docs/write_plugins.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -186,7 +186,7 @@
- Last updated: 2024-01-18
+ Last updated: 2024-01-29
Prev Next
diff --git a/es_ES/404.html b/es_ES/404.html
index a2ec9de3529..20d3374024a 100644
--- a/es_ES/404.html
+++ b/es_ES/404.html
@@ -32,8 +32,8 @@
-
-
+
+
diff --git a/es_ES/community.html b/es_ES/community.html
index b4fc580f828..b55c61c9829 100644
--- a/es_ES/community.html
+++ b/es_ES/community.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -184,7 +184,7 @@
- Última actualización: 2024-01-18
+ Última actualización: 2024-01-29
diff --git a/es_ES/contribute.html b/es_ES/contribute.html
index 7e9f2891e9a..761c0e59575 100644
--- a/es_ES/contribute.html
+++ b/es_ES/contribute.html
@@ -56,8 +56,8 @@
-
-
+
+
@@ -173,7 +173,7 @@