From ad2399184bf128e2953519a021f973dca3145cfc Mon Sep 17 00:00:00 2001 From: jinzhu Date: Thu, 10 Oct 2024 02:09:08 +0000 Subject: [PATCH] deploy: c4e16b1a06f25ed5b4911f321f64cfcb5389bf70 --- 404.html | 4 ++-- ar_SA/index.html | 4 ++-- az_AZ/404.html | 4 ++-- az_AZ/index.html | 4 ++-- community.html | 6 +++--- contribute.html | 6 +++--- de_DE/404.html | 4 ++-- de_DE/community.html | 6 +++--- de_DE/contribute.html | 6 +++--- de_DE/datatypes.html | 6 +++--- de_DE/docs/advanced_query.html | 6 +++--- de_DE/docs/associations.html | 6 +++--- de_DE/docs/belongs_to.html | 6 +++--- de_DE/docs/changelog.html | 6 +++--- de_DE/docs/composite_primary_key.html | 6 +++--- de_DE/docs/connecting_to_the_database.html | 6 +++--- de_DE/docs/constraints.html | 6 +++--- de_DE/docs/context.html | 6 +++--- de_DE/docs/conventions.html | 6 +++--- de_DE/docs/create.html | 6 +++--- de_DE/docs/data_types.html | 6 +++--- de_DE/docs/dbresolver.html | 6 +++--- de_DE/docs/delete.html | 6 +++--- de_DE/docs/error_handling.html | 6 +++--- de_DE/docs/generic_interface.html | 6 +++--- de_DE/docs/gorm_config.html | 6 +++--- de_DE/docs/has_many.html | 6 +++--- de_DE/docs/has_one.html | 6 +++--- de_DE/docs/hints.html | 6 +++--- de_DE/docs/hooks.html | 6 +++--- de_DE/docs/index.html | 6 +++--- de_DE/docs/indexes.html | 6 +++--- de_DE/docs/logger.html | 6 +++--- de_DE/docs/many_to_many.html | 6 +++--- de_DE/docs/method_chaining.html | 6 +++--- de_DE/docs/migration.html | 6 +++--- de_DE/docs/models.html | 6 +++--- de_DE/docs/performance.html | 6 +++--- de_DE/docs/polymorphism.html | 6 +++--- de_DE/docs/preload.html | 6 +++--- de_DE/docs/prometheus.html | 6 +++--- de_DE/docs/query.html | 6 +++--- de_DE/docs/scopes.html | 6 +++--- de_DE/docs/security.html | 6 +++--- de_DE/docs/serializer.html | 6 +++--- de_DE/docs/session.html | 6 +++--- de_DE/docs/settings.html | 6 +++--- de_DE/docs/sharding.html | 6 +++--- de_DE/docs/sql_builder.html | 6 +++--- de_DE/docs/transactions.html | 6 +++--- de_DE/docs/update.html | 6 +++--- de_DE/docs/v2_release_note.html | 6 +++--- de_DE/docs/write_driver.html | 6 +++--- de_DE/docs/write_plugins.html | 6 +++--- de_DE/gen.html | 6 +++--- de_DE/gen/associations.html | 6 +++--- de_DE/gen/clause.html | 6 +++--- de_DE/gen/create.html | 6 +++--- de_DE/gen/dao.html | 8 ++++---- de_DE/gen/database_to_structs.html | 6 +++--- de_DE/gen/delete.html | 6 +++--- de_DE/gen/dynamic_sql.html | 6 +++--- de_DE/gen/gen_tool.html | 6 +++--- de_DE/gen/index.html | 6 +++--- de_DE/gen/query.html | 6 +++--- de_DE/gen/rawsql_driver.html | 6 +++--- de_DE/gen/sql_annotation.html | 6 +++--- de_DE/gen/transaction.html | 6 +++--- de_DE/gen/update.html | 6 +++--- de_DE/gorm.html | 6 +++--- de_DE/gormx.html | 6 +++--- de_DE/hints.html | 6 +++--- de_DE/index.html | 4 ++-- de_DE/rawsql.html | 6 +++--- de_DE/rawsql_driver.html | 6 +++--- de_DE/sharding.html | 6 +++--- de_DE/stats.html | 6 +++--- docs/advanced_query.html | 6 +++--- docs/associations.html | 6 +++--- docs/belongs_to.html | 6 +++--- docs/changelog.html | 6 +++--- docs/composite_primary_key.html | 6 +++--- docs/connecting_to_the_database.html | 6 +++--- docs/constraints.html | 6 +++--- docs/context.html | 6 +++--- docs/conventions.html | 6 +++--- docs/create.html | 6 +++--- docs/data_types.html | 6 +++--- docs/dbresolver.html | 6 +++--- docs/delete.html | 6 +++--- docs/error_handling.html | 6 +++--- docs/generic_interface.html | 6 +++--- docs/gorm_config.html | 6 +++--- docs/has_many.html | 6 +++--- docs/has_one.html | 6 +++--- docs/hints.html | 6 +++--- docs/hooks.html | 6 +++--- docs/index.html | 6 +++--- docs/indexes.html | 6 +++--- docs/logger.html | 6 +++--- docs/many_to_many.html | 6 +++--- docs/method_chaining.html | 6 +++--- docs/migration.html | 6 +++--- docs/models.html | 6 +++--- docs/performance.html | 6 +++--- docs/polymorphism.html | 6 +++--- docs/preload.html | 6 +++--- docs/prometheus.html | 6 +++--- docs/query.html | 6 +++--- docs/scopes.html | 6 +++--- docs/security.html | 6 +++--- docs/serializer.html | 6 +++--- docs/session.html | 6 +++--- docs/settings.html | 6 +++--- docs/sharding.html | 6 +++--- docs/sql_builder.html | 6 +++--- docs/transactions.html | 6 +++--- docs/update.html | 6 +++--- docs/v2_release_note.html | 6 +++--- docs/write_driver.html | 6 +++--- docs/write_plugins.html | 6 +++--- es_ES/404.html | 4 ++-- es_ES/community.html | 6 +++--- es_ES/contribute.html | 6 +++--- es_ES/datatypes.html | 6 +++--- es_ES/docs/advanced_query.html | 6 +++--- es_ES/docs/associations.html | 6 +++--- es_ES/docs/belongs_to.html | 6 +++--- es_ES/docs/changelog.html | 6 +++--- es_ES/docs/composite_primary_key.html | 6 +++--- es_ES/docs/connecting_to_the_database.html | 6 +++--- es_ES/docs/constraints.html | 6 +++--- es_ES/docs/context.html | 6 +++--- es_ES/docs/conventions.html | 6 +++--- es_ES/docs/create.html | 6 +++--- es_ES/docs/data_types.html | 6 +++--- es_ES/docs/dbresolver.html | 6 +++--- es_ES/docs/delete.html | 6 +++--- es_ES/docs/error_handling.html | 6 +++--- es_ES/docs/generic_interface.html | 6 +++--- es_ES/docs/gorm_config.html | 6 +++--- es_ES/docs/has_many.html | 6 +++--- es_ES/docs/has_one.html | 6 +++--- es_ES/docs/hints.html | 6 +++--- es_ES/docs/hooks.html | 6 +++--- es_ES/docs/index.html | 6 +++--- es_ES/docs/indexes.html | 6 +++--- es_ES/docs/logger.html | 6 +++--- es_ES/docs/many_to_many.html | 6 +++--- es_ES/docs/method_chaining.html | 6 +++--- es_ES/docs/migration.html | 6 +++--- es_ES/docs/models.html | 6 +++--- es_ES/docs/performance.html | 6 +++--- es_ES/docs/polymorphism.html | 6 +++--- es_ES/docs/preload.html | 6 +++--- es_ES/docs/prometheus.html | 6 +++--- es_ES/docs/query.html | 6 +++--- es_ES/docs/scopes.html | 6 +++--- es_ES/docs/security.html | 6 +++--- es_ES/docs/serializer.html | 6 +++--- es_ES/docs/session.html | 6 +++--- es_ES/docs/settings.html | 6 +++--- es_ES/docs/sharding.html | 6 +++--- es_ES/docs/sql_builder.html | 6 +++--- es_ES/docs/transactions.html | 6 +++--- es_ES/docs/update.html | 6 +++--- es_ES/docs/v2_release_note.html | 6 +++--- es_ES/docs/write_driver.html | 6 +++--- es_ES/docs/write_plugins.html | 6 +++--- es_ES/gen.html | 6 +++--- es_ES/gen/associations.html | 6 +++--- es_ES/gen/clause.html | 6 +++--- es_ES/gen/create.html | 6 +++--- es_ES/gen/dao.html | 8 ++++---- es_ES/gen/database_to_structs.html | 6 +++--- es_ES/gen/delete.html | 6 +++--- es_ES/gen/dynamic_sql.html | 6 +++--- es_ES/gen/gen_tool.html | 6 +++--- es_ES/gen/index.html | 6 +++--- es_ES/gen/query.html | 6 +++--- es_ES/gen/rawsql_driver.html | 6 +++--- es_ES/gen/sql_annotation.html | 6 +++--- es_ES/gen/transaction.html | 6 +++--- es_ES/gen/update.html | 6 +++--- es_ES/gorm.html | 6 +++--- es_ES/gormx.html | 6 +++--- es_ES/hints.html | 6 +++--- es_ES/index.html | 4 ++-- es_ES/rawsql.html | 6 +++--- es_ES/rawsql_driver.html | 6 +++--- es_ES/sharding.html | 6 +++--- es_ES/stats.html | 6 +++--- fa_IR/404.html | 4 ++-- fr_FR/404.html | 4 ++-- fr_FR/community.html | 6 +++--- fr_FR/contribute.html | 6 +++--- fr_FR/datatypes.html | 6 +++--- fr_FR/docs/advanced_query.html | 6 +++--- fr_FR/docs/associations.html | 6 +++--- fr_FR/docs/belongs_to.html | 6 +++--- fr_FR/docs/changelog.html | 6 +++--- fr_FR/docs/composite_primary_key.html | 6 +++--- fr_FR/docs/connecting_to_the_database.html | 6 +++--- fr_FR/docs/constraints.html | 6 +++--- fr_FR/docs/context.html | 6 +++--- fr_FR/docs/conventions.html | 6 +++--- fr_FR/docs/create.html | 6 +++--- fr_FR/docs/data_types.html | 6 +++--- fr_FR/docs/dbresolver.html | 6 +++--- fr_FR/docs/delete.html | 6 +++--- fr_FR/docs/error_handling.html | 6 +++--- fr_FR/docs/generic_interface.html | 6 +++--- fr_FR/docs/gorm_config.html | 6 +++--- fr_FR/docs/has_many.html | 6 +++--- fr_FR/docs/has_one.html | 6 +++--- fr_FR/docs/hints.html | 6 +++--- fr_FR/docs/hooks.html | 6 +++--- fr_FR/docs/index.html | 6 +++--- fr_FR/docs/indexes.html | 6 +++--- fr_FR/docs/logger.html | 6 +++--- fr_FR/docs/many_to_many.html | 6 +++--- fr_FR/docs/method_chaining.html | 6 +++--- fr_FR/docs/migration.html | 6 +++--- fr_FR/docs/models.html | 6 +++--- fr_FR/docs/performance.html | 6 +++--- fr_FR/docs/polymorphism.html | 6 +++--- fr_FR/docs/preload.html | 6 +++--- fr_FR/docs/prometheus.html | 6 +++--- fr_FR/docs/query.html | 6 +++--- fr_FR/docs/scopes.html | 6 +++--- fr_FR/docs/security.html | 6 +++--- fr_FR/docs/serializer.html | 6 +++--- fr_FR/docs/session.html | 6 +++--- fr_FR/docs/settings.html | 6 +++--- fr_FR/docs/sharding.html | 6 +++--- fr_FR/docs/sql_builder.html | 6 +++--- fr_FR/docs/transactions.html | 6 +++--- fr_FR/docs/update.html | 6 +++--- fr_FR/docs/v2_release_note.html | 6 +++--- fr_FR/docs/write_driver.html | 6 +++--- fr_FR/docs/write_plugins.html | 6 +++--- fr_FR/gen.html | 6 +++--- fr_FR/gen/associations.html | 6 +++--- fr_FR/gen/clause.html | 6 +++--- fr_FR/gen/create.html | 6 +++--- fr_FR/gen/dao.html | 8 ++++---- fr_FR/gen/database_to_structs.html | 6 +++--- fr_FR/gen/delete.html | 6 +++--- fr_FR/gen/dynamic_sql.html | 6 +++--- fr_FR/gen/gen_tool.html | 6 +++--- fr_FR/gen/index.html | 6 +++--- fr_FR/gen/query.html | 6 +++--- fr_FR/gen/rawsql_driver.html | 6 +++--- fr_FR/gen/sql_annotation.html | 6 +++--- fr_FR/gen/transaction.html | 6 +++--- fr_FR/gen/update.html | 6 +++--- fr_FR/gorm.html | 6 +++--- fr_FR/gormx.html | 6 +++--- fr_FR/hints.html | 6 +++--- fr_FR/index.html | 4 ++-- fr_FR/rawsql.html | 6 +++--- fr_FR/rawsql_driver.html | 6 +++--- fr_FR/sharding.html | 6 +++--- fr_FR/stats.html | 6 +++--- gen/associations.html | 6 +++--- gen/clause.html | 6 +++--- gen/create.html | 6 +++--- gen/dao.html | 6 +++--- gen/database_to_structs.html | 6 +++--- gen/delete.html | 6 +++--- gen/dynamic_sql.html | 6 +++--- gen/gen_tool.html | 6 +++--- gen/index.html | 6 +++--- gen/query.html | 6 +++--- gen/rawsql_driver.html | 6 +++--- gen/sql_annotation.html | 6 +++--- gen/transaction.html | 6 +++--- gen/update.html | 6 +++--- hi_IN/404.html | 4 ++-- hi_IN/community.html | 6 +++--- hi_IN/contribute.html | 6 +++--- hi_IN/datatypes.html | 6 +++--- hi_IN/docs/advanced_query.html | 6 +++--- hi_IN/docs/associations.html | 6 +++--- hi_IN/docs/belongs_to.html | 6 +++--- hi_IN/docs/changelog.html | 6 +++--- hi_IN/docs/composite_primary_key.html | 6 +++--- hi_IN/docs/connecting_to_the_database.html | 6 +++--- hi_IN/docs/constraints.html | 6 +++--- hi_IN/docs/context.html | 6 +++--- hi_IN/docs/conventions.html | 6 +++--- hi_IN/docs/create.html | 6 +++--- hi_IN/docs/data_types.html | 6 +++--- hi_IN/docs/dbresolver.html | 6 +++--- hi_IN/docs/delete.html | 6 +++--- hi_IN/docs/error_handling.html | 6 +++--- hi_IN/docs/generic_interface.html | 6 +++--- hi_IN/docs/gorm_config.html | 6 +++--- hi_IN/docs/has_many.html | 6 +++--- hi_IN/docs/has_one.html | 6 +++--- hi_IN/docs/hints.html | 6 +++--- hi_IN/docs/hooks.html | 6 +++--- hi_IN/docs/index.html | 6 +++--- hi_IN/docs/indexes.html | 6 +++--- hi_IN/docs/logger.html | 6 +++--- hi_IN/docs/many_to_many.html | 6 +++--- hi_IN/docs/method_chaining.html | 6 +++--- hi_IN/docs/migration.html | 6 +++--- hi_IN/docs/models.html | 6 +++--- hi_IN/docs/performance.html | 6 +++--- hi_IN/docs/polymorphism.html | 6 +++--- hi_IN/docs/preload.html | 6 +++--- hi_IN/docs/prometheus.html | 6 +++--- hi_IN/docs/query.html | 6 +++--- hi_IN/docs/scopes.html | 6 +++--- hi_IN/docs/security.html | 6 +++--- hi_IN/docs/serializer.html | 6 +++--- hi_IN/docs/session.html | 6 +++--- hi_IN/docs/settings.html | 6 +++--- hi_IN/docs/sharding.html | 6 +++--- hi_IN/docs/sql_builder.html | 6 +++--- hi_IN/docs/transactions.html | 6 +++--- hi_IN/docs/update.html | 6 +++--- hi_IN/docs/v2_release_note.html | 6 +++--- hi_IN/docs/write_driver.html | 6 +++--- hi_IN/docs/write_plugins.html | 6 +++--- hi_IN/gen.html | 6 +++--- hi_IN/gen/associations.html | 6 +++--- hi_IN/gen/clause.html | 6 +++--- hi_IN/gen/create.html | 6 +++--- hi_IN/gen/dao.html | 8 ++++---- hi_IN/gen/database_to_structs.html | 6 +++--- hi_IN/gen/delete.html | 6 +++--- hi_IN/gen/dynamic_sql.html | 6 +++--- hi_IN/gen/gen_tool.html | 6 +++--- hi_IN/gen/index.html | 6 +++--- hi_IN/gen/query.html | 6 +++--- hi_IN/gen/rawsql_driver.html | 6 +++--- hi_IN/gen/sql_annotation.html | 6 +++--- hi_IN/gen/transaction.html | 6 +++--- hi_IN/gen/update.html | 6 +++--- hi_IN/gorm.html | 6 +++--- hi_IN/gormx.html | 6 +++--- hi_IN/hints.html | 6 +++--- hi_IN/index.html | 4 ++-- hi_IN/rawsql.html | 6 +++--- hi_IN/rawsql_driver.html | 6 +++--- hi_IN/sharding.html | 6 +++--- hi_IN/stats.html | 6 +++--- id_ID/404.html | 4 ++-- id_ID/community.html | 6 +++--- id_ID/contribute.html | 6 +++--- id_ID/datatypes.html | 6 +++--- id_ID/docs/advanced_query.html | 6 +++--- id_ID/docs/associations.html | 6 +++--- id_ID/docs/belongs_to.html | 6 +++--- id_ID/docs/changelog.html | 6 +++--- id_ID/docs/composite_primary_key.html | 6 +++--- id_ID/docs/connecting_to_the_database.html | 6 +++--- id_ID/docs/constraints.html | 6 +++--- id_ID/docs/context.html | 6 +++--- id_ID/docs/conventions.html | 6 +++--- id_ID/docs/create.html | 6 +++--- id_ID/docs/data_types.html | 6 +++--- id_ID/docs/dbresolver.html | 6 +++--- id_ID/docs/delete.html | 6 +++--- id_ID/docs/error_handling.html | 6 +++--- id_ID/docs/generic_interface.html | 6 +++--- id_ID/docs/gorm_config.html | 6 +++--- id_ID/docs/has_many.html | 6 +++--- id_ID/docs/has_one.html | 6 +++--- id_ID/docs/hints.html | 6 +++--- id_ID/docs/hooks.html | 6 +++--- id_ID/docs/index.html | 6 +++--- id_ID/docs/indexes.html | 6 +++--- id_ID/docs/logger.html | 6 +++--- id_ID/docs/many_to_many.html | 6 +++--- id_ID/docs/method_chaining.html | 6 +++--- id_ID/docs/migration.html | 6 +++--- id_ID/docs/models.html | 6 +++--- id_ID/docs/performance.html | 6 +++--- id_ID/docs/polymorphism.html | 6 +++--- id_ID/docs/preload.html | 6 +++--- id_ID/docs/prometheus.html | 6 +++--- id_ID/docs/query.html | 6 +++--- id_ID/docs/scopes.html | 6 +++--- id_ID/docs/security.html | 6 +++--- id_ID/docs/serializer.html | 6 +++--- id_ID/docs/session.html | 6 +++--- id_ID/docs/settings.html | 6 +++--- id_ID/docs/sharding.html | 6 +++--- id_ID/docs/sql_builder.html | 6 +++--- id_ID/docs/transactions.html | 6 +++--- id_ID/docs/update.html | 6 +++--- id_ID/docs/v2_release_note.html | 6 +++--- id_ID/docs/write_driver.html | 6 +++--- id_ID/docs/write_plugins.html | 6 +++--- id_ID/gen.html | 6 +++--- id_ID/gen/associations.html | 6 +++--- id_ID/gen/clause.html | 6 +++--- id_ID/gen/create.html | 6 +++--- id_ID/gen/dao.html | 8 ++++---- id_ID/gen/database_to_structs.html | 6 +++--- id_ID/gen/delete.html | 6 +++--- id_ID/gen/dynamic_sql.html | 6 +++--- id_ID/gen/gen_tool.html | 6 +++--- id_ID/gen/index.html | 6 +++--- id_ID/gen/query.html | 6 +++--- id_ID/gen/rawsql_driver.html | 6 +++--- id_ID/gen/sql_annotation.html | 6 +++--- id_ID/gen/transaction.html | 6 +++--- id_ID/gen/update.html | 6 +++--- id_ID/gorm.html | 6 +++--- id_ID/gormx.html | 6 +++--- id_ID/hints.html | 6 +++--- id_ID/index.html | 4 ++-- id_ID/rawsql.html | 6 +++--- id_ID/rawsql_driver.html | 6 +++--- id_ID/sharding.html | 6 +++--- id_ID/stats.html | 6 +++--- index.html | 4 ++-- it_IT/404.html | 6 +++--- it_IT/community.html | 6 +++--- it_IT/contribute.html | 6 +++--- it_IT/datatypes.html | 6 +++--- it_IT/docs/advanced_query.html | 6 +++--- it_IT/docs/associations.html | 6 +++--- it_IT/docs/belongs_to.html | 6 +++--- it_IT/docs/changelog.html | 6 +++--- it_IT/docs/composite_primary_key.html | 6 +++--- it_IT/docs/connecting_to_the_database.html | 6 +++--- it_IT/docs/constraints.html | 6 +++--- it_IT/docs/context.html | 6 +++--- it_IT/docs/conventions.html | 6 +++--- it_IT/docs/create.html | 6 +++--- it_IT/docs/data_types.html | 6 +++--- it_IT/docs/dbresolver.html | 6 +++--- it_IT/docs/delete.html | 6 +++--- it_IT/docs/error_handling.html | 6 +++--- it_IT/docs/generic_interface.html | 6 +++--- it_IT/docs/gorm_config.html | 6 +++--- it_IT/docs/has_many.html | 6 +++--- it_IT/docs/has_one.html | 6 +++--- it_IT/docs/hints.html | 6 +++--- it_IT/docs/hooks.html | 6 +++--- it_IT/docs/index.html | 6 +++--- it_IT/docs/indexes.html | 6 +++--- it_IT/docs/logger.html | 6 +++--- it_IT/docs/many_to_many.html | 6 +++--- it_IT/docs/method_chaining.html | 6 +++--- it_IT/docs/migration.html | 6 +++--- it_IT/docs/models.html | 6 +++--- it_IT/docs/performance.html | 6 +++--- it_IT/docs/polymorphism.html | 6 +++--- it_IT/docs/preload.html | 6 +++--- it_IT/docs/prometheus.html | 6 +++--- it_IT/docs/query.html | 6 +++--- it_IT/docs/scopes.html | 6 +++--- it_IT/docs/security.html | 6 +++--- it_IT/docs/serializer.html | 6 +++--- it_IT/docs/session.html | 6 +++--- it_IT/docs/settings.html | 6 +++--- it_IT/docs/sharding.html | 6 +++--- it_IT/docs/sql_builder.html | 6 +++--- it_IT/docs/transactions.html | 6 +++--- it_IT/docs/update.html | 6 +++--- it_IT/docs/v2_release_note.html | 6 +++--- it_IT/docs/write_driver.html | 6 +++--- it_IT/docs/write_plugins.html | 6 +++--- it_IT/gen.html | 6 +++--- it_IT/gen/associations.html | 6 +++--- it_IT/gen/clause.html | 6 +++--- it_IT/gen/create.html | 6 +++--- it_IT/gen/dao.html | 8 ++++---- it_IT/gen/database_to_structs.html | 6 +++--- it_IT/gen/delete.html | 6 +++--- it_IT/gen/dynamic_sql.html | 6 +++--- it_IT/gen/gen_tool.html | 6 +++--- it_IT/gen/index.html | 6 +++--- it_IT/gen/query.html | 6 +++--- it_IT/gen/rawsql_driver.html | 6 +++--- it_IT/gen/sql_annotation.html | 6 +++--- it_IT/gen/transaction.html | 6 +++--- it_IT/gen/update.html | 6 +++--- it_IT/gorm.html | 6 +++--- it_IT/gormx.html | 6 +++--- it_IT/hints.html | 6 +++--- it_IT/index.html | 4 ++-- it_IT/rawsql.html | 6 +++--- it_IT/rawsql_driver.html | 6 +++--- it_IT/sharding.html | 6 +++--- it_IT/stats.html | 6 +++--- ja_JP/404.html | 6 +++--- ja_JP/community.html | 6 +++--- ja_JP/contribute.html | 6 +++--- ja_JP/datatypes.html | 6 +++--- ja_JP/docs/advanced_query.html | 6 +++--- ja_JP/docs/associations.html | 6 +++--- ja_JP/docs/belongs_to.html | 6 +++--- ja_JP/docs/changelog.html | 6 +++--- ja_JP/docs/composite_primary_key.html | 6 +++--- ja_JP/docs/connecting_to_the_database.html | 6 +++--- ja_JP/docs/constraints.html | 6 +++--- ja_JP/docs/context.html | 6 +++--- ja_JP/docs/conventions.html | 6 +++--- ja_JP/docs/create.html | 6 +++--- ja_JP/docs/data_types.html | 6 +++--- ja_JP/docs/dbresolver.html | 6 +++--- ja_JP/docs/delete.html | 6 +++--- ja_JP/docs/error_handling.html | 6 +++--- ja_JP/docs/generic_interface.html | 6 +++--- ja_JP/docs/gorm_config.html | 6 +++--- ja_JP/docs/has_many.html | 6 +++--- ja_JP/docs/has_one.html | 6 +++--- ja_JP/docs/hints.html | 6 +++--- ja_JP/docs/hooks.html | 6 +++--- ja_JP/docs/index.html | 6 +++--- ja_JP/docs/indexes.html | 6 +++--- ja_JP/docs/logger.html | 8 ++++---- ja_JP/docs/many_to_many.html | 6 +++--- ja_JP/docs/method_chaining.html | 6 +++--- ja_JP/docs/migration.html | 6 +++--- ja_JP/docs/models.html | 6 +++--- ja_JP/docs/performance.html | 6 +++--- ja_JP/docs/polymorphism.html | 6 +++--- ja_JP/docs/preload.html | 6 +++--- ja_JP/docs/prometheus.html | 6 +++--- ja_JP/docs/query.html | 6 +++--- ja_JP/docs/scopes.html | 6 +++--- ja_JP/docs/security.html | 6 +++--- ja_JP/docs/serializer.html | 6 +++--- ja_JP/docs/session.html | 6 +++--- ja_JP/docs/settings.html | 6 +++--- ja_JP/docs/sharding.html | 12 ++++++------ ja_JP/docs/sql_builder.html | 6 +++--- ja_JP/docs/transactions.html | 6 +++--- ja_JP/docs/update.html | 6 +++--- ja_JP/docs/v2_release_note.html | 6 +++--- ja_JP/docs/write_driver.html | 6 +++--- ja_JP/docs/write_plugins.html | 6 +++--- ja_JP/gen.html | 6 +++--- ja_JP/gen/associations.html | 6 +++--- ja_JP/gen/clause.html | 6 +++--- ja_JP/gen/create.html | 6 +++--- ja_JP/gen/dao.html | 8 ++++---- ja_JP/gen/database_to_structs.html | 6 +++--- ja_JP/gen/delete.html | 6 +++--- ja_JP/gen/dynamic_sql.html | 6 +++--- ja_JP/gen/gen_tool.html | 6 +++--- ja_JP/gen/index.html | 6 +++--- ja_JP/gen/query.html | 6 +++--- ja_JP/gen/rawsql_driver.html | 6 +++--- ja_JP/gen/sql_annotation.html | 6 +++--- ja_JP/gen/transaction.html | 6 +++--- ja_JP/gen/update.html | 6 +++--- ja_JP/gorm.html | 6 +++--- ja_JP/gormx.html | 6 +++--- ja_JP/hints.html | 6 +++--- ja_JP/index.html | 4 ++-- ja_JP/rawsql.html | 6 +++--- ja_JP/rawsql_driver.html | 6 +++--- ja_JP/sharding.html | 6 +++--- ja_JP/stats.html | 6 +++--- ko_KR/404.html | 6 +++--- ko_KR/community.html | 6 +++--- ko_KR/contribute.html | 6 +++--- ko_KR/datatypes.html | 6 +++--- ko_KR/docs/advanced_query.html | 6 +++--- ko_KR/docs/associations.html | 6 +++--- ko_KR/docs/belongs_to.html | 6 +++--- ko_KR/docs/changelog.html | 6 +++--- ko_KR/docs/composite_primary_key.html | 6 +++--- ko_KR/docs/connecting_to_the_database.html | 6 +++--- ko_KR/docs/constraints.html | 6 +++--- ko_KR/docs/context.html | 6 +++--- ko_KR/docs/conventions.html | 6 +++--- ko_KR/docs/create.html | 6 +++--- ko_KR/docs/data_types.html | 6 +++--- ko_KR/docs/dbresolver.html | 6 +++--- ko_KR/docs/delete.html | 6 +++--- ko_KR/docs/error_handling.html | 6 +++--- ko_KR/docs/generic_interface.html | 6 +++--- ko_KR/docs/gorm_config.html | 6 +++--- ko_KR/docs/has_many.html | 6 +++--- ko_KR/docs/has_one.html | 6 +++--- ko_KR/docs/hints.html | 6 +++--- ko_KR/docs/hooks.html | 6 +++--- ko_KR/docs/index.html | 6 +++--- ko_KR/docs/indexes.html | 6 +++--- ko_KR/docs/logger.html | 6 +++--- ko_KR/docs/many_to_many.html | 6 +++--- ko_KR/docs/method_chaining.html | 6 +++--- ko_KR/docs/migration.html | 6 +++--- ko_KR/docs/models.html | 6 +++--- ko_KR/docs/performance.html | 6 +++--- ko_KR/docs/polymorphism.html | 6 +++--- ko_KR/docs/preload.html | 6 +++--- ko_KR/docs/prometheus.html | 6 +++--- ko_KR/docs/query.html | 6 +++--- ko_KR/docs/scopes.html | 6 +++--- ko_KR/docs/security.html | 6 +++--- ko_KR/docs/serializer.html | 6 +++--- ko_KR/docs/session.html | 6 +++--- ko_KR/docs/settings.html | 6 +++--- ko_KR/docs/sharding.html | 6 +++--- ko_KR/docs/sql_builder.html | 6 +++--- ko_KR/docs/transactions.html | 6 +++--- ko_KR/docs/update.html | 6 +++--- ko_KR/docs/v2_release_note.html | 6 +++--- ko_KR/docs/write_driver.html | 6 +++--- ko_KR/docs/write_plugins.html | 6 +++--- ko_KR/gen.html | 6 +++--- ko_KR/gen/associations.html | 6 +++--- ko_KR/gen/clause.html | 6 +++--- ko_KR/gen/create.html | 6 +++--- ko_KR/gen/dao.html | 8 ++++---- ko_KR/gen/database_to_structs.html | 6 +++--- ko_KR/gen/delete.html | 6 +++--- ko_KR/gen/dynamic_sql.html | 6 +++--- ko_KR/gen/gen_tool.html | 6 +++--- ko_KR/gen/index.html | 6 +++--- ko_KR/gen/query.html | 6 +++--- ko_KR/gen/rawsql_driver.html | 6 +++--- ko_KR/gen/sql_annotation.html | 6 +++--- ko_KR/gen/transaction.html | 6 +++--- ko_KR/gen/update.html | 6 +++--- ko_KR/gorm.html | 6 +++--- ko_KR/gormx.html | 6 +++--- ko_KR/hints.html | 6 +++--- ko_KR/index.html | 4 ++-- ko_KR/rawsql.html | 6 +++--- ko_KR/rawsql_driver.html | 6 +++--- ko_KR/sharding.html | 6 +++--- ko_KR/stats.html | 6 +++--- pl_PL/404.html | 4 ++-- pl_PL/index.html | 4 ++-- pt_BR/404.html | 4 ++-- pt_BR/index.html | 4 ++-- ru_RU/404.html | 4 ++-- ru_RU/community.html | 6 +++--- ru_RU/contribute.html | 6 +++--- ru_RU/datatypes.html | 6 +++--- ru_RU/docs/advanced_query.html | 6 +++--- ru_RU/docs/associations.html | 6 +++--- ru_RU/docs/belongs_to.html | 6 +++--- ru_RU/docs/changelog.html | 6 +++--- ru_RU/docs/composite_primary_key.html | 6 +++--- ru_RU/docs/connecting_to_the_database.html | 6 +++--- ru_RU/docs/constraints.html | 6 +++--- ru_RU/docs/context.html | 6 +++--- ru_RU/docs/conventions.html | 6 +++--- ru_RU/docs/create.html | 6 +++--- ru_RU/docs/data_types.html | 6 +++--- ru_RU/docs/dbresolver.html | 6 +++--- ru_RU/docs/delete.html | 6 +++--- ru_RU/docs/error_handling.html | 6 +++--- ru_RU/docs/generic_interface.html | 6 +++--- ru_RU/docs/gorm_config.html | 6 +++--- ru_RU/docs/has_many.html | 6 +++--- ru_RU/docs/has_one.html | 6 +++--- ru_RU/docs/hints.html | 6 +++--- ru_RU/docs/hooks.html | 6 +++--- ru_RU/docs/index.html | 6 +++--- ru_RU/docs/indexes.html | 6 +++--- ru_RU/docs/logger.html | 6 +++--- ru_RU/docs/many_to_many.html | 6 +++--- ru_RU/docs/method_chaining.html | 6 +++--- ru_RU/docs/migration.html | 6 +++--- ru_RU/docs/models.html | 6 +++--- ru_RU/docs/performance.html | 6 +++--- ru_RU/docs/polymorphism.html | 6 +++--- ru_RU/docs/preload.html | 6 +++--- ru_RU/docs/prometheus.html | 6 +++--- ru_RU/docs/query.html | 6 +++--- ru_RU/docs/scopes.html | 6 +++--- ru_RU/docs/security.html | 6 +++--- ru_RU/docs/serializer.html | 6 +++--- ru_RU/docs/session.html | 6 +++--- ru_RU/docs/settings.html | 6 +++--- ru_RU/docs/sharding.html | 6 +++--- ru_RU/docs/sql_builder.html | 6 +++--- ru_RU/docs/transactions.html | 6 +++--- ru_RU/docs/update.html | 6 +++--- ru_RU/docs/v2_release_note.html | 6 +++--- ru_RU/docs/write_driver.html | 6 +++--- ru_RU/docs/write_plugins.html | 6 +++--- ru_RU/gen.html | 6 +++--- ru_RU/gen/associations.html | 6 +++--- ru_RU/gen/clause.html | 6 +++--- ru_RU/gen/create.html | 6 +++--- ru_RU/gen/dao.html | 8 ++++---- ru_RU/gen/database_to_structs.html | 6 +++--- ru_RU/gen/delete.html | 6 +++--- ru_RU/gen/dynamic_sql.html | 6 +++--- ru_RU/gen/gen_tool.html | 6 +++--- ru_RU/gen/index.html | 6 +++--- ru_RU/gen/query.html | 6 +++--- ru_RU/gen/rawsql_driver.html | 6 +++--- ru_RU/gen/sql_annotation.html | 6 +++--- ru_RU/gen/transaction.html | 6 +++--- ru_RU/gen/update.html | 6 +++--- ru_RU/gorm.html | 6 +++--- ru_RU/gormx.html | 6 +++--- ru_RU/hints.html | 6 +++--- ru_RU/index.html | 4 ++-- ru_RU/rawsql.html | 6 +++--- ru_RU/rawsql_driver.html | 6 +++--- ru_RU/sharding.html | 6 +++--- ru_RU/stats.html | 6 +++--- stats.html | 6 +++--- tr_TR/404.html | 4 ++-- tr_TR/index.html | 4 ++-- zh_CN/404.html | 4 ++-- zh_CN/community.html | 6 +++--- zh_CN/contribute.html | 6 +++--- zh_CN/datatypes.html | 6 +++--- zh_CN/docs/advanced_query.html | 6 +++--- zh_CN/docs/associations.html | 6 +++--- zh_CN/docs/belongs_to.html | 6 +++--- zh_CN/docs/changelog.html | 6 +++--- zh_CN/docs/composite_primary_key.html | 6 +++--- zh_CN/docs/connecting_to_the_database.html | 6 +++--- zh_CN/docs/constraints.html | 6 +++--- zh_CN/docs/context.html | 6 +++--- zh_CN/docs/conventions.html | 6 +++--- zh_CN/docs/create.html | 6 +++--- zh_CN/docs/data_types.html | 6 +++--- zh_CN/docs/dbresolver.html | 6 +++--- zh_CN/docs/delete.html | 6 +++--- zh_CN/docs/error_handling.html | 6 +++--- zh_CN/docs/generic_interface.html | 6 +++--- zh_CN/docs/gorm_config.html | 6 +++--- zh_CN/docs/has_many.html | 6 +++--- zh_CN/docs/has_one.html | 6 +++--- zh_CN/docs/hints.html | 6 +++--- zh_CN/docs/hooks.html | 6 +++--- zh_CN/docs/index.html | 6 +++--- zh_CN/docs/indexes.html | 6 +++--- zh_CN/docs/logger.html | 6 +++--- zh_CN/docs/many_to_many.html | 6 +++--- zh_CN/docs/method_chaining.html | 6 +++--- zh_CN/docs/migration.html | 6 +++--- zh_CN/docs/models.html | 6 +++--- zh_CN/docs/performance.html | 6 +++--- zh_CN/docs/polymorphism.html | 6 +++--- zh_CN/docs/preload.html | 6 +++--- zh_CN/docs/prometheus.html | 6 +++--- zh_CN/docs/query.html | 6 +++--- zh_CN/docs/scopes.html | 6 +++--- zh_CN/docs/security.html | 6 +++--- zh_CN/docs/serializer.html | 6 +++--- zh_CN/docs/session.html | 6 +++--- zh_CN/docs/settings.html | 6 +++--- zh_CN/docs/sharding.html | 6 +++--- zh_CN/docs/sql_builder.html | 6 +++--- zh_CN/docs/transactions.html | 6 +++--- zh_CN/docs/update.html | 6 +++--- zh_CN/docs/v2_release_note.html | 6 +++--- zh_CN/docs/write_driver.html | 6 +++--- zh_CN/docs/write_plugins.html | 6 +++--- zh_CN/gen.html | 6 +++--- zh_CN/gen/associations.html | 6 +++--- zh_CN/gen/clause.html | 6 +++--- zh_CN/gen/create.html | 6 +++--- zh_CN/gen/dao.html | 8 ++++---- zh_CN/gen/database_to_structs.html | 6 +++--- zh_CN/gen/delete.html | 6 +++--- zh_CN/gen/dynamic_sql.html | 6 +++--- zh_CN/gen/gen_tool.html | 6 +++--- zh_CN/gen/index.html | 6 +++--- zh_CN/gen/query.html | 6 +++--- zh_CN/gen/rawsql_driver.html | 6 +++--- zh_CN/gen/sql_annotation.html | 6 +++--- zh_CN/gen/transaction.html | 6 +++--- zh_CN/gen/update.html | 6 +++--- zh_CN/gorm.html | 6 +++--- zh_CN/gormx.html | 6 +++--- zh_CN/hints.html | 6 +++--- zh_CN/index.html | 4 ++-- zh_CN/rawsql.html | 6 +++--- zh_CN/rawsql_driver.html | 6 +++--- zh_CN/sharding.html | 6 +++--- zh_CN/stats.html | 6 +++--- 783 files changed, 2334 insertions(+), 2334 deletions(-) diff --git a/404.html b/404.html index 55fd87e7bb7..d9244d13926 100644 --- a/404.html +++ b/404.html @@ -32,8 +32,8 @@ - - + + diff --git a/ar_SA/index.html b/ar_SA/index.html index 92c06ee8a61..6944ec12eba 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 7da752332ad..cae9e84899d 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 87f34755979..b50ea25bcf4 100644 --- a/az_AZ/index.html +++ b/az_AZ/index.html @@ -56,8 +56,8 @@ - - + + diff --git a/community.html b/community.html index 29d62ac2123..da7206fef01 100644 --- a/community.html +++ b/community.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/contribute.html b/contribute.html index d7d0993d7c6..cd9a9f2be4e 100644 --- a/contribute.html +++ b/contribute.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/de_DE/404.html b/de_DE/404.html index 540257530fb..fd34d254b7e 100644 --- a/de_DE/404.html +++ b/de_DE/404.html @@ -32,8 +32,8 @@ - - + + diff --git a/de_DE/community.html b/de_DE/community.html index 2f25fa5da7c..5e3311a787a 100644 --- a/de_DE/community.html +++ b/de_DE/community.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/de_DE/contribute.html b/de_DE/contribute.html index d9f4b1d19da..71b3bd533fc 100644 --- a/de_DE/contribute.html +++ b/de_DE/contribute.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/de_DE/datatypes.html b/de_DE/datatypes.html index 1596bb64ba1..cdcf562e7c5 100644 --- a/de_DE/datatypes.html +++ b/de_DE/datatypes.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/de_DE/docs/advanced_query.html b/de_DE/docs/advanced_query.html index 01770fc4411..9b9f44c33ab 100644 --- a/de_DE/docs/advanced_query.html +++ b/de_DE/docs/advanced_query.html @@ -56,8 +56,8 @@ - - + + @@ -253,7 +253,7 @@

- + diff --git a/de_DE/docs/associations.html b/de_DE/docs/associations.html index 3731554f356..dfbd8b540fb 100644 --- a/de_DE/docs/associations.html +++ b/de_DE/docs/associations.html @@ -56,8 +56,8 @@ - - + + @@ -287,7 +287,7 @@

diff --git a/de_DE/docs/belongs_to.html b/de_DE/docs/belongs_to.html index 386a56ced6b..b40b6ebad4c 100644 --- a/de_DE/docs/belongs_to.html +++ b/de_DE/docs/belongs_to.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/de_DE/docs/changelog.html b/de_DE/docs/changelog.html index 1c9f6e689b6..abcd72b8c0b 100644 --- a/de_DE/docs/changelog.html +++ b/de_DE/docs/changelog.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/de_DE/docs/composite_primary_key.html b/de_DE/docs/composite_primary_key.html index 5ddb7fcfe81..7ca3cd468ee 100644 --- a/de_DE/docs/composite_primary_key.html +++ b/de_DE/docs/composite_primary_key.html @@ -56,8 +56,8 @@ - - + + @@ -158,7 +158,7 @@

Composite Primary Key

- +
diff --git a/de_DE/docs/connecting_to_the_database.html b/de_DE/docs/connecting_to_the_database.html index 84af385c85d..2a649ff9bc6 100644 --- a/de_DE/docs/connecting_to_the_database.html +++ b/de_DE/docs/connecting_to_the_database.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

- + diff --git a/de_DE/docs/constraints.html b/de_DE/docs/constraints.html index a448c8d54e2..db6638507cb 100644 --- a/de_DE/docs/constraints.html +++ b/de_DE/docs/constraints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/de_DE/docs/context.html b/de_DE/docs/context.html index f7b25b3fed7..d2e47702de5 100644 --- a/de_DE/docs/context.html +++ b/de_DE/docs/context.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

- + diff --git a/de_DE/docs/conventions.html b/de_DE/docs/conventions.html index cfde6148654..d78a80be993 100644 --- a/de_DE/docs/conventions.html +++ b/de_DE/docs/conventions.html @@ -56,8 +56,8 @@ - - + + @@ -194,7 +194,7 @@

- + diff --git a/de_DE/docs/create.html b/de_DE/docs/create.html index 49441f82d8e..dc0a0c0b1c3 100644 --- a/de_DE/docs/create.html +++ b/de_DE/docs/create.html @@ -56,8 +56,8 @@ - - + + @@ -228,7 +228,7 @@

- + diff --git a/de_DE/docs/data_types.html b/de_DE/docs/data_types.html index 3b1350c7a74..b8519e8df62 100644 --- a/de_DE/docs/data_types.html +++ b/de_DE/docs/data_types.html @@ -56,8 +56,8 @@ - - + + @@ -189,7 +189,7 @@

- + diff --git a/de_DE/docs/dbresolver.html b/de_DE/docs/dbresolver.html index 105ce1b1348..5f61ea0085f 100644 --- a/de_DE/docs/dbresolver.html +++ b/de_DE/docs/dbresolver.html @@ -56,8 +56,8 @@ - - + + @@ -183,7 +183,7 @@

diff --git a/de_DE/docs/delete.html b/de_DE/docs/delete.html index c0a63acf117..05dbaea2eab 100644 --- a/de_DE/docs/delete.html +++ b/de_DE/docs/delete.html @@ -56,8 +56,8 @@ - - + + @@ -202,7 +202,7 @@

- + diff --git a/de_DE/docs/error_handling.html b/de_DE/docs/error_handling.html index 608d127d37e..cbc6ffbfb42 100644 --- a/de_DE/docs/error_handling.html +++ b/de_DE/docs/error_handling.html @@ -56,8 +56,8 @@ - - + + @@ -187,7 +187,7 @@

- + diff --git a/de_DE/docs/generic_interface.html b/de_DE/docs/generic_interface.html index accf2cd770d..83ad7ae3c31 100644 --- a/de_DE/docs/generic_interface.html +++ b/de_DE/docs/generic_interface.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

diff --git a/de_DE/docs/gorm_config.html b/de_DE/docs/gorm_config.html index 94e23add88d..53c3cb34940 100644 --- a/de_DE/docs/gorm_config.html +++ b/de_DE/docs/gorm_config.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

diff --git a/de_DE/docs/has_many.html b/de_DE/docs/has_many.html index 9cb78a2efd7..3129df434b6 100644 --- a/de_DE/docs/has_many.html +++ b/de_DE/docs/has_many.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/de_DE/docs/has_one.html b/de_DE/docs/has_one.html index 762eccb33dc..9482972c73f 100644 --- a/de_DE/docs/has_one.html +++ b/de_DE/docs/has_one.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/de_DE/docs/hints.html b/de_DE/docs/hints.html index 80c5d72da62..eb1162b87a8 100644 --- a/de_DE/docs/hints.html +++ b/de_DE/docs/hints.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

- + diff --git a/de_DE/docs/hooks.html b/de_DE/docs/hooks.html index d4f11443b0f..9e0827afbfa 100644 --- a/de_DE/docs/hooks.html +++ b/de_DE/docs/hooks.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/de_DE/docs/index.html b/de_DE/docs/index.html index 2f83d337d67..7f206b18e77 100644 --- a/de_DE/docs/index.html +++ b/de_DE/docs/index.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

diff --git a/de_DE/docs/indexes.html b/de_DE/docs/indexes.html index eb6a7ee903d..682735d278a 100644 --- a/de_DE/docs/indexes.html +++ b/de_DE/docs/indexes.html @@ -56,8 +56,8 @@ - - + + @@ -179,7 +179,7 @@

diff --git a/de_DE/docs/logger.html b/de_DE/docs/logger.html index 36cfcdd404a..f204cb1c08d 100644 --- a/de_DE/docs/logger.html +++ b/de_DE/docs/logger.html @@ -56,8 +56,8 @@ - - + + @@ -166,7 +166,7 @@

diff --git a/de_DE/docs/many_to_many.html b/de_DE/docs/many_to_many.html index 3b3ee3af3bf..bd83718fd56 100644 --- a/de_DE/docs/many_to_many.html +++ b/de_DE/docs/many_to_many.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/de_DE/docs/method_chaining.html b/de_DE/docs/method_chaining.html index 7cb827e5909..13a3fd429a8 100644 --- a/de_DE/docs/method_chaining.html +++ b/de_DE/docs/method_chaining.html @@ -56,8 +56,8 @@ - - + + @@ -210,7 +210,7 @@

- + diff --git a/de_DE/docs/migration.html b/de_DE/docs/migration.html index 99a77eef51d..ffcc351d6cc 100644 --- a/de_DE/docs/migration.html +++ b/de_DE/docs/migration.html @@ -56,8 +56,8 @@ - - + + @@ -206,7 +206,7 @@

- + diff --git a/de_DE/docs/models.html b/de_DE/docs/models.html index 68912764a49..6c816b927db 100644 --- a/de_DE/docs/models.html +++ b/de_DE/docs/models.html @@ -56,8 +56,8 @@ - - + + @@ -315,7 +315,7 @@

diff --git a/de_DE/docs/performance.html b/de_DE/docs/performance.html index 5d22b2c7905..83a59635bda 100644 --- a/de_DE/docs/performance.html +++ b/de_DE/docs/performance.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/de_DE/docs/polymorphism.html b/de_DE/docs/polymorphism.html index 0cc3c607aa6..804b5cf3aff 100644 --- a/de_DE/docs/polymorphism.html +++ b/de_DE/docs/polymorphism.html @@ -32,8 +32,8 @@ - - + + @@ -142,7 +142,7 @@

Polymorphism

- +
diff --git a/de_DE/docs/preload.html b/de_DE/docs/preload.html index 8c76342797f..ca921a59568 100644 --- a/de_DE/docs/preload.html +++ b/de_DE/docs/preload.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/de_DE/docs/prometheus.html b/de_DE/docs/prometheus.html index aa8e78c8b27..19a43efcaff 100644 --- a/de_DE/docs/prometheus.html +++ b/de_DE/docs/prometheus.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- + diff --git a/de_DE/docs/query.html b/de_DE/docs/query.html index 3624188d88b..8a71da5d859 100644 --- a/de_DE/docs/query.html +++ b/de_DE/docs/query.html @@ -56,8 +56,8 @@ - - + + @@ -243,7 +243,7 @@

- + diff --git a/de_DE/docs/scopes.html b/de_DE/docs/scopes.html index 9fbab14e84f..5b7764259cf 100644 --- a/de_DE/docs/scopes.html +++ b/de_DE/docs/scopes.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/de_DE/docs/security.html b/de_DE/docs/security.html index e67506c6ec8..93eb05c64f3 100644 --- a/de_DE/docs/security.html +++ b/de_DE/docs/security.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/de_DE/docs/serializer.html b/de_DE/docs/serializer.html index d7a0246b334..9d34798b60d 100644 --- a/de_DE/docs/serializer.html +++ b/de_DE/docs/serializer.html @@ -56,8 +56,8 @@ - - + + @@ -171,7 +171,7 @@

- + diff --git a/de_DE/docs/session.html b/de_DE/docs/session.html index 6cd43c2089b..15ab573c302 100644 --- a/de_DE/docs/session.html +++ b/de_DE/docs/session.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

diff --git a/de_DE/docs/settings.html b/de_DE/docs/settings.html index c6842e2b119..ab930db481c 100644 --- a/de_DE/docs/settings.html +++ b/de_DE/docs/settings.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/de_DE/docs/sharding.html b/de_DE/docs/sharding.html index ecd05d0302a..dcd849a72b9 100644 --- a/de_DE/docs/sharding.html +++ b/de_DE/docs/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -168,7 +168,7 @@

- + diff --git a/de_DE/docs/sql_builder.html b/de_DE/docs/sql_builder.html index 4fcee2eb6dc..5e75c01289a 100644 --- a/de_DE/docs/sql_builder.html +++ b/de_DE/docs/sql_builder.html @@ -56,8 +56,8 @@ - - + + @@ -207,7 +207,7 @@

diff --git a/de_DE/docs/transactions.html b/de_DE/docs/transactions.html index 82767e2a427..d8891cda777 100644 --- a/de_DE/docs/transactions.html +++ b/de_DE/docs/transactions.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/de_DE/docs/update.html b/de_DE/docs/update.html index 70b0ec27559..fb002378b9a 100644 --- a/de_DE/docs/update.html +++ b/de_DE/docs/update.html @@ -56,8 +56,8 @@ - - + + @@ -208,7 +208,7 @@

- + diff --git a/de_DE/docs/v2_release_note.html b/de_DE/docs/v2_release_note.html index fbe534a7b4f..d891893d667 100644 --- a/de_DE/docs/v2_release_note.html +++ b/de_DE/docs/v2_release_note.html @@ -56,8 +56,8 @@ - - + + @@ -355,7 +355,7 @@

- + diff --git a/de_DE/docs/write_driver.html b/de_DE/docs/write_driver.html index d1a7cdbf1f8..d32cbe36f86 100644 --- a/de_DE/docs/write_driver.html +++ b/de_DE/docs/write_driver.html @@ -56,8 +56,8 @@ - - + + @@ -192,7 +192,7 @@

- + diff --git a/de_DE/docs/write_plugins.html b/de_DE/docs/write_plugins.html index 567e49a9460..7c443d19c8d 100644 --- a/de_DE/docs/write_plugins.html +++ b/de_DE/docs/write_plugins.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

diff --git a/de_DE/gen.html b/de_DE/gen.html index b2b498c093a..9a0007d97b4 100644 --- a/de_DE/gen.html +++ b/de_DE/gen.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/de_DE/gen/associations.html b/de_DE/gen/associations.html index d8732e999f2..45db667f82f 100644 --- a/de_DE/gen/associations.html +++ b/de_DE/gen/associations.html @@ -56,8 +56,8 @@ - - + + @@ -215,7 +215,7 @@

diff --git a/de_DE/gen/clause.html b/de_DE/gen/clause.html index fc669c09e97..9449069d62c 100644 --- a/de_DE/gen/clause.html +++ b/de_DE/gen/clause.html @@ -56,8 +56,8 @@ - - + + @@ -156,7 +156,7 @@

- + diff --git a/de_DE/gen/create.html b/de_DE/gen/create.html index 7fb230cf4e3..865d7bd2482 100644 --- a/de_DE/gen/create.html +++ b/de_DE/gen/create.html @@ -56,8 +56,8 @@ - - + + @@ -167,7 +167,7 @@

- + diff --git a/de_DE/gen/dao.html b/de_DE/gen/dao.html index 1b1c0c5fc80..7f56829033e 100644 --- a/de_DE/gen/dao.html +++ b/de_DE/gen/dao.html @@ -56,8 +56,8 @@ - - + + @@ -143,7 +143,7 @@

DAO Overview

Gen follows the Configuration As Code practice to generate the DAO interface, here is the introduction to the configuration.

Configuration

You need to write the configuration as a runnable golang program, usually, the program will be organized in a sub-directory of your application.

-
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany"),
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}
+
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany")
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}

Run the above program, it will generate codes into directory ../dal, you can import the dal package in your application and use its interface to query data

gen.Config

type Config struct {
OutPath string // query code path
OutFile string // query code file name, default: gen.go
ModelPkgPath string // generated model code's package name
WithUnitTest bool // generate unit test for query code

FieldNullable bool // generate pointer when field is nullable
FieldCoverable bool // generate pointer when field has default value, to fix problem zero value cannot be assign: https://gorm.io/docs/create.html#Default-Values
FieldSignable bool // detect integer field's unsigned type, adjust generated data type
FieldWithIndexTag bool // generate with gorm index tag
FieldWithTypeTag bool // generate with gorm column type tag

Mode GenerateMode // generator modes
}
@@ -249,7 +249,7 @@

- + diff --git a/de_DE/gen/database_to_structs.html b/de_DE/gen/database_to_structs.html index ed4b0ecdc34..9a79c7dbf70 100644 --- a/de_DE/gen/database_to_structs.html +++ b/de_DE/gen/database_to_structs.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

diff --git a/de_DE/gen/delete.html b/de_DE/gen/delete.html index 30584325917..3879875b22f 100644 --- a/de_DE/gen/delete.html +++ b/de_DE/gen/delete.html @@ -56,8 +56,8 @@ - - + + @@ -174,7 +174,7 @@

- + diff --git a/de_DE/gen/dynamic_sql.html b/de_DE/gen/dynamic_sql.html index 470f6b7208f..c9faa76dbdc 100644 --- a/de_DE/gen/dynamic_sql.html +++ b/de_DE/gen/dynamic_sql.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/de_DE/gen/gen_tool.html b/de_DE/gen/gen_tool.html index 3ae305dc065..4419ada4d9a 100644 --- a/de_DE/gen/gen_tool.html +++ b/de_DE/gen/gen_tool.html @@ -56,8 +56,8 @@ - - + + @@ -175,7 +175,7 @@

- + diff --git a/de_DE/gen/index.html b/de_DE/gen/index.html index b785b9cb064..9b79cbcc78a 100644 --- a/de_DE/gen/index.html +++ b/de_DE/gen/index.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/de_DE/gen/query.html b/de_DE/gen/query.html index 8ee32332470..8c1bf148723 100644 --- a/de_DE/gen/query.html +++ b/de_DE/gen/query.html @@ -56,8 +56,8 @@ - - + + @@ -312,7 +312,7 @@

- + diff --git a/de_DE/gen/rawsql_driver.html b/de_DE/gen/rawsql_driver.html index e45f49550b9..6796fed3c77 100644 --- a/de_DE/gen/rawsql_driver.html +++ b/de_DE/gen/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/de_DE/gen/sql_annotation.html b/de_DE/gen/sql_annotation.html index a75b8535fd6..9c8dd402ce4 100644 --- a/de_DE/gen/sql_annotation.html +++ b/de_DE/gen/sql_annotation.html @@ -56,8 +56,8 @@ - - + + @@ -254,7 +254,7 @@

- + diff --git a/de_DE/gen/transaction.html b/de_DE/gen/transaction.html index 6ba8a9c57ff..316307c9e48 100644 --- a/de_DE/gen/transaction.html +++ b/de_DE/gen/transaction.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/de_DE/gen/update.html b/de_DE/gen/update.html index 14cc719aaa3..0dad7683c56 100644 --- a/de_DE/gen/update.html +++ b/de_DE/gen/update.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/de_DE/gorm.html b/de_DE/gorm.html index 42d3f38ea80..d45ed8e70cd 100644 --- a/de_DE/gorm.html +++ b/de_DE/gorm.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- +
diff --git a/de_DE/gormx.html b/de_DE/gormx.html index b98d6c8605f..18e571576d4 100644 --- a/de_DE/gormx.html +++ b/de_DE/gormx.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/de_DE/hints.html b/de_DE/hints.html index 9855f0d2c5b..507f6554364 100644 --- a/de_DE/hints.html +++ b/de_DE/hints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/de_DE/index.html b/de_DE/index.html index 4f5acdcbe97..ac2dd1ff4c9 100644 --- a/de_DE/index.html +++ b/de_DE/index.html @@ -56,8 +56,8 @@ - - + + diff --git a/de_DE/rawsql.html b/de_DE/rawsql.html index aebe0081b23..47aab2ce3f8 100644 --- a/de_DE/rawsql.html +++ b/de_DE/rawsql.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/de_DE/rawsql_driver.html b/de_DE/rawsql_driver.html index 3182f6693e3..a0a88c047c5 100644 --- a/de_DE/rawsql_driver.html +++ b/de_DE/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/de_DE/sharding.html b/de_DE/sharding.html index b818024ec8f..e613cf631ba 100644 --- a/de_DE/sharding.html +++ b/de_DE/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/de_DE/stats.html b/de_DE/stats.html index e1fbdb30edc..06073739ca3 100644 --- a/de_DE/stats.html +++ b/de_DE/stats.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/docs/advanced_query.html b/docs/advanced_query.html index 858489f0d8d..7c3de3a26af 100644 --- a/docs/advanced_query.html +++ b/docs/advanced_query.html @@ -56,8 +56,8 @@ - - + + @@ -253,7 +253,7 @@

- + diff --git a/docs/associations.html b/docs/associations.html index 962040cb5bd..5e4a265ea3f 100644 --- a/docs/associations.html +++ b/docs/associations.html @@ -56,8 +56,8 @@ - - + + @@ -287,7 +287,7 @@

diff --git a/docs/belongs_to.html b/docs/belongs_to.html index 63dddc28088..03e2c571251 100644 --- a/docs/belongs_to.html +++ b/docs/belongs_to.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/docs/changelog.html b/docs/changelog.html index 87095e49e3e..9153958db06 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/docs/composite_primary_key.html b/docs/composite_primary_key.html index d682e8a9040..04284f70b1a 100644 --- a/docs/composite_primary_key.html +++ b/docs/composite_primary_key.html @@ -56,8 +56,8 @@ - - + + @@ -158,7 +158,7 @@

Composite Primary Key

- +
diff --git a/docs/connecting_to_the_database.html b/docs/connecting_to_the_database.html index 0716c5299d2..5f682b76762 100644 --- a/docs/connecting_to_the_database.html +++ b/docs/connecting_to_the_database.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

- + diff --git a/docs/constraints.html b/docs/constraints.html index 231ad257898..cf9e6e9e9cd 100644 --- a/docs/constraints.html +++ b/docs/constraints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/docs/context.html b/docs/context.html index af3918832d3..8a60110de76 100644 --- a/docs/context.html +++ b/docs/context.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

- + diff --git a/docs/conventions.html b/docs/conventions.html index 63f7bfb8cd7..8819654c073 100644 --- a/docs/conventions.html +++ b/docs/conventions.html @@ -56,8 +56,8 @@ - - + + @@ -194,7 +194,7 @@

- + diff --git a/docs/create.html b/docs/create.html index 0f0ac1cd84e..0ff0489c11e 100644 --- a/docs/create.html +++ b/docs/create.html @@ -56,8 +56,8 @@ - - + + @@ -228,7 +228,7 @@

- + diff --git a/docs/data_types.html b/docs/data_types.html index 1940dcb6202..668a0806647 100644 --- a/docs/data_types.html +++ b/docs/data_types.html @@ -56,8 +56,8 @@ - - + + @@ -189,7 +189,7 @@

- + diff --git a/docs/dbresolver.html b/docs/dbresolver.html index 86efd236669..8e37d363941 100644 --- a/docs/dbresolver.html +++ b/docs/dbresolver.html @@ -56,8 +56,8 @@ - - + + @@ -183,7 +183,7 @@

diff --git a/docs/delete.html b/docs/delete.html index e257648ff38..35941fdda64 100644 --- a/docs/delete.html +++ b/docs/delete.html @@ -56,8 +56,8 @@ - - + + @@ -202,7 +202,7 @@

- + diff --git a/docs/error_handling.html b/docs/error_handling.html index b8bdb78ba8d..e5134e2e810 100644 --- a/docs/error_handling.html +++ b/docs/error_handling.html @@ -56,8 +56,8 @@ - - + + @@ -187,7 +187,7 @@

- + diff --git a/docs/generic_interface.html b/docs/generic_interface.html index e1cfad3293e..f6cb870e3a9 100644 --- a/docs/generic_interface.html +++ b/docs/generic_interface.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

diff --git a/docs/gorm_config.html b/docs/gorm_config.html index b30245b1c5a..655b7384799 100644 --- a/docs/gorm_config.html +++ b/docs/gorm_config.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

diff --git a/docs/has_many.html b/docs/has_many.html index af3c3eef897..ba29bfd31cd 100644 --- a/docs/has_many.html +++ b/docs/has_many.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/docs/has_one.html b/docs/has_one.html index 2d9ee6dc967..6dba44f3be4 100644 --- a/docs/has_one.html +++ b/docs/has_one.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/docs/hints.html b/docs/hints.html index a34adffcc17..536b00f74d3 100644 --- a/docs/hints.html +++ b/docs/hints.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

- + diff --git a/docs/hooks.html b/docs/hooks.html index b1f9c32270b..9a6aa462214 100644 --- a/docs/hooks.html +++ b/docs/hooks.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/docs/index.html b/docs/index.html index e927ca18595..f778f9a9de3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/docs/indexes.html b/docs/indexes.html index cee0f7db966..7d688559159 100644 --- a/docs/indexes.html +++ b/docs/indexes.html @@ -56,8 +56,8 @@ - - + + @@ -179,7 +179,7 @@

diff --git a/docs/logger.html b/docs/logger.html index 46c3f90981e..3104b9a656a 100644 --- a/docs/logger.html +++ b/docs/logger.html @@ -56,8 +56,8 @@ - - + + @@ -166,7 +166,7 @@

diff --git a/docs/many_to_many.html b/docs/many_to_many.html index a6316c89527..8529db3f54f 100644 --- a/docs/many_to_many.html +++ b/docs/many_to_many.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/docs/method_chaining.html b/docs/method_chaining.html index 089097bb7c2..29410aa71be 100644 --- a/docs/method_chaining.html +++ b/docs/method_chaining.html @@ -56,8 +56,8 @@ - - + + @@ -210,7 +210,7 @@

- + diff --git a/docs/migration.html b/docs/migration.html index 37dc4a6211c..6f041bf4780 100644 --- a/docs/migration.html +++ b/docs/migration.html @@ -56,8 +56,8 @@ - - + + @@ -206,7 +206,7 @@

- + diff --git a/docs/models.html b/docs/models.html index 342d8447938..ff48e10c092 100644 --- a/docs/models.html +++ b/docs/models.html @@ -56,8 +56,8 @@ - - + + @@ -315,7 +315,7 @@

diff --git a/docs/performance.html b/docs/performance.html index fc0504b5b13..7387f898424 100644 --- a/docs/performance.html +++ b/docs/performance.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/docs/polymorphism.html b/docs/polymorphism.html index 1c1e99c090e..a72803d158e 100644 --- a/docs/polymorphism.html +++ b/docs/polymorphism.html @@ -32,8 +32,8 @@ - - + + @@ -143,7 +143,7 @@

Polymorphism

- +
diff --git a/docs/preload.html b/docs/preload.html index db0dbd99652..65503f8999f 100644 --- a/docs/preload.html +++ b/docs/preload.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/docs/prometheus.html b/docs/prometheus.html index 93cecef035e..7358a27beed 100644 --- a/docs/prometheus.html +++ b/docs/prometheus.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- + diff --git a/docs/query.html b/docs/query.html index 3bcae4fc063..411272fd4bb 100644 --- a/docs/query.html +++ b/docs/query.html @@ -56,8 +56,8 @@ - - + + @@ -243,7 +243,7 @@

- + diff --git a/docs/scopes.html b/docs/scopes.html index 92a4a2e59aa..c1e02923526 100644 --- a/docs/scopes.html +++ b/docs/scopes.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/docs/security.html b/docs/security.html index a3021a20d06..349ae9288d3 100644 --- a/docs/security.html +++ b/docs/security.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/docs/serializer.html b/docs/serializer.html index 4c7ebd597eb..0ae13b9369a 100644 --- a/docs/serializer.html +++ b/docs/serializer.html @@ -56,8 +56,8 @@ - - + + @@ -171,7 +171,7 @@

- + diff --git a/docs/session.html b/docs/session.html index 72f4c4e50d0..f146126d570 100644 --- a/docs/session.html +++ b/docs/session.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

diff --git a/docs/settings.html b/docs/settings.html index ad9956289bc..6ecc8464662 100644 --- a/docs/settings.html +++ b/docs/settings.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/docs/sharding.html b/docs/sharding.html index cbacaf94c14..3c0fa167655 100644 --- a/docs/sharding.html +++ b/docs/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -168,7 +168,7 @@

- + diff --git a/docs/sql_builder.html b/docs/sql_builder.html index df8fd5aa9d6..620a3883f7f 100644 --- a/docs/sql_builder.html +++ b/docs/sql_builder.html @@ -56,8 +56,8 @@ - - + + @@ -207,7 +207,7 @@

diff --git a/docs/transactions.html b/docs/transactions.html index 2bf7cf0107d..25ce30c46e6 100644 --- a/docs/transactions.html +++ b/docs/transactions.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/docs/update.html b/docs/update.html index f4f90e12b6a..369b61485df 100644 --- a/docs/update.html +++ b/docs/update.html @@ -56,8 +56,8 @@ - - + + @@ -208,7 +208,7 @@

- + diff --git a/docs/v2_release_note.html b/docs/v2_release_note.html index dc3f2c97097..11fb04b435c 100644 --- a/docs/v2_release_note.html +++ b/docs/v2_release_note.html @@ -56,8 +56,8 @@ - - + + @@ -355,7 +355,7 @@

- + diff --git a/docs/write_driver.html b/docs/write_driver.html index 8d553246021..f3ff824c517 100644 --- a/docs/write_driver.html +++ b/docs/write_driver.html @@ -56,8 +56,8 @@ - - + + @@ -192,7 +192,7 @@

- + diff --git a/docs/write_plugins.html b/docs/write_plugins.html index 8abde3cea0d..3fb054fc923 100644 --- a/docs/write_plugins.html +++ b/docs/write_plugins.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

diff --git a/es_ES/404.html b/es_ES/404.html index 037a72873e0..8b96b6364a3 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 9ed345b4ca8..f52c1e9a0fd 100644 --- a/es_ES/community.html +++ b/es_ES/community.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/es_ES/contribute.html b/es_ES/contribute.html index 041f02aae87..12619da812c 100644 --- a/es_ES/contribute.html +++ b/es_ES/contribute.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/es_ES/datatypes.html b/es_ES/datatypes.html index 275792cbac7..9f26eabddd5 100644 --- a/es_ES/datatypes.html +++ b/es_ES/datatypes.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/es_ES/docs/advanced_query.html b/es_ES/docs/advanced_query.html index ef53fa3cb44..8bb99e47fa4 100644 --- a/es_ES/docs/advanced_query.html +++ b/es_ES/docs/advanced_query.html @@ -32,8 +32,8 @@ - - + + @@ -229,7 +229,7 @@

- + diff --git a/es_ES/docs/associations.html b/es_ES/docs/associations.html index ee186faade1..e267340f81c 100644 --- a/es_ES/docs/associations.html +++ b/es_ES/docs/associations.html @@ -56,8 +56,8 @@ - - + + @@ -287,7 +287,7 @@

diff --git a/es_ES/docs/belongs_to.html b/es_ES/docs/belongs_to.html index 9f0cca97704..a2538ee6387 100644 --- a/es_ES/docs/belongs_to.html +++ b/es_ES/docs/belongs_to.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/es_ES/docs/changelog.html b/es_ES/docs/changelog.html index 12ec0913f15..1526301ad8a 100644 --- a/es_ES/docs/changelog.html +++ b/es_ES/docs/changelog.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/es_ES/docs/composite_primary_key.html b/es_ES/docs/composite_primary_key.html index 86ee690397d..403e517777b 100644 --- a/es_ES/docs/composite_primary_key.html +++ b/es_ES/docs/composite_primary_key.html @@ -56,8 +56,8 @@ - - + + @@ -158,7 +158,7 @@

Llave primaria compuesta

- +
diff --git a/es_ES/docs/connecting_to_the_database.html b/es_ES/docs/connecting_to_the_database.html index 9e0ae086d64..a8a9def563b 100644 --- a/es_ES/docs/connecting_to_the_database.html +++ b/es_ES/docs/connecting_to_the_database.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

- + diff --git a/es_ES/docs/constraints.html b/es_ES/docs/constraints.html index 3458993ade9..f7a3adc7614 100644 --- a/es_ES/docs/constraints.html +++ b/es_ES/docs/constraints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/es_ES/docs/context.html b/es_ES/docs/context.html index 4e1ae9f51e2..e6fdde4da83 100644 --- a/es_ES/docs/context.html +++ b/es_ES/docs/context.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

- + diff --git a/es_ES/docs/conventions.html b/es_ES/docs/conventions.html index bef1f8c6f28..2f5733c6301 100644 --- a/es_ES/docs/conventions.html +++ b/es_ES/docs/conventions.html @@ -56,8 +56,8 @@ - - + + @@ -194,7 +194,7 @@

- + diff --git a/es_ES/docs/create.html b/es_ES/docs/create.html index 46798b5cf16..2409478bc5f 100644 --- a/es_ES/docs/create.html +++ b/es_ES/docs/create.html @@ -56,8 +56,8 @@ - - + + @@ -228,7 +228,7 @@

- + diff --git a/es_ES/docs/data_types.html b/es_ES/docs/data_types.html index 0a58ad80a69..0e18042a6ad 100644 --- a/es_ES/docs/data_types.html +++ b/es_ES/docs/data_types.html @@ -56,8 +56,8 @@ - - + + @@ -189,7 +189,7 @@

- + diff --git a/es_ES/docs/dbresolver.html b/es_ES/docs/dbresolver.html index 1c9b418a71b..00b82d66ffe 100644 --- a/es_ES/docs/dbresolver.html +++ b/es_ES/docs/dbresolver.html @@ -56,8 +56,8 @@ - - + + @@ -183,7 +183,7 @@

diff --git a/es_ES/docs/delete.html b/es_ES/docs/delete.html index 81fd5a07a9a..2395188af32 100644 --- a/es_ES/docs/delete.html +++ b/es_ES/docs/delete.html @@ -56,8 +56,8 @@ - - + + @@ -202,7 +202,7 @@

- + diff --git a/es_ES/docs/error_handling.html b/es_ES/docs/error_handling.html index 63ee3ddb67e..0e104470be7 100644 --- a/es_ES/docs/error_handling.html +++ b/es_ES/docs/error_handling.html @@ -56,8 +56,8 @@ - - + + @@ -187,7 +187,7 @@

- + diff --git a/es_ES/docs/generic_interface.html b/es_ES/docs/generic_interface.html index c49debdc993..d37da110d0f 100644 --- a/es_ES/docs/generic_interface.html +++ b/es_ES/docs/generic_interface.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

diff --git a/es_ES/docs/gorm_config.html b/es_ES/docs/gorm_config.html index bd41f245165..b81961ab891 100644 --- a/es_ES/docs/gorm_config.html +++ b/es_ES/docs/gorm_config.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

diff --git a/es_ES/docs/has_many.html b/es_ES/docs/has_many.html index 2c7e0478bb3..4f72032f66a 100644 --- a/es_ES/docs/has_many.html +++ b/es_ES/docs/has_many.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/es_ES/docs/has_one.html b/es_ES/docs/has_one.html index 3b9ffea7051..8819fe914bf 100644 --- a/es_ES/docs/has_one.html +++ b/es_ES/docs/has_one.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/es_ES/docs/hints.html b/es_ES/docs/hints.html index 3f1db3eaa81..e79035dee12 100644 --- a/es_ES/docs/hints.html +++ b/es_ES/docs/hints.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

- + diff --git a/es_ES/docs/hooks.html b/es_ES/docs/hooks.html index dc23c46cd71..c2f7def8ad8 100644 --- a/es_ES/docs/hooks.html +++ b/es_ES/docs/hooks.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/es_ES/docs/index.html b/es_ES/docs/index.html index e3877584a53..5df85c6dfc8 100644 --- a/es_ES/docs/index.html +++ b/es_ES/docs/index.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/es_ES/docs/indexes.html b/es_ES/docs/indexes.html index 26c6092e826..47f68e6fb78 100644 --- a/es_ES/docs/indexes.html +++ b/es_ES/docs/indexes.html @@ -56,8 +56,8 @@ - - + + @@ -179,7 +179,7 @@

diff --git a/es_ES/docs/logger.html b/es_ES/docs/logger.html index 1b27fd2f2bb..901b7b5d7a1 100644 --- a/es_ES/docs/logger.html +++ b/es_ES/docs/logger.html @@ -56,8 +56,8 @@ - - + + @@ -166,7 +166,7 @@

diff --git a/es_ES/docs/many_to_many.html b/es_ES/docs/many_to_many.html index 51cb07732cc..671978349cc 100644 --- a/es_ES/docs/many_to_many.html +++ b/es_ES/docs/many_to_many.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/es_ES/docs/method_chaining.html b/es_ES/docs/method_chaining.html index c7cb8ae80fa..e2abdb574bf 100644 --- a/es_ES/docs/method_chaining.html +++ b/es_ES/docs/method_chaining.html @@ -56,8 +56,8 @@ - - + + @@ -210,7 +210,7 @@

- + diff --git a/es_ES/docs/migration.html b/es_ES/docs/migration.html index 64b67e3d3f3..cd589fd33ca 100644 --- a/es_ES/docs/migration.html +++ b/es_ES/docs/migration.html @@ -56,8 +56,8 @@ - - + + @@ -206,7 +206,7 @@

- + diff --git a/es_ES/docs/models.html b/es_ES/docs/models.html index 14c763f91bb..070f609b829 100644 --- a/es_ES/docs/models.html +++ b/es_ES/docs/models.html @@ -56,8 +56,8 @@ - - + + @@ -315,7 +315,7 @@

diff --git a/es_ES/docs/performance.html b/es_ES/docs/performance.html index 1ca34fcdf69..d397d22a94c 100644 --- a/es_ES/docs/performance.html +++ b/es_ES/docs/performance.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/es_ES/docs/polymorphism.html b/es_ES/docs/polymorphism.html index 67224f152df..daea14e5a5c 100644 --- a/es_ES/docs/polymorphism.html +++ b/es_ES/docs/polymorphism.html @@ -32,8 +32,8 @@ - - + + @@ -142,7 +142,7 @@

Polymorphism

- +
diff --git a/es_ES/docs/preload.html b/es_ES/docs/preload.html index 0b0ac840a94..96d30db25ce 100644 --- a/es_ES/docs/preload.html +++ b/es_ES/docs/preload.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/es_ES/docs/prometheus.html b/es_ES/docs/prometheus.html index fbbc47c1edb..636889bc947 100644 --- a/es_ES/docs/prometheus.html +++ b/es_ES/docs/prometheus.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- + diff --git a/es_ES/docs/query.html b/es_ES/docs/query.html index b6aaae87ab6..d31e049cdb2 100644 --- a/es_ES/docs/query.html +++ b/es_ES/docs/query.html @@ -56,8 +56,8 @@ - - + + @@ -243,7 +243,7 @@

- + diff --git a/es_ES/docs/scopes.html b/es_ES/docs/scopes.html index 06be72a2f2e..7629746cb52 100644 --- a/es_ES/docs/scopes.html +++ b/es_ES/docs/scopes.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/es_ES/docs/security.html b/es_ES/docs/security.html index a02dfd8bfee..dcbbe605073 100644 --- a/es_ES/docs/security.html +++ b/es_ES/docs/security.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/es_ES/docs/serializer.html b/es_ES/docs/serializer.html index 3ecb947e0ac..be7acd28053 100644 --- a/es_ES/docs/serializer.html +++ b/es_ES/docs/serializer.html @@ -56,8 +56,8 @@ - - + + @@ -171,7 +171,7 @@

- + diff --git a/es_ES/docs/session.html b/es_ES/docs/session.html index 8f5e4947f8d..5ee0063d523 100644 --- a/es_ES/docs/session.html +++ b/es_ES/docs/session.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

diff --git a/es_ES/docs/settings.html b/es_ES/docs/settings.html index f8c7bfad563..069a330c0f6 100644 --- a/es_ES/docs/settings.html +++ b/es_ES/docs/settings.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/es_ES/docs/sharding.html b/es_ES/docs/sharding.html index 5e29faeb676..1710483adef 100644 --- a/es_ES/docs/sharding.html +++ b/es_ES/docs/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -168,7 +168,7 @@

- + diff --git a/es_ES/docs/sql_builder.html b/es_ES/docs/sql_builder.html index f9407703ff7..38e87ff34a4 100644 --- a/es_ES/docs/sql_builder.html +++ b/es_ES/docs/sql_builder.html @@ -56,8 +56,8 @@ - - + + @@ -207,7 +207,7 @@

diff --git a/es_ES/docs/transactions.html b/es_ES/docs/transactions.html index e4c2e54a6d1..a298d2ceb8f 100644 --- a/es_ES/docs/transactions.html +++ b/es_ES/docs/transactions.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/es_ES/docs/update.html b/es_ES/docs/update.html index 5c6c85dd354..d9ef1a0f549 100644 --- a/es_ES/docs/update.html +++ b/es_ES/docs/update.html @@ -56,8 +56,8 @@ - - + + @@ -208,7 +208,7 @@

- + diff --git a/es_ES/docs/v2_release_note.html b/es_ES/docs/v2_release_note.html index 645f758bd09..173d404169d 100644 --- a/es_ES/docs/v2_release_note.html +++ b/es_ES/docs/v2_release_note.html @@ -56,8 +56,8 @@ - - + + @@ -355,7 +355,7 @@

- + diff --git a/es_ES/docs/write_driver.html b/es_ES/docs/write_driver.html index 6880b33da3f..05cc86144b4 100644 --- a/es_ES/docs/write_driver.html +++ b/es_ES/docs/write_driver.html @@ -56,8 +56,8 @@ - - + + @@ -192,7 +192,7 @@

- + diff --git a/es_ES/docs/write_plugins.html b/es_ES/docs/write_plugins.html index 8b040f3b5e8..e9aa154728b 100644 --- a/es_ES/docs/write_plugins.html +++ b/es_ES/docs/write_plugins.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

diff --git a/es_ES/gen.html b/es_ES/gen.html index e15ae366d3f..bc04f893d29 100644 --- a/es_ES/gen.html +++ b/es_ES/gen.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/es_ES/gen/associations.html b/es_ES/gen/associations.html index fa2e18d509e..dc8505876b2 100644 --- a/es_ES/gen/associations.html +++ b/es_ES/gen/associations.html @@ -56,8 +56,8 @@ - - + + @@ -215,7 +215,7 @@

diff --git a/es_ES/gen/clause.html b/es_ES/gen/clause.html index 808075f5a97..ba7af7f3b1e 100644 --- a/es_ES/gen/clause.html +++ b/es_ES/gen/clause.html @@ -56,8 +56,8 @@ - - + + @@ -156,7 +156,7 @@

- + diff --git a/es_ES/gen/create.html b/es_ES/gen/create.html index c660e2ee185..c86f552ce9b 100644 --- a/es_ES/gen/create.html +++ b/es_ES/gen/create.html @@ -56,8 +56,8 @@ - - + + @@ -167,7 +167,7 @@

- + diff --git a/es_ES/gen/dao.html b/es_ES/gen/dao.html index bfc3426732a..b408816e1bb 100644 --- a/es_ES/gen/dao.html +++ b/es_ES/gen/dao.html @@ -56,8 +56,8 @@ - - + + @@ -143,7 +143,7 @@

DAO Overview

Gen follows the Configuration As Code practice to generate the DAO interface, here is the introduction to the configuration.

Configuration

You need to write the configuration as a runnable golang program, usually, the program will be organized in a sub-directory of your application.

-
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany"),
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}
+
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany")
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}

Run the above program, it will generate codes into directory ../dal, you can import the dal package in your application and use its interface to query data

gen.Config

type Config struct {
OutPath string // query code path
OutFile string // query code file name, default: gen.go
ModelPkgPath string // generated model code's package name
WithUnitTest bool // generate unit test for query code

FieldNullable bool // generate pointer when field is nullable
FieldCoverable bool // generate pointer when field has default value, to fix problem zero value cannot be assign: https://gorm.io/docs/create.html#Default-Values
FieldSignable bool // detect integer field's unsigned type, adjust generated data type
FieldWithIndexTag bool // generate with gorm index tag
FieldWithTypeTag bool // generate with gorm column type tag

Mode GenerateMode // generator modes
}
@@ -249,7 +249,7 @@

- + diff --git a/es_ES/gen/database_to_structs.html b/es_ES/gen/database_to_structs.html index 78632a4260b..48a0f1f8045 100644 --- a/es_ES/gen/database_to_structs.html +++ b/es_ES/gen/database_to_structs.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

diff --git a/es_ES/gen/delete.html b/es_ES/gen/delete.html index 4e2f17af5be..8b0c75fe4ac 100644 --- a/es_ES/gen/delete.html +++ b/es_ES/gen/delete.html @@ -56,8 +56,8 @@ - - + + @@ -174,7 +174,7 @@

- + diff --git a/es_ES/gen/dynamic_sql.html b/es_ES/gen/dynamic_sql.html index f1605e68be5..f8a5c466bb2 100644 --- a/es_ES/gen/dynamic_sql.html +++ b/es_ES/gen/dynamic_sql.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/es_ES/gen/gen_tool.html b/es_ES/gen/gen_tool.html index 94078602a49..eec57065909 100644 --- a/es_ES/gen/gen_tool.html +++ b/es_ES/gen/gen_tool.html @@ -56,8 +56,8 @@ - - + + @@ -175,7 +175,7 @@

- + diff --git a/es_ES/gen/index.html b/es_ES/gen/index.html index 4532537aa80..8327b985cea 100644 --- a/es_ES/gen/index.html +++ b/es_ES/gen/index.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/es_ES/gen/query.html b/es_ES/gen/query.html index c0e68523047..ab309323ba7 100644 --- a/es_ES/gen/query.html +++ b/es_ES/gen/query.html @@ -56,8 +56,8 @@ - - + + @@ -312,7 +312,7 @@

- + diff --git a/es_ES/gen/rawsql_driver.html b/es_ES/gen/rawsql_driver.html index 3a8ed0f3c20..9d1d960f284 100644 --- a/es_ES/gen/rawsql_driver.html +++ b/es_ES/gen/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/es_ES/gen/sql_annotation.html b/es_ES/gen/sql_annotation.html index bd92ca70310..9656467750b 100644 --- a/es_ES/gen/sql_annotation.html +++ b/es_ES/gen/sql_annotation.html @@ -56,8 +56,8 @@ - - + + @@ -254,7 +254,7 @@

- + diff --git a/es_ES/gen/transaction.html b/es_ES/gen/transaction.html index 68886cb747a..6b477f9de69 100644 --- a/es_ES/gen/transaction.html +++ b/es_ES/gen/transaction.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/es_ES/gen/update.html b/es_ES/gen/update.html index b90bf3c8066..3996b68c8a9 100644 --- a/es_ES/gen/update.html +++ b/es_ES/gen/update.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/es_ES/gorm.html b/es_ES/gorm.html index c4c08401f31..9eb98985e2c 100644 --- a/es_ES/gorm.html +++ b/es_ES/gorm.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- +
diff --git a/es_ES/gormx.html b/es_ES/gormx.html index c8085127a37..f3a48ba2818 100644 --- a/es_ES/gormx.html +++ b/es_ES/gormx.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/es_ES/hints.html b/es_ES/hints.html index 3faf9c81ea0..ed4b94f382b 100644 --- a/es_ES/hints.html +++ b/es_ES/hints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/es_ES/index.html b/es_ES/index.html index 2f05bac8ecc..d93a58364bf 100644 --- a/es_ES/index.html +++ b/es_ES/index.html @@ -56,8 +56,8 @@ - - + + diff --git a/es_ES/rawsql.html b/es_ES/rawsql.html index 8bd06dec6ef..daaf768e67f 100644 --- a/es_ES/rawsql.html +++ b/es_ES/rawsql.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/es_ES/rawsql_driver.html b/es_ES/rawsql_driver.html index 40b1b6eeda9..40f47de017c 100644 --- a/es_ES/rawsql_driver.html +++ b/es_ES/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/es_ES/sharding.html b/es_ES/sharding.html index af9252bbfdd..27133b7c988 100644 --- a/es_ES/sharding.html +++ b/es_ES/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/es_ES/stats.html b/es_ES/stats.html index e7babd9f0ad..f89decb9923 100644 --- a/es_ES/stats.html +++ b/es_ES/stats.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/fa_IR/404.html b/fa_IR/404.html index 154926c8d0e..64e8a6a837e 100644 --- a/fa_IR/404.html +++ b/fa_IR/404.html @@ -32,8 +32,8 @@ - - + + diff --git a/fr_FR/404.html b/fr_FR/404.html index 6c8ab34cac5..a79a945c290 100644 --- a/fr_FR/404.html +++ b/fr_FR/404.html @@ -32,8 +32,8 @@ - - + + diff --git a/fr_FR/community.html b/fr_FR/community.html index 7832715967e..6ab9d00586f 100644 --- a/fr_FR/community.html +++ b/fr_FR/community.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/fr_FR/contribute.html b/fr_FR/contribute.html index 46871ac251d..addbb7bec3d 100644 --- a/fr_FR/contribute.html +++ b/fr_FR/contribute.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/fr_FR/datatypes.html b/fr_FR/datatypes.html index 81ec24bac37..a4451f505a2 100644 --- a/fr_FR/datatypes.html +++ b/fr_FR/datatypes.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/fr_FR/docs/advanced_query.html b/fr_FR/docs/advanced_query.html index b3649b721c0..2442983bb82 100644 --- a/fr_FR/docs/advanced_query.html +++ b/fr_FR/docs/advanced_query.html @@ -56,8 +56,8 @@ - - + + @@ -253,7 +253,7 @@

- + diff --git a/fr_FR/docs/associations.html b/fr_FR/docs/associations.html index b6b6b6cb1cb..a06e29f35ca 100644 --- a/fr_FR/docs/associations.html +++ b/fr_FR/docs/associations.html @@ -56,8 +56,8 @@ - - + + @@ -287,7 +287,7 @@

diff --git a/fr_FR/docs/belongs_to.html b/fr_FR/docs/belongs_to.html index 6cb36bb16f9..83ccdb6f7f8 100644 --- a/fr_FR/docs/belongs_to.html +++ b/fr_FR/docs/belongs_to.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/fr_FR/docs/changelog.html b/fr_FR/docs/changelog.html index 7cd7d091a0b..51e7b04266b 100644 --- a/fr_FR/docs/changelog.html +++ b/fr_FR/docs/changelog.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/fr_FR/docs/composite_primary_key.html b/fr_FR/docs/composite_primary_key.html index 263db8ecc67..79d4921e016 100644 --- a/fr_FR/docs/composite_primary_key.html +++ b/fr_FR/docs/composite_primary_key.html @@ -56,8 +56,8 @@ - - + + @@ -158,7 +158,7 @@

Clé primaire composite

- +
diff --git a/fr_FR/docs/connecting_to_the_database.html b/fr_FR/docs/connecting_to_the_database.html index 9e6fec640c3..8dd69d63eba 100644 --- a/fr_FR/docs/connecting_to_the_database.html +++ b/fr_FR/docs/connecting_to_the_database.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

- + diff --git a/fr_FR/docs/constraints.html b/fr_FR/docs/constraints.html index b25bfd2176f..8f677bd2bf1 100644 --- a/fr_FR/docs/constraints.html +++ b/fr_FR/docs/constraints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/fr_FR/docs/context.html b/fr_FR/docs/context.html index e8c6b3b73c8..2debc713f71 100644 --- a/fr_FR/docs/context.html +++ b/fr_FR/docs/context.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

- + diff --git a/fr_FR/docs/conventions.html b/fr_FR/docs/conventions.html index 141c1505fc9..4132c63715c 100644 --- a/fr_FR/docs/conventions.html +++ b/fr_FR/docs/conventions.html @@ -56,8 +56,8 @@ - - + + @@ -194,7 +194,7 @@

- + diff --git a/fr_FR/docs/create.html b/fr_FR/docs/create.html index e220b8c72bd..4f0488d5f19 100644 --- a/fr_FR/docs/create.html +++ b/fr_FR/docs/create.html @@ -56,8 +56,8 @@ - - + + @@ -228,7 +228,7 @@

- + diff --git a/fr_FR/docs/data_types.html b/fr_FR/docs/data_types.html index df41be36705..72b033bfb9e 100644 --- a/fr_FR/docs/data_types.html +++ b/fr_FR/docs/data_types.html @@ -56,8 +56,8 @@ - - + + @@ -189,7 +189,7 @@

- + diff --git a/fr_FR/docs/dbresolver.html b/fr_FR/docs/dbresolver.html index 64325cbb975..c06301e138d 100644 --- a/fr_FR/docs/dbresolver.html +++ b/fr_FR/docs/dbresolver.html @@ -56,8 +56,8 @@ - - + + @@ -183,7 +183,7 @@

diff --git a/fr_FR/docs/delete.html b/fr_FR/docs/delete.html index 2c93d3f58fc..07a1579bb96 100644 --- a/fr_FR/docs/delete.html +++ b/fr_FR/docs/delete.html @@ -56,8 +56,8 @@ - - + + @@ -202,7 +202,7 @@

- + diff --git a/fr_FR/docs/error_handling.html b/fr_FR/docs/error_handling.html index 1f12fc029f0..cf567761a1d 100644 --- a/fr_FR/docs/error_handling.html +++ b/fr_FR/docs/error_handling.html @@ -56,8 +56,8 @@ - - + + @@ -187,7 +187,7 @@

- + diff --git a/fr_FR/docs/generic_interface.html b/fr_FR/docs/generic_interface.html index 3373880034a..34201d51b06 100644 --- a/fr_FR/docs/generic_interface.html +++ b/fr_FR/docs/generic_interface.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

diff --git a/fr_FR/docs/gorm_config.html b/fr_FR/docs/gorm_config.html index 677fdfa2080..697d6fe8e42 100644 --- a/fr_FR/docs/gorm_config.html +++ b/fr_FR/docs/gorm_config.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

diff --git a/fr_FR/docs/has_many.html b/fr_FR/docs/has_many.html index 23eb576aa95..1b1edf57ba9 100644 --- a/fr_FR/docs/has_many.html +++ b/fr_FR/docs/has_many.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/fr_FR/docs/has_one.html b/fr_FR/docs/has_one.html index 589e5f146a0..1a48c087230 100644 --- a/fr_FR/docs/has_one.html +++ b/fr_FR/docs/has_one.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/fr_FR/docs/hints.html b/fr_FR/docs/hints.html index 9003b17b5b8..77d10a2e783 100644 --- a/fr_FR/docs/hints.html +++ b/fr_FR/docs/hints.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

- + diff --git a/fr_FR/docs/hooks.html b/fr_FR/docs/hooks.html index 450031271ab..6cffe633aa4 100644 --- a/fr_FR/docs/hooks.html +++ b/fr_FR/docs/hooks.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/fr_FR/docs/index.html b/fr_FR/docs/index.html index 63743b0407b..b297c5f0edf 100644 --- a/fr_FR/docs/index.html +++ b/fr_FR/docs/index.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

diff --git a/fr_FR/docs/indexes.html b/fr_FR/docs/indexes.html index 5d1042c756a..9a356d5aab1 100644 --- a/fr_FR/docs/indexes.html +++ b/fr_FR/docs/indexes.html @@ -56,8 +56,8 @@ - - + + @@ -179,7 +179,7 @@

diff --git a/fr_FR/docs/logger.html b/fr_FR/docs/logger.html index 4dc0e013b96..afa3571cc07 100644 --- a/fr_FR/docs/logger.html +++ b/fr_FR/docs/logger.html @@ -56,8 +56,8 @@ - - + + @@ -166,7 +166,7 @@

diff --git a/fr_FR/docs/many_to_many.html b/fr_FR/docs/many_to_many.html index 5564b1cf34a..601894be8bf 100644 --- a/fr_FR/docs/many_to_many.html +++ b/fr_FR/docs/many_to_many.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/fr_FR/docs/method_chaining.html b/fr_FR/docs/method_chaining.html index d89fcaba1a0..60c7adece6c 100644 --- a/fr_FR/docs/method_chaining.html +++ b/fr_FR/docs/method_chaining.html @@ -56,8 +56,8 @@ - - + + @@ -210,7 +210,7 @@

- + diff --git a/fr_FR/docs/migration.html b/fr_FR/docs/migration.html index deb766a984f..2b2898143ef 100644 --- a/fr_FR/docs/migration.html +++ b/fr_FR/docs/migration.html @@ -56,8 +56,8 @@ - - + + @@ -206,7 +206,7 @@

- + diff --git a/fr_FR/docs/models.html b/fr_FR/docs/models.html index 599393c7742..f15ac4b377a 100644 --- a/fr_FR/docs/models.html +++ b/fr_FR/docs/models.html @@ -56,8 +56,8 @@ - - + + @@ -315,7 +315,7 @@

diff --git a/fr_FR/docs/performance.html b/fr_FR/docs/performance.html index 2551af2c6c1..35f367d49d1 100644 --- a/fr_FR/docs/performance.html +++ b/fr_FR/docs/performance.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/fr_FR/docs/polymorphism.html b/fr_FR/docs/polymorphism.html index ac2c0d540f0..b57f7ca2c16 100644 --- a/fr_FR/docs/polymorphism.html +++ b/fr_FR/docs/polymorphism.html @@ -32,8 +32,8 @@ - - + + @@ -142,7 +142,7 @@

Polymorphism

- +
diff --git a/fr_FR/docs/preload.html b/fr_FR/docs/preload.html index 2e48ba461af..d1b4780cefc 100644 --- a/fr_FR/docs/preload.html +++ b/fr_FR/docs/preload.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/fr_FR/docs/prometheus.html b/fr_FR/docs/prometheus.html index 116489481e6..d0c6b623645 100644 --- a/fr_FR/docs/prometheus.html +++ b/fr_FR/docs/prometheus.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- + diff --git a/fr_FR/docs/query.html b/fr_FR/docs/query.html index 57e0e68a175..e07755efa2d 100644 --- a/fr_FR/docs/query.html +++ b/fr_FR/docs/query.html @@ -56,8 +56,8 @@ - - + + @@ -243,7 +243,7 @@

- + diff --git a/fr_FR/docs/scopes.html b/fr_FR/docs/scopes.html index 5f28d6610ea..778120612d4 100644 --- a/fr_FR/docs/scopes.html +++ b/fr_FR/docs/scopes.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/fr_FR/docs/security.html b/fr_FR/docs/security.html index 16415b73aa1..b4d9300b996 100644 --- a/fr_FR/docs/security.html +++ b/fr_FR/docs/security.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/fr_FR/docs/serializer.html b/fr_FR/docs/serializer.html index e8ddf35076c..7e945483f0b 100644 --- a/fr_FR/docs/serializer.html +++ b/fr_FR/docs/serializer.html @@ -56,8 +56,8 @@ - - + + @@ -171,7 +171,7 @@

- + diff --git a/fr_FR/docs/session.html b/fr_FR/docs/session.html index c78cf1d257e..d63b5120bc7 100644 --- a/fr_FR/docs/session.html +++ b/fr_FR/docs/session.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

diff --git a/fr_FR/docs/settings.html b/fr_FR/docs/settings.html index 5b739a13d5d..c3d4488c911 100644 --- a/fr_FR/docs/settings.html +++ b/fr_FR/docs/settings.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/fr_FR/docs/sharding.html b/fr_FR/docs/sharding.html index 01ed62c01e4..99c460e5c81 100644 --- a/fr_FR/docs/sharding.html +++ b/fr_FR/docs/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -168,7 +168,7 @@

- + diff --git a/fr_FR/docs/sql_builder.html b/fr_FR/docs/sql_builder.html index a6b34c50280..d6c6d8435fd 100644 --- a/fr_FR/docs/sql_builder.html +++ b/fr_FR/docs/sql_builder.html @@ -56,8 +56,8 @@ - - + + @@ -207,7 +207,7 @@

diff --git a/fr_FR/docs/transactions.html b/fr_FR/docs/transactions.html index c52d53dc1ea..ef8842fd4c2 100644 --- a/fr_FR/docs/transactions.html +++ b/fr_FR/docs/transactions.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/fr_FR/docs/update.html b/fr_FR/docs/update.html index 4461997ff82..705ad349f05 100644 --- a/fr_FR/docs/update.html +++ b/fr_FR/docs/update.html @@ -56,8 +56,8 @@ - - + + @@ -208,7 +208,7 @@

- + diff --git a/fr_FR/docs/v2_release_note.html b/fr_FR/docs/v2_release_note.html index c04812f65ad..9559490ef69 100644 --- a/fr_FR/docs/v2_release_note.html +++ b/fr_FR/docs/v2_release_note.html @@ -56,8 +56,8 @@ - - + + @@ -355,7 +355,7 @@

- + diff --git a/fr_FR/docs/write_driver.html b/fr_FR/docs/write_driver.html index c9fa5616fb9..6898a24fcfe 100644 --- a/fr_FR/docs/write_driver.html +++ b/fr_FR/docs/write_driver.html @@ -56,8 +56,8 @@ - - + + @@ -192,7 +192,7 @@

- + diff --git a/fr_FR/docs/write_plugins.html b/fr_FR/docs/write_plugins.html index e4554d4ab08..6a54c0aa8b6 100644 --- a/fr_FR/docs/write_plugins.html +++ b/fr_FR/docs/write_plugins.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

diff --git a/fr_FR/gen.html b/fr_FR/gen.html index a60ecd91286..f331b62266f 100644 --- a/fr_FR/gen.html +++ b/fr_FR/gen.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/fr_FR/gen/associations.html b/fr_FR/gen/associations.html index cc80205e880..b30da4d14ba 100644 --- a/fr_FR/gen/associations.html +++ b/fr_FR/gen/associations.html @@ -56,8 +56,8 @@ - - + + @@ -215,7 +215,7 @@

diff --git a/fr_FR/gen/clause.html b/fr_FR/gen/clause.html index 0389545a96b..8e7e207936b 100644 --- a/fr_FR/gen/clause.html +++ b/fr_FR/gen/clause.html @@ -56,8 +56,8 @@ - - + + @@ -156,7 +156,7 @@

- + diff --git a/fr_FR/gen/create.html b/fr_FR/gen/create.html index 82058840ce2..66f5550ef8d 100644 --- a/fr_FR/gen/create.html +++ b/fr_FR/gen/create.html @@ -56,8 +56,8 @@ - - + + @@ -167,7 +167,7 @@

- + diff --git a/fr_FR/gen/dao.html b/fr_FR/gen/dao.html index 15b11571885..84de810caa0 100644 --- a/fr_FR/gen/dao.html +++ b/fr_FR/gen/dao.html @@ -56,8 +56,8 @@ - - + + @@ -143,7 +143,7 @@

DAO Overview

Gen follows the Configuration As Code practice to generate the DAO interface, here is the introduction to the configuration.

Configuration

You need to write the configuration as a runnable golang program, usually, the program will be organized in a sub-directory of your application.

-
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany"),
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}
+
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany")
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}

Run the above program, it will generate codes into directory ../dal, you can import the dal package in your application and use its interface to query data

gen.Config

type Config struct {
OutPath string // query code path
OutFile string // query code file name, default: gen.go
ModelPkgPath string // generated model code's package name
WithUnitTest bool // generate unit test for query code

FieldNullable bool // generate pointer when field is nullable
FieldCoverable bool // generate pointer when field has default value, to fix problem zero value cannot be assign: https://gorm.io/docs/create.html#Default-Values
FieldSignable bool // detect integer field's unsigned type, adjust generated data type
FieldWithIndexTag bool // generate with gorm index tag
FieldWithTypeTag bool // generate with gorm column type tag

Mode GenerateMode // generator modes
}
@@ -249,7 +249,7 @@

- + diff --git a/fr_FR/gen/database_to_structs.html b/fr_FR/gen/database_to_structs.html index 52f15bbc56e..0985c9522d4 100644 --- a/fr_FR/gen/database_to_structs.html +++ b/fr_FR/gen/database_to_structs.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

diff --git a/fr_FR/gen/delete.html b/fr_FR/gen/delete.html index 892c977ccd6..76485781082 100644 --- a/fr_FR/gen/delete.html +++ b/fr_FR/gen/delete.html @@ -56,8 +56,8 @@ - - + + @@ -174,7 +174,7 @@

- + diff --git a/fr_FR/gen/dynamic_sql.html b/fr_FR/gen/dynamic_sql.html index 0d86de6c5b2..42ac2d603b8 100644 --- a/fr_FR/gen/dynamic_sql.html +++ b/fr_FR/gen/dynamic_sql.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/fr_FR/gen/gen_tool.html b/fr_FR/gen/gen_tool.html index 92cd2a00fe5..703052c949f 100644 --- a/fr_FR/gen/gen_tool.html +++ b/fr_FR/gen/gen_tool.html @@ -56,8 +56,8 @@ - - + + @@ -175,7 +175,7 @@

- + diff --git a/fr_FR/gen/index.html b/fr_FR/gen/index.html index bdf1237cd48..f5c52e08215 100644 --- a/fr_FR/gen/index.html +++ b/fr_FR/gen/index.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/fr_FR/gen/query.html b/fr_FR/gen/query.html index 75d8c353fe0..00eece46023 100644 --- a/fr_FR/gen/query.html +++ b/fr_FR/gen/query.html @@ -56,8 +56,8 @@ - - + + @@ -312,7 +312,7 @@

- + diff --git a/fr_FR/gen/rawsql_driver.html b/fr_FR/gen/rawsql_driver.html index 70543ac7f82..34927c66c4e 100644 --- a/fr_FR/gen/rawsql_driver.html +++ b/fr_FR/gen/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/fr_FR/gen/sql_annotation.html b/fr_FR/gen/sql_annotation.html index a06912fb794..df9742d5b04 100644 --- a/fr_FR/gen/sql_annotation.html +++ b/fr_FR/gen/sql_annotation.html @@ -56,8 +56,8 @@ - - + + @@ -254,7 +254,7 @@

- + diff --git a/fr_FR/gen/transaction.html b/fr_FR/gen/transaction.html index 0df647174e3..c406caecac6 100644 --- a/fr_FR/gen/transaction.html +++ b/fr_FR/gen/transaction.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/fr_FR/gen/update.html b/fr_FR/gen/update.html index e18043a3f20..271d2eb1e3f 100644 --- a/fr_FR/gen/update.html +++ b/fr_FR/gen/update.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/fr_FR/gorm.html b/fr_FR/gorm.html index 0c56e6508b5..6674eed503d 100644 --- a/fr_FR/gorm.html +++ b/fr_FR/gorm.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- +
diff --git a/fr_FR/gormx.html b/fr_FR/gormx.html index 5da6746453d..2dc40f09687 100644 --- a/fr_FR/gormx.html +++ b/fr_FR/gormx.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/fr_FR/hints.html b/fr_FR/hints.html index ca7a5acec5c..15017452381 100644 --- a/fr_FR/hints.html +++ b/fr_FR/hints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/fr_FR/index.html b/fr_FR/index.html index e3b7e709010..1d2d4fbb31b 100644 --- a/fr_FR/index.html +++ b/fr_FR/index.html @@ -56,8 +56,8 @@ - - + + diff --git a/fr_FR/rawsql.html b/fr_FR/rawsql.html index d4ea27762aa..dfaf62ab680 100644 --- a/fr_FR/rawsql.html +++ b/fr_FR/rawsql.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/fr_FR/rawsql_driver.html b/fr_FR/rawsql_driver.html index a3dca04ec42..d6ae2552034 100644 --- a/fr_FR/rawsql_driver.html +++ b/fr_FR/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/fr_FR/sharding.html b/fr_FR/sharding.html index 6e1e267966b..65775fd308b 100644 --- a/fr_FR/sharding.html +++ b/fr_FR/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/fr_FR/stats.html b/fr_FR/stats.html index 836015bf564..05a5a2d7d01 100644 --- a/fr_FR/stats.html +++ b/fr_FR/stats.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/gen/associations.html b/gen/associations.html index ae01f7539b0..fde57dcfe90 100644 --- a/gen/associations.html +++ b/gen/associations.html @@ -56,8 +56,8 @@ - - + + @@ -215,7 +215,7 @@

diff --git a/gen/clause.html b/gen/clause.html index 39ab283e80e..9ec1c9e8065 100644 --- a/gen/clause.html +++ b/gen/clause.html @@ -56,8 +56,8 @@ - - + + @@ -156,7 +156,7 @@

- + diff --git a/gen/create.html b/gen/create.html index 43c7cc76c47..48a3e074ab8 100644 --- a/gen/create.html +++ b/gen/create.html @@ -56,8 +56,8 @@ - - + + @@ -167,7 +167,7 @@

- + diff --git a/gen/dao.html b/gen/dao.html index 4ef49332df2..460b0f540f5 100644 --- a/gen/dao.html +++ b/gen/dao.html @@ -56,8 +56,8 @@ - - + + @@ -249,7 +249,7 @@

- + diff --git a/gen/database_to_structs.html b/gen/database_to_structs.html index a3d9ca12a38..871cd996082 100644 --- a/gen/database_to_structs.html +++ b/gen/database_to_structs.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

diff --git a/gen/delete.html b/gen/delete.html index c19f35c357b..0e912bf406c 100644 --- a/gen/delete.html +++ b/gen/delete.html @@ -56,8 +56,8 @@ - - + + @@ -174,7 +174,7 @@

- + diff --git a/gen/dynamic_sql.html b/gen/dynamic_sql.html index f4ec215b924..7e15af3f660 100644 --- a/gen/dynamic_sql.html +++ b/gen/dynamic_sql.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/gen/gen_tool.html b/gen/gen_tool.html index 6a411719f03..6638d5faeec 100644 --- a/gen/gen_tool.html +++ b/gen/gen_tool.html @@ -56,8 +56,8 @@ - - + + @@ -175,7 +175,7 @@

- + diff --git a/gen/index.html b/gen/index.html index 5bd8ea29fbc..357c0848f52 100644 --- a/gen/index.html +++ b/gen/index.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/gen/query.html b/gen/query.html index cbb2cde5add..085acc9c666 100644 --- a/gen/query.html +++ b/gen/query.html @@ -56,8 +56,8 @@ - - + + @@ -312,7 +312,7 @@

- + diff --git a/gen/rawsql_driver.html b/gen/rawsql_driver.html index 72032f2aa9b..fb77818ec1c 100644 --- a/gen/rawsql_driver.html +++ b/gen/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/gen/sql_annotation.html b/gen/sql_annotation.html index c8d2ee57d1b..60c3f141664 100644 --- a/gen/sql_annotation.html +++ b/gen/sql_annotation.html @@ -56,8 +56,8 @@ - - + + @@ -254,7 +254,7 @@

- + diff --git a/gen/transaction.html b/gen/transaction.html index dc7a48f8886..931cf92f797 100644 --- a/gen/transaction.html +++ b/gen/transaction.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/gen/update.html b/gen/update.html index 6e77aa0e076..3a469b35f86 100644 --- a/gen/update.html +++ b/gen/update.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/hi_IN/404.html b/hi_IN/404.html index 557ae71f1cd..25ed422e40e 100644 --- a/hi_IN/404.html +++ b/hi_IN/404.html @@ -32,8 +32,8 @@ - - + + diff --git a/hi_IN/community.html b/hi_IN/community.html index 96b8003cd2e..dc33faeaafb 100644 --- a/hi_IN/community.html +++ b/hi_IN/community.html @@ -32,8 +32,8 @@ - - + + @@ -162,7 +162,7 @@

- + diff --git a/hi_IN/contribute.html b/hi_IN/contribute.html index 54538ef3d77..896417fdd60 100644 --- a/hi_IN/contribute.html +++ b/hi_IN/contribute.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/hi_IN/datatypes.html b/hi_IN/datatypes.html index f0572ab5978..c3783167310 100644 --- a/hi_IN/datatypes.html +++ b/hi_IN/datatypes.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/hi_IN/docs/advanced_query.html b/hi_IN/docs/advanced_query.html index 8729d497c27..b86196fc01b 100644 --- a/hi_IN/docs/advanced_query.html +++ b/hi_IN/docs/advanced_query.html @@ -56,8 +56,8 @@ - - + + @@ -253,7 +253,7 @@

- + diff --git a/hi_IN/docs/associations.html b/hi_IN/docs/associations.html index a814eb3d4c3..9e772124488 100644 --- a/hi_IN/docs/associations.html +++ b/hi_IN/docs/associations.html @@ -32,8 +32,8 @@ - - + + @@ -267,7 +267,7 @@

diff --git a/hi_IN/docs/belongs_to.html b/hi_IN/docs/belongs_to.html index 1204701f3f8..eb76d82f49e 100644 --- a/hi_IN/docs/belongs_to.html +++ b/hi_IN/docs/belongs_to.html @@ -34,8 +34,8 @@ - - + + @@ -156,7 +156,7 @@

- + diff --git a/hi_IN/docs/changelog.html b/hi_IN/docs/changelog.html index bf7a6500d83..f7e26cdfc84 100644 --- a/hi_IN/docs/changelog.html +++ b/hi_IN/docs/changelog.html @@ -32,8 +32,8 @@ - - + + @@ -158,7 +158,7 @@

- + diff --git a/hi_IN/docs/composite_primary_key.html b/hi_IN/docs/composite_primary_key.html index 840ef883f7b..8103661db7e 100644 --- a/hi_IN/docs/composite_primary_key.html +++ b/hi_IN/docs/composite_primary_key.html @@ -32,8 +32,8 @@ - - + + @@ -138,7 +138,7 @@

समग्र प्राथमि
- +
diff --git a/hi_IN/docs/connecting_to_the_database.html b/hi_IN/docs/connecting_to_the_database.html index a1055e7e9bc..8db7685ef28 100644 --- a/hi_IN/docs/connecting_to_the_database.html +++ b/hi_IN/docs/connecting_to_the_database.html @@ -56,8 +56,8 @@ - - + + @@ -181,7 +181,7 @@

- + diff --git a/hi_IN/docs/constraints.html b/hi_IN/docs/constraints.html index 4f6922f2239..7c87196889a 100644 --- a/hi_IN/docs/constraints.html +++ b/hi_IN/docs/constraints.html @@ -32,8 +32,8 @@ - - + + @@ -139,7 +139,7 @@

- + diff --git a/hi_IN/docs/context.html b/hi_IN/docs/context.html index 7ec35432e6b..d28b8b3b502 100644 --- a/hi_IN/docs/context.html +++ b/hi_IN/docs/context.html @@ -32,8 +32,8 @@ - - + + @@ -148,7 +148,7 @@

- + diff --git a/hi_IN/docs/conventions.html b/hi_IN/docs/conventions.html index 950fb33bbca..90ecf809782 100644 --- a/hi_IN/docs/conventions.html +++ b/hi_IN/docs/conventions.html @@ -32,8 +32,8 @@ - - + + @@ -183,7 +183,7 @@

- + diff --git a/hi_IN/docs/create.html b/hi_IN/docs/create.html index eb71217dff9..17c97adf823 100644 --- a/hi_IN/docs/create.html +++ b/hi_IN/docs/create.html @@ -32,8 +32,8 @@ - - + + @@ -204,7 +204,7 @@

- + diff --git a/hi_IN/docs/data_types.html b/hi_IN/docs/data_types.html index 34b86287c20..e31743cc1ee 100644 --- a/hi_IN/docs/data_types.html +++ b/hi_IN/docs/data_types.html @@ -56,8 +56,8 @@ - - + + @@ -189,7 +189,7 @@

- + diff --git a/hi_IN/docs/dbresolver.html b/hi_IN/docs/dbresolver.html index d0c35c455ef..75ca3c7a456 100644 --- a/hi_IN/docs/dbresolver.html +++ b/hi_IN/docs/dbresolver.html @@ -56,8 +56,8 @@ - - + + @@ -183,7 +183,7 @@

diff --git a/hi_IN/docs/delete.html b/hi_IN/docs/delete.html index 11aec59a682..b73919fd285 100644 --- a/hi_IN/docs/delete.html +++ b/hi_IN/docs/delete.html @@ -56,8 +56,8 @@ - - + + @@ -202,7 +202,7 @@

- + diff --git a/hi_IN/docs/error_handling.html b/hi_IN/docs/error_handling.html index 9ead48d085b..9123ce3ba98 100644 --- a/hi_IN/docs/error_handling.html +++ b/hi_IN/docs/error_handling.html @@ -56,8 +56,8 @@ - - + + @@ -187,7 +187,7 @@

- + diff --git a/hi_IN/docs/generic_interface.html b/hi_IN/docs/generic_interface.html index b86e2dd1c9f..c5b97f331eb 100644 --- a/hi_IN/docs/generic_interface.html +++ b/hi_IN/docs/generic_interface.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

diff --git a/hi_IN/docs/gorm_config.html b/hi_IN/docs/gorm_config.html index c9d47cbeac5..888a462c84e 100644 --- a/hi_IN/docs/gorm_config.html +++ b/hi_IN/docs/gorm_config.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

diff --git a/hi_IN/docs/has_many.html b/hi_IN/docs/has_many.html index 27c5a6ec0f0..1090efb36da 100644 --- a/hi_IN/docs/has_many.html +++ b/hi_IN/docs/has_many.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/hi_IN/docs/has_one.html b/hi_IN/docs/has_one.html index 1800d6c133f..e5f8cdb6ba4 100644 --- a/hi_IN/docs/has_one.html +++ b/hi_IN/docs/has_one.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/hi_IN/docs/hints.html b/hi_IN/docs/hints.html index 52eec22eefd..e5a4d902fad 100644 --- a/hi_IN/docs/hints.html +++ b/hi_IN/docs/hints.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

- + diff --git a/hi_IN/docs/hooks.html b/hi_IN/docs/hooks.html index 915f063823e..906e846405b 100644 --- a/hi_IN/docs/hooks.html +++ b/hi_IN/docs/hooks.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/hi_IN/docs/index.html b/hi_IN/docs/index.html index 4d71d7d0266..0d9c81f8c31 100644 --- a/hi_IN/docs/index.html +++ b/hi_IN/docs/index.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/hi_IN/docs/indexes.html b/hi_IN/docs/indexes.html index 9b61c12ed92..4afe2940fd5 100644 --- a/hi_IN/docs/indexes.html +++ b/hi_IN/docs/indexes.html @@ -56,8 +56,8 @@ - - + + @@ -179,7 +179,7 @@

diff --git a/hi_IN/docs/logger.html b/hi_IN/docs/logger.html index 456510a3bfd..93352fe7b11 100644 --- a/hi_IN/docs/logger.html +++ b/hi_IN/docs/logger.html @@ -56,8 +56,8 @@ - - + + @@ -166,7 +166,7 @@

diff --git a/hi_IN/docs/many_to_many.html b/hi_IN/docs/many_to_many.html index 01979a81040..09577f598fa 100644 --- a/hi_IN/docs/many_to_many.html +++ b/hi_IN/docs/many_to_many.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/hi_IN/docs/method_chaining.html b/hi_IN/docs/method_chaining.html index 22396401987..d5bb542040e 100644 --- a/hi_IN/docs/method_chaining.html +++ b/hi_IN/docs/method_chaining.html @@ -56,8 +56,8 @@ - - + + @@ -210,7 +210,7 @@

- + diff --git a/hi_IN/docs/migration.html b/hi_IN/docs/migration.html index 6f43acfa5eb..1c3849153b7 100644 --- a/hi_IN/docs/migration.html +++ b/hi_IN/docs/migration.html @@ -56,8 +56,8 @@ - - + + @@ -206,7 +206,7 @@

- + diff --git a/hi_IN/docs/models.html b/hi_IN/docs/models.html index ed2aa91e638..48e7cf95f59 100644 --- a/hi_IN/docs/models.html +++ b/hi_IN/docs/models.html @@ -56,8 +56,8 @@ - - + + @@ -315,7 +315,7 @@

diff --git a/hi_IN/docs/performance.html b/hi_IN/docs/performance.html index 1d926d32944..c08062e8365 100644 --- a/hi_IN/docs/performance.html +++ b/hi_IN/docs/performance.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/hi_IN/docs/polymorphism.html b/hi_IN/docs/polymorphism.html index e3c04cf0eac..d3a041a2966 100644 --- a/hi_IN/docs/polymorphism.html +++ b/hi_IN/docs/polymorphism.html @@ -32,8 +32,8 @@ - - + + @@ -142,7 +142,7 @@

Polymorphism

- +
diff --git a/hi_IN/docs/preload.html b/hi_IN/docs/preload.html index 179b2e1d2fd..85f2b2b32a5 100644 --- a/hi_IN/docs/preload.html +++ b/hi_IN/docs/preload.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/hi_IN/docs/prometheus.html b/hi_IN/docs/prometheus.html index 5af2fccbebf..9eaf33f58b9 100644 --- a/hi_IN/docs/prometheus.html +++ b/hi_IN/docs/prometheus.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- + diff --git a/hi_IN/docs/query.html b/hi_IN/docs/query.html index 5206ad07772..9807804d131 100644 --- a/hi_IN/docs/query.html +++ b/hi_IN/docs/query.html @@ -56,8 +56,8 @@ - - + + @@ -243,7 +243,7 @@

- + diff --git a/hi_IN/docs/scopes.html b/hi_IN/docs/scopes.html index 2c89d1a850e..e0dc14cc683 100644 --- a/hi_IN/docs/scopes.html +++ b/hi_IN/docs/scopes.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/hi_IN/docs/security.html b/hi_IN/docs/security.html index 413605f00eb..648f8307c4b 100644 --- a/hi_IN/docs/security.html +++ b/hi_IN/docs/security.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/hi_IN/docs/serializer.html b/hi_IN/docs/serializer.html index 4f676093594..c407b887888 100644 --- a/hi_IN/docs/serializer.html +++ b/hi_IN/docs/serializer.html @@ -56,8 +56,8 @@ - - + + @@ -171,7 +171,7 @@

- + diff --git a/hi_IN/docs/session.html b/hi_IN/docs/session.html index 7e04e51784e..57c66855a4d 100644 --- a/hi_IN/docs/session.html +++ b/hi_IN/docs/session.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

diff --git a/hi_IN/docs/settings.html b/hi_IN/docs/settings.html index 237d7042e9d..07df272fd71 100644 --- a/hi_IN/docs/settings.html +++ b/hi_IN/docs/settings.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/hi_IN/docs/sharding.html b/hi_IN/docs/sharding.html index c69acbd9857..a0dbe810097 100644 --- a/hi_IN/docs/sharding.html +++ b/hi_IN/docs/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -168,7 +168,7 @@

- + diff --git a/hi_IN/docs/sql_builder.html b/hi_IN/docs/sql_builder.html index 2e45fb4cf25..297afb55cf7 100644 --- a/hi_IN/docs/sql_builder.html +++ b/hi_IN/docs/sql_builder.html @@ -56,8 +56,8 @@ - - + + @@ -207,7 +207,7 @@

diff --git a/hi_IN/docs/transactions.html b/hi_IN/docs/transactions.html index d8b440e2f75..d0f8fb11051 100644 --- a/hi_IN/docs/transactions.html +++ b/hi_IN/docs/transactions.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/hi_IN/docs/update.html b/hi_IN/docs/update.html index 2ecbb62a1d3..94d510c8810 100644 --- a/hi_IN/docs/update.html +++ b/hi_IN/docs/update.html @@ -56,8 +56,8 @@ - - + + @@ -208,7 +208,7 @@

- + diff --git a/hi_IN/docs/v2_release_note.html b/hi_IN/docs/v2_release_note.html index 2c97e76bd07..209ac018fd7 100644 --- a/hi_IN/docs/v2_release_note.html +++ b/hi_IN/docs/v2_release_note.html @@ -56,8 +56,8 @@ - - + + @@ -355,7 +355,7 @@

- + diff --git a/hi_IN/docs/write_driver.html b/hi_IN/docs/write_driver.html index 01b68663ad5..3d5c5171ae1 100644 --- a/hi_IN/docs/write_driver.html +++ b/hi_IN/docs/write_driver.html @@ -56,8 +56,8 @@ - - + + @@ -192,7 +192,7 @@

- + diff --git a/hi_IN/docs/write_plugins.html b/hi_IN/docs/write_plugins.html index 56e7a10393c..d58d8006c81 100644 --- a/hi_IN/docs/write_plugins.html +++ b/hi_IN/docs/write_plugins.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

diff --git a/hi_IN/gen.html b/hi_IN/gen.html index 51f02cbf124..f6b1631e186 100644 --- a/hi_IN/gen.html +++ b/hi_IN/gen.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/hi_IN/gen/associations.html b/hi_IN/gen/associations.html index fc9e2fbc637..de7beb9a8b6 100644 --- a/hi_IN/gen/associations.html +++ b/hi_IN/gen/associations.html @@ -56,8 +56,8 @@ - - + + @@ -215,7 +215,7 @@

diff --git a/hi_IN/gen/clause.html b/hi_IN/gen/clause.html index 2b41a76893b..4f0c6da5df3 100644 --- a/hi_IN/gen/clause.html +++ b/hi_IN/gen/clause.html @@ -56,8 +56,8 @@ - - + + @@ -156,7 +156,7 @@

- + diff --git a/hi_IN/gen/create.html b/hi_IN/gen/create.html index 2786776f54a..fd9991327e0 100644 --- a/hi_IN/gen/create.html +++ b/hi_IN/gen/create.html @@ -56,8 +56,8 @@ - - + + @@ -167,7 +167,7 @@

- + diff --git a/hi_IN/gen/dao.html b/hi_IN/gen/dao.html index d3dc63ec56d..5c9801479d7 100644 --- a/hi_IN/gen/dao.html +++ b/hi_IN/gen/dao.html @@ -56,8 +56,8 @@ - - + + @@ -143,7 +143,7 @@

DAO Overview

Gen follows the Configuration As Code practice to generate the DAO interface, here is the introduction to the configuration.

Configuration

You need to write the configuration as a runnable golang program, usually, the program will be organized in a sub-directory of your application.

-
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany"),
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}
+
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany")
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}

Run the above program, it will generate codes into directory ../dal, you can import the dal package in your application and use its interface to query data

gen.Config

type Config struct {
OutPath string // query code path
OutFile string // query code file name, default: gen.go
ModelPkgPath string // generated model code's package name
WithUnitTest bool // generate unit test for query code

FieldNullable bool // generate pointer when field is nullable
FieldCoverable bool // generate pointer when field has default value, to fix problem zero value cannot be assign: https://gorm.io/docs/create.html#Default-Values
FieldSignable bool // detect integer field's unsigned type, adjust generated data type
FieldWithIndexTag bool // generate with gorm index tag
FieldWithTypeTag bool // generate with gorm column type tag

Mode GenerateMode // generator modes
}
@@ -249,7 +249,7 @@

- + diff --git a/hi_IN/gen/database_to_structs.html b/hi_IN/gen/database_to_structs.html index 06fa13afe5a..eec0fc1cb67 100644 --- a/hi_IN/gen/database_to_structs.html +++ b/hi_IN/gen/database_to_structs.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

diff --git a/hi_IN/gen/delete.html b/hi_IN/gen/delete.html index bcce83d91ce..af3ed7771ac 100644 --- a/hi_IN/gen/delete.html +++ b/hi_IN/gen/delete.html @@ -56,8 +56,8 @@ - - + + @@ -174,7 +174,7 @@

- + diff --git a/hi_IN/gen/dynamic_sql.html b/hi_IN/gen/dynamic_sql.html index 36d8bcd6618..f14ba755b9e 100644 --- a/hi_IN/gen/dynamic_sql.html +++ b/hi_IN/gen/dynamic_sql.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/hi_IN/gen/gen_tool.html b/hi_IN/gen/gen_tool.html index 0004e6b1633..4b096b41e2c 100644 --- a/hi_IN/gen/gen_tool.html +++ b/hi_IN/gen/gen_tool.html @@ -56,8 +56,8 @@ - - + + @@ -175,7 +175,7 @@

- + diff --git a/hi_IN/gen/index.html b/hi_IN/gen/index.html index 93b153714b8..d76704307db 100644 --- a/hi_IN/gen/index.html +++ b/hi_IN/gen/index.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/hi_IN/gen/query.html b/hi_IN/gen/query.html index 861b5e84ced..f368d5008de 100644 --- a/hi_IN/gen/query.html +++ b/hi_IN/gen/query.html @@ -56,8 +56,8 @@ - - + + @@ -312,7 +312,7 @@

- + diff --git a/hi_IN/gen/rawsql_driver.html b/hi_IN/gen/rawsql_driver.html index a86fa22bfd5..a0a43d4c8b7 100644 --- a/hi_IN/gen/rawsql_driver.html +++ b/hi_IN/gen/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/hi_IN/gen/sql_annotation.html b/hi_IN/gen/sql_annotation.html index 3c8870e1087..96fe85b5ef9 100644 --- a/hi_IN/gen/sql_annotation.html +++ b/hi_IN/gen/sql_annotation.html @@ -56,8 +56,8 @@ - - + + @@ -254,7 +254,7 @@

- + diff --git a/hi_IN/gen/transaction.html b/hi_IN/gen/transaction.html index 7bd3358281a..9d3c7a57a67 100644 --- a/hi_IN/gen/transaction.html +++ b/hi_IN/gen/transaction.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/hi_IN/gen/update.html b/hi_IN/gen/update.html index d1e5e804e85..09e2e9d6d2d 100644 --- a/hi_IN/gen/update.html +++ b/hi_IN/gen/update.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/hi_IN/gorm.html b/hi_IN/gorm.html index 42b2e634d9d..705ebbc224e 100644 --- a/hi_IN/gorm.html +++ b/hi_IN/gorm.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- +
diff --git a/hi_IN/gormx.html b/hi_IN/gormx.html index bc4bea1b588..a8f633cdd18 100644 --- a/hi_IN/gormx.html +++ b/hi_IN/gormx.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/hi_IN/hints.html b/hi_IN/hints.html index 11660254ad2..34ddce43f17 100644 --- a/hi_IN/hints.html +++ b/hi_IN/hints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/hi_IN/index.html b/hi_IN/index.html index 31301bf00ef..f7f69225b11 100644 --- a/hi_IN/index.html +++ b/hi_IN/index.html @@ -56,8 +56,8 @@ - - + + diff --git a/hi_IN/rawsql.html b/hi_IN/rawsql.html index 00c1f11f200..a5bd1e00885 100644 --- a/hi_IN/rawsql.html +++ b/hi_IN/rawsql.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/hi_IN/rawsql_driver.html b/hi_IN/rawsql_driver.html index c32026ae408..14b88c47040 100644 --- a/hi_IN/rawsql_driver.html +++ b/hi_IN/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/hi_IN/sharding.html b/hi_IN/sharding.html index 9e4551d0652..2c6cdb59eb0 100644 --- a/hi_IN/sharding.html +++ b/hi_IN/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/hi_IN/stats.html b/hi_IN/stats.html index 2b47aa481c0..3c6948e5eae 100644 --- a/hi_IN/stats.html +++ b/hi_IN/stats.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/id_ID/404.html b/id_ID/404.html index 936b82b52f5..437f6300a5d 100644 --- a/id_ID/404.html +++ b/id_ID/404.html @@ -32,8 +32,8 @@ - - + + diff --git a/id_ID/community.html b/id_ID/community.html index 28c802f3c08..7e32747d660 100644 --- a/id_ID/community.html +++ b/id_ID/community.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/id_ID/contribute.html b/id_ID/contribute.html index 99bb5a8e4ef..f97b4ae8659 100644 --- a/id_ID/contribute.html +++ b/id_ID/contribute.html @@ -32,8 +32,8 @@ - - + + @@ -149,7 +149,7 @@

- + diff --git a/id_ID/datatypes.html b/id_ID/datatypes.html index cb4e9dd05cc..655ee944c5d 100644 --- a/id_ID/datatypes.html +++ b/id_ID/datatypes.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/id_ID/docs/advanced_query.html b/id_ID/docs/advanced_query.html index b6cab7139b1..416b6bfe387 100644 --- a/id_ID/docs/advanced_query.html +++ b/id_ID/docs/advanced_query.html @@ -56,8 +56,8 @@ - - + + @@ -253,7 +253,7 @@

- + diff --git a/id_ID/docs/associations.html b/id_ID/docs/associations.html index 839d6b29877..d2e425e21de 100644 --- a/id_ID/docs/associations.html +++ b/id_ID/docs/associations.html @@ -56,8 +56,8 @@ - - + + @@ -287,7 +287,7 @@

diff --git a/id_ID/docs/belongs_to.html b/id_ID/docs/belongs_to.html index 27286fef496..f97845a50cb 100644 --- a/id_ID/docs/belongs_to.html +++ b/id_ID/docs/belongs_to.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/id_ID/docs/changelog.html b/id_ID/docs/changelog.html index b37deb5a60d..4718cf9917a 100644 --- a/id_ID/docs/changelog.html +++ b/id_ID/docs/changelog.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/id_ID/docs/composite_primary_key.html b/id_ID/docs/composite_primary_key.html index 989981255ec..20391ac81af 100644 --- a/id_ID/docs/composite_primary_key.html +++ b/id_ID/docs/composite_primary_key.html @@ -56,8 +56,8 @@ - - + + @@ -158,7 +158,7 @@

Composite Primary Key

diff --git a/id_ID/docs/connecting_to_the_database.html b/id_ID/docs/connecting_to_the_database.html index 281f53645c9..4480d707f1b 100644 --- a/id_ID/docs/connecting_to_the_database.html +++ b/id_ID/docs/connecting_to_the_database.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

- + diff --git a/id_ID/docs/constraints.html b/id_ID/docs/constraints.html index a61ff91f105..395ced1f233 100644 --- a/id_ID/docs/constraints.html +++ b/id_ID/docs/constraints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/id_ID/docs/context.html b/id_ID/docs/context.html index 8a14695cee4..f5af834890b 100644 --- a/id_ID/docs/context.html +++ b/id_ID/docs/context.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

- + diff --git a/id_ID/docs/conventions.html b/id_ID/docs/conventions.html index 791e34637c5..a078a9cd77f 100644 --- a/id_ID/docs/conventions.html +++ b/id_ID/docs/conventions.html @@ -56,8 +56,8 @@ - - + + @@ -194,7 +194,7 @@

- + diff --git a/id_ID/docs/create.html b/id_ID/docs/create.html index 672c22b8e23..f9a69e8a808 100644 --- a/id_ID/docs/create.html +++ b/id_ID/docs/create.html @@ -56,8 +56,8 @@ - - + + @@ -228,7 +228,7 @@

- + diff --git a/id_ID/docs/data_types.html b/id_ID/docs/data_types.html index 751949ec802..9f2f6dbb987 100644 --- a/id_ID/docs/data_types.html +++ b/id_ID/docs/data_types.html @@ -56,8 +56,8 @@ - - + + @@ -189,7 +189,7 @@

- + diff --git a/id_ID/docs/dbresolver.html b/id_ID/docs/dbresolver.html index 690f291193d..5359d0a541c 100644 --- a/id_ID/docs/dbresolver.html +++ b/id_ID/docs/dbresolver.html @@ -56,8 +56,8 @@ - - + + @@ -183,7 +183,7 @@

diff --git a/id_ID/docs/delete.html b/id_ID/docs/delete.html index cde926cc033..32403d583c8 100644 --- a/id_ID/docs/delete.html +++ b/id_ID/docs/delete.html @@ -56,8 +56,8 @@ - - + + @@ -202,7 +202,7 @@

- + diff --git a/id_ID/docs/error_handling.html b/id_ID/docs/error_handling.html index dc5b158d6cb..cf7c0702e39 100644 --- a/id_ID/docs/error_handling.html +++ b/id_ID/docs/error_handling.html @@ -56,8 +56,8 @@ - - + + @@ -187,7 +187,7 @@

- + diff --git a/id_ID/docs/generic_interface.html b/id_ID/docs/generic_interface.html index 91351a5334e..c2e65eb43b5 100644 --- a/id_ID/docs/generic_interface.html +++ b/id_ID/docs/generic_interface.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

diff --git a/id_ID/docs/gorm_config.html b/id_ID/docs/gorm_config.html index 519a694d52b..2fbb68d06b7 100644 --- a/id_ID/docs/gorm_config.html +++ b/id_ID/docs/gorm_config.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

diff --git a/id_ID/docs/has_many.html b/id_ID/docs/has_many.html index 1827503dc57..7d3fdd2a280 100644 --- a/id_ID/docs/has_many.html +++ b/id_ID/docs/has_many.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/id_ID/docs/has_one.html b/id_ID/docs/has_one.html index ae3d7754ce7..a441b57c361 100644 --- a/id_ID/docs/has_one.html +++ b/id_ID/docs/has_one.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/id_ID/docs/hints.html b/id_ID/docs/hints.html index 3d081facdc1..0fe11945be8 100644 --- a/id_ID/docs/hints.html +++ b/id_ID/docs/hints.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

- + diff --git a/id_ID/docs/hooks.html b/id_ID/docs/hooks.html index 8f3fa273531..50c302a79c9 100644 --- a/id_ID/docs/hooks.html +++ b/id_ID/docs/hooks.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/id_ID/docs/index.html b/id_ID/docs/index.html index ad3a30b0aca..ee4f331cb54 100644 --- a/id_ID/docs/index.html +++ b/id_ID/docs/index.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/id_ID/docs/indexes.html b/id_ID/docs/indexes.html index 013db0697c1..28563b35477 100644 --- a/id_ID/docs/indexes.html +++ b/id_ID/docs/indexes.html @@ -56,8 +56,8 @@ - - + + @@ -179,7 +179,7 @@

diff --git a/id_ID/docs/logger.html b/id_ID/docs/logger.html index 80f4b224506..62b8b5450e1 100644 --- a/id_ID/docs/logger.html +++ b/id_ID/docs/logger.html @@ -32,8 +32,8 @@ - - + + @@ -142,7 +142,7 @@

diff --git a/id_ID/docs/many_to_many.html b/id_ID/docs/many_to_many.html index 35903df09fa..7a7fc68e8ab 100644 --- a/id_ID/docs/many_to_many.html +++ b/id_ID/docs/many_to_many.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/id_ID/docs/method_chaining.html b/id_ID/docs/method_chaining.html index 3a1b3352f5e..5a936bfce7a 100644 --- a/id_ID/docs/method_chaining.html +++ b/id_ID/docs/method_chaining.html @@ -56,8 +56,8 @@ - - + + @@ -210,7 +210,7 @@

- + diff --git a/id_ID/docs/migration.html b/id_ID/docs/migration.html index 7476a0ec9c6..102f8ff337b 100644 --- a/id_ID/docs/migration.html +++ b/id_ID/docs/migration.html @@ -56,8 +56,8 @@ - - + + @@ -206,7 +206,7 @@

- + diff --git a/id_ID/docs/models.html b/id_ID/docs/models.html index aeffb72c82c..1ba05aa4669 100644 --- a/id_ID/docs/models.html +++ b/id_ID/docs/models.html @@ -56,8 +56,8 @@ - - + + @@ -315,7 +315,7 @@

diff --git a/id_ID/docs/performance.html b/id_ID/docs/performance.html index d78845970dc..02a20d64deb 100644 --- a/id_ID/docs/performance.html +++ b/id_ID/docs/performance.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/id_ID/docs/polymorphism.html b/id_ID/docs/polymorphism.html index 41470e66426..96e3690289f 100644 --- a/id_ID/docs/polymorphism.html +++ b/id_ID/docs/polymorphism.html @@ -32,8 +32,8 @@ - - + + @@ -142,7 +142,7 @@

Polymorphism

diff --git a/id_ID/docs/preload.html b/id_ID/docs/preload.html index 8192830f1d4..5f0fb9a6bf2 100644 --- a/id_ID/docs/preload.html +++ b/id_ID/docs/preload.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/id_ID/docs/prometheus.html b/id_ID/docs/prometheus.html index 9d8fe94c2a2..0c3baa0da54 100644 --- a/id_ID/docs/prometheus.html +++ b/id_ID/docs/prometheus.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- + diff --git a/id_ID/docs/query.html b/id_ID/docs/query.html index 42939461d75..364db99d37c 100644 --- a/id_ID/docs/query.html +++ b/id_ID/docs/query.html @@ -56,8 +56,8 @@ - - + + @@ -243,7 +243,7 @@

- + diff --git a/id_ID/docs/scopes.html b/id_ID/docs/scopes.html index 3b9d39253d9..515e6c92ab9 100644 --- a/id_ID/docs/scopes.html +++ b/id_ID/docs/scopes.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/id_ID/docs/security.html b/id_ID/docs/security.html index 7baa3f56b45..e45205f4b65 100644 --- a/id_ID/docs/security.html +++ b/id_ID/docs/security.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/id_ID/docs/serializer.html b/id_ID/docs/serializer.html index f1ac3597686..f9824713f8b 100644 --- a/id_ID/docs/serializer.html +++ b/id_ID/docs/serializer.html @@ -56,8 +56,8 @@ - - + + @@ -171,7 +171,7 @@

- + diff --git a/id_ID/docs/session.html b/id_ID/docs/session.html index b504595eb60..2a7bfd8453f 100644 --- a/id_ID/docs/session.html +++ b/id_ID/docs/session.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

diff --git a/id_ID/docs/settings.html b/id_ID/docs/settings.html index 8d8f714951f..e0a57b1148e 100644 --- a/id_ID/docs/settings.html +++ b/id_ID/docs/settings.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/id_ID/docs/sharding.html b/id_ID/docs/sharding.html index 5535a6f693b..611b640027d 100644 --- a/id_ID/docs/sharding.html +++ b/id_ID/docs/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -168,7 +168,7 @@

- + diff --git a/id_ID/docs/sql_builder.html b/id_ID/docs/sql_builder.html index 6585434aa94..41014a37ccc 100644 --- a/id_ID/docs/sql_builder.html +++ b/id_ID/docs/sql_builder.html @@ -56,8 +56,8 @@ - - + + @@ -207,7 +207,7 @@

diff --git a/id_ID/docs/transactions.html b/id_ID/docs/transactions.html index 922c935b31f..3e31f157a74 100644 --- a/id_ID/docs/transactions.html +++ b/id_ID/docs/transactions.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/id_ID/docs/update.html b/id_ID/docs/update.html index 1801e3d3ad0..091ca6e968b 100644 --- a/id_ID/docs/update.html +++ b/id_ID/docs/update.html @@ -56,8 +56,8 @@ - - + + @@ -208,7 +208,7 @@

- + diff --git a/id_ID/docs/v2_release_note.html b/id_ID/docs/v2_release_note.html index d21d6b16688..8ff371a20b1 100644 --- a/id_ID/docs/v2_release_note.html +++ b/id_ID/docs/v2_release_note.html @@ -56,8 +56,8 @@ - - + + @@ -355,7 +355,7 @@

- + diff --git a/id_ID/docs/write_driver.html b/id_ID/docs/write_driver.html index fd4fcdcb842..9f637acfb3f 100644 --- a/id_ID/docs/write_driver.html +++ b/id_ID/docs/write_driver.html @@ -56,8 +56,8 @@ - - + + @@ -192,7 +192,7 @@

- + diff --git a/id_ID/docs/write_plugins.html b/id_ID/docs/write_plugins.html index ad539cb467b..58fba78c730 100644 --- a/id_ID/docs/write_plugins.html +++ b/id_ID/docs/write_plugins.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

diff --git a/id_ID/gen.html b/id_ID/gen.html index 58d6ef88b34..c35dfd7788e 100644 --- a/id_ID/gen.html +++ b/id_ID/gen.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/id_ID/gen/associations.html b/id_ID/gen/associations.html index 03bf21a3ab5..f5db00a2f1e 100644 --- a/id_ID/gen/associations.html +++ b/id_ID/gen/associations.html @@ -56,8 +56,8 @@ - - + + @@ -215,7 +215,7 @@

diff --git a/id_ID/gen/clause.html b/id_ID/gen/clause.html index 2c9f9faec86..1fba1a18c91 100644 --- a/id_ID/gen/clause.html +++ b/id_ID/gen/clause.html @@ -56,8 +56,8 @@ - - + + @@ -156,7 +156,7 @@

- + diff --git a/id_ID/gen/create.html b/id_ID/gen/create.html index b5a634c6c05..78dfeba528d 100644 --- a/id_ID/gen/create.html +++ b/id_ID/gen/create.html @@ -56,8 +56,8 @@ - - + + @@ -167,7 +167,7 @@

- + diff --git a/id_ID/gen/dao.html b/id_ID/gen/dao.html index 0a7f55ed1ed..3f9fa784e4b 100644 --- a/id_ID/gen/dao.html +++ b/id_ID/gen/dao.html @@ -56,8 +56,8 @@ - - + + @@ -143,7 +143,7 @@

DAO Overview

Gen follows the Configuration As Code practice to generate the DAO interface, here is the introduction to the configuration.

Configuration

You need to write the configuration as a runnable golang program, usually, the program will be organized in a sub-directory of your application.

-
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany"),
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}
+
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany")
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}

Run the above program, it will generate codes into directory ../dal, you can import the dal package in your application and use its interface to query data

gen.Config

type Config struct {
OutPath string // query code path
OutFile string // query code file name, default: gen.go
ModelPkgPath string // generated model code's package name
WithUnitTest bool // generate unit test for query code

FieldNullable bool // generate pointer when field is nullable
FieldCoverable bool // generate pointer when field has default value, to fix problem zero value cannot be assign: https://gorm.io/docs/create.html#Default-Values
FieldSignable bool // detect integer field's unsigned type, adjust generated data type
FieldWithIndexTag bool // generate with gorm index tag
FieldWithTypeTag bool // generate with gorm column type tag

Mode GenerateMode // generator modes
}
@@ -249,7 +249,7 @@

- + diff --git a/id_ID/gen/database_to_structs.html b/id_ID/gen/database_to_structs.html index 58633f4d3ca..c3c7fe746ee 100644 --- a/id_ID/gen/database_to_structs.html +++ b/id_ID/gen/database_to_structs.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

diff --git a/id_ID/gen/delete.html b/id_ID/gen/delete.html index da28f2e15f9..329724fbca0 100644 --- a/id_ID/gen/delete.html +++ b/id_ID/gen/delete.html @@ -56,8 +56,8 @@ - - + + @@ -174,7 +174,7 @@

- + diff --git a/id_ID/gen/dynamic_sql.html b/id_ID/gen/dynamic_sql.html index 597c8e16434..29f0cc19314 100644 --- a/id_ID/gen/dynamic_sql.html +++ b/id_ID/gen/dynamic_sql.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/id_ID/gen/gen_tool.html b/id_ID/gen/gen_tool.html index 02dde0dcb6c..ad42db1d567 100644 --- a/id_ID/gen/gen_tool.html +++ b/id_ID/gen/gen_tool.html @@ -56,8 +56,8 @@ - - + + @@ -175,7 +175,7 @@

- + diff --git a/id_ID/gen/index.html b/id_ID/gen/index.html index da4b3401cdd..f965ff2bef8 100644 --- a/id_ID/gen/index.html +++ b/id_ID/gen/index.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/id_ID/gen/query.html b/id_ID/gen/query.html index e1e1d6ff082..b04cf181582 100644 --- a/id_ID/gen/query.html +++ b/id_ID/gen/query.html @@ -56,8 +56,8 @@ - - + + @@ -312,7 +312,7 @@

- + diff --git a/id_ID/gen/rawsql_driver.html b/id_ID/gen/rawsql_driver.html index e5475b7fa00..3c0f20d14a9 100644 --- a/id_ID/gen/rawsql_driver.html +++ b/id_ID/gen/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/id_ID/gen/sql_annotation.html b/id_ID/gen/sql_annotation.html index b2a01dd1b43..37876ea2f1e 100644 --- a/id_ID/gen/sql_annotation.html +++ b/id_ID/gen/sql_annotation.html @@ -56,8 +56,8 @@ - - + + @@ -254,7 +254,7 @@

- + diff --git a/id_ID/gen/transaction.html b/id_ID/gen/transaction.html index 93125433111..75c19dc1239 100644 --- a/id_ID/gen/transaction.html +++ b/id_ID/gen/transaction.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/id_ID/gen/update.html b/id_ID/gen/update.html index fb75f78fd0a..e55b475923e 100644 --- a/id_ID/gen/update.html +++ b/id_ID/gen/update.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/id_ID/gorm.html b/id_ID/gorm.html index eb287c3385c..5337bcf7fa8 100644 --- a/id_ID/gorm.html +++ b/id_ID/gorm.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- +
diff --git a/id_ID/gormx.html b/id_ID/gormx.html index c80852ee3e0..067f6bae5e5 100644 --- a/id_ID/gormx.html +++ b/id_ID/gormx.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/id_ID/hints.html b/id_ID/hints.html index 1092392a3c2..ef116626da5 100644 --- a/id_ID/hints.html +++ b/id_ID/hints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/id_ID/index.html b/id_ID/index.html index 0f3040cfd61..ff724cb7b77 100644 --- a/id_ID/index.html +++ b/id_ID/index.html @@ -56,8 +56,8 @@ - - + + diff --git a/id_ID/rawsql.html b/id_ID/rawsql.html index e6b8a37e2d5..433d3414c1d 100644 --- a/id_ID/rawsql.html +++ b/id_ID/rawsql.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/id_ID/rawsql_driver.html b/id_ID/rawsql_driver.html index 9780b307e2e..42adfa81e92 100644 --- a/id_ID/rawsql_driver.html +++ b/id_ID/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/id_ID/sharding.html b/id_ID/sharding.html index 1018d9d2738..16ea807b0a4 100644 --- a/id_ID/sharding.html +++ b/id_ID/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/id_ID/stats.html b/id_ID/stats.html index 87adb6bfbb0..d8b1dfc8e69 100644 --- a/id_ID/stats.html +++ b/id_ID/stats.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/index.html b/index.html index abe78bc4307..9a7e1f1751c 100644 --- a/index.html +++ b/index.html @@ -56,8 +56,8 @@ - - + + diff --git a/it_IT/404.html b/it_IT/404.html index 54c29f07fcc..16bef9268ba 100644 --- a/it_IT/404.html +++ b/it_IT/404.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

404 - + diff --git a/it_IT/community.html b/it_IT/community.html index ffce1843f95..beedd658fe3 100644 --- a/it_IT/community.html +++ b/it_IT/community.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/it_IT/contribute.html b/it_IT/contribute.html index 58e29d252c8..656527fa007 100644 --- a/it_IT/contribute.html +++ b/it_IT/contribute.html @@ -32,8 +32,8 @@ - - + + @@ -149,7 +149,7 @@

- + diff --git a/it_IT/datatypes.html b/it_IT/datatypes.html index 70f314538f8..5e805de5060 100644 --- a/it_IT/datatypes.html +++ b/it_IT/datatypes.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/it_IT/docs/advanced_query.html b/it_IT/docs/advanced_query.html index dc955ea932d..ad8f07d9366 100644 --- a/it_IT/docs/advanced_query.html +++ b/it_IT/docs/advanced_query.html @@ -32,8 +32,8 @@ - - + + @@ -229,7 +229,7 @@

- + diff --git a/it_IT/docs/associations.html b/it_IT/docs/associations.html index 2199d962010..1d92f2044b2 100644 --- a/it_IT/docs/associations.html +++ b/it_IT/docs/associations.html @@ -56,8 +56,8 @@ - - + + @@ -287,7 +287,7 @@

diff --git a/it_IT/docs/belongs_to.html b/it_IT/docs/belongs_to.html index c7b68271465..2e710d8c4ea 100644 --- a/it_IT/docs/belongs_to.html +++ b/it_IT/docs/belongs_to.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/it_IT/docs/changelog.html b/it_IT/docs/changelog.html index 296478e88b1..5140eea1842 100644 --- a/it_IT/docs/changelog.html +++ b/it_IT/docs/changelog.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/it_IT/docs/composite_primary_key.html b/it_IT/docs/composite_primary_key.html index a8276600450..af555ca0ac7 100644 --- a/it_IT/docs/composite_primary_key.html +++ b/it_IT/docs/composite_primary_key.html @@ -56,8 +56,8 @@ - - + + @@ -158,7 +158,7 @@

Composite Primary Key

- +
diff --git a/it_IT/docs/connecting_to_the_database.html b/it_IT/docs/connecting_to_the_database.html index 24dcc1bb796..254e93d6f24 100644 --- a/it_IT/docs/connecting_to_the_database.html +++ b/it_IT/docs/connecting_to_the_database.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

- + diff --git a/it_IT/docs/constraints.html b/it_IT/docs/constraints.html index 353132ded3d..b5a0a5b5e12 100644 --- a/it_IT/docs/constraints.html +++ b/it_IT/docs/constraints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/it_IT/docs/context.html b/it_IT/docs/context.html index 810963956a9..6c573f919d7 100644 --- a/it_IT/docs/context.html +++ b/it_IT/docs/context.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

- + diff --git a/it_IT/docs/conventions.html b/it_IT/docs/conventions.html index 2beb9861e74..61769ab663e 100644 --- a/it_IT/docs/conventions.html +++ b/it_IT/docs/conventions.html @@ -56,8 +56,8 @@ - - + + @@ -194,7 +194,7 @@

- + diff --git a/it_IT/docs/create.html b/it_IT/docs/create.html index 7d43565b920..4f052ac587f 100644 --- a/it_IT/docs/create.html +++ b/it_IT/docs/create.html @@ -56,8 +56,8 @@ - - + + @@ -228,7 +228,7 @@

- + diff --git a/it_IT/docs/data_types.html b/it_IT/docs/data_types.html index 2f04863464e..52e487aff5d 100644 --- a/it_IT/docs/data_types.html +++ b/it_IT/docs/data_types.html @@ -56,8 +56,8 @@ - - + + @@ -189,7 +189,7 @@

- + diff --git a/it_IT/docs/dbresolver.html b/it_IT/docs/dbresolver.html index 1a9900dd16a..667d7125e7e 100644 --- a/it_IT/docs/dbresolver.html +++ b/it_IT/docs/dbresolver.html @@ -56,8 +56,8 @@ - - + + @@ -183,7 +183,7 @@

diff --git a/it_IT/docs/delete.html b/it_IT/docs/delete.html index 0dd3fb40633..36bc233a6ae 100644 --- a/it_IT/docs/delete.html +++ b/it_IT/docs/delete.html @@ -56,8 +56,8 @@ - - + + @@ -202,7 +202,7 @@

- + diff --git a/it_IT/docs/error_handling.html b/it_IT/docs/error_handling.html index 5b10f4b0acb..1dd485cb855 100644 --- a/it_IT/docs/error_handling.html +++ b/it_IT/docs/error_handling.html @@ -56,8 +56,8 @@ - - + + @@ -187,7 +187,7 @@

- + diff --git a/it_IT/docs/generic_interface.html b/it_IT/docs/generic_interface.html index 09f3fc801ee..aebf32a2fce 100644 --- a/it_IT/docs/generic_interface.html +++ b/it_IT/docs/generic_interface.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

diff --git a/it_IT/docs/gorm_config.html b/it_IT/docs/gorm_config.html index 8782e6655cc..3005b2dad34 100644 --- a/it_IT/docs/gorm_config.html +++ b/it_IT/docs/gorm_config.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

diff --git a/it_IT/docs/has_many.html b/it_IT/docs/has_many.html index 038f2109f30..6ecb20e261c 100644 --- a/it_IT/docs/has_many.html +++ b/it_IT/docs/has_many.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/it_IT/docs/has_one.html b/it_IT/docs/has_one.html index 668563f3323..e2f953ed21c 100644 --- a/it_IT/docs/has_one.html +++ b/it_IT/docs/has_one.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/it_IT/docs/hints.html b/it_IT/docs/hints.html index 180380c749d..c5d820cdae6 100644 --- a/it_IT/docs/hints.html +++ b/it_IT/docs/hints.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

- + diff --git a/it_IT/docs/hooks.html b/it_IT/docs/hooks.html index 4f5a58ff1b4..6d3fdbeee4c 100644 --- a/it_IT/docs/hooks.html +++ b/it_IT/docs/hooks.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/it_IT/docs/index.html b/it_IT/docs/index.html index 6143452ce46..5f3e779191d 100644 --- a/it_IT/docs/index.html +++ b/it_IT/docs/index.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/it_IT/docs/indexes.html b/it_IT/docs/indexes.html index 12e1eb76820..211ca5f301b 100644 --- a/it_IT/docs/indexes.html +++ b/it_IT/docs/indexes.html @@ -56,8 +56,8 @@ - - + + @@ -179,7 +179,7 @@

diff --git a/it_IT/docs/logger.html b/it_IT/docs/logger.html index 7c2e628fa68..527618e4bc0 100644 --- a/it_IT/docs/logger.html +++ b/it_IT/docs/logger.html @@ -56,8 +56,8 @@ - - + + @@ -166,7 +166,7 @@

diff --git a/it_IT/docs/many_to_many.html b/it_IT/docs/many_to_many.html index 13581c25425..896bf791dd9 100644 --- a/it_IT/docs/many_to_many.html +++ b/it_IT/docs/many_to_many.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/it_IT/docs/method_chaining.html b/it_IT/docs/method_chaining.html index 34758aa2d1c..013fbd6ac63 100644 --- a/it_IT/docs/method_chaining.html +++ b/it_IT/docs/method_chaining.html @@ -56,8 +56,8 @@ - - + + @@ -210,7 +210,7 @@

- + diff --git a/it_IT/docs/migration.html b/it_IT/docs/migration.html index 66a41774fd5..8d681833f0c 100644 --- a/it_IT/docs/migration.html +++ b/it_IT/docs/migration.html @@ -56,8 +56,8 @@ - - + + @@ -206,7 +206,7 @@

- + diff --git a/it_IT/docs/models.html b/it_IT/docs/models.html index 3ca73db3b9d..fbc33b585ac 100644 --- a/it_IT/docs/models.html +++ b/it_IT/docs/models.html @@ -56,8 +56,8 @@ - - + + @@ -315,7 +315,7 @@

diff --git a/it_IT/docs/performance.html b/it_IT/docs/performance.html index 99c93080859..25ac36b7dcf 100644 --- a/it_IT/docs/performance.html +++ b/it_IT/docs/performance.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

- + diff --git a/it_IT/docs/polymorphism.html b/it_IT/docs/polymorphism.html index a2bdf92047a..d3c428a82a9 100644 --- a/it_IT/docs/polymorphism.html +++ b/it_IT/docs/polymorphism.html @@ -32,8 +32,8 @@ - - + + @@ -142,7 +142,7 @@

Polymorphism

- +
diff --git a/it_IT/docs/preload.html b/it_IT/docs/preload.html index ccdd9284848..f2f3cd57afd 100644 --- a/it_IT/docs/preload.html +++ b/it_IT/docs/preload.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/it_IT/docs/prometheus.html b/it_IT/docs/prometheus.html index 6b5943b5760..ce6612545ba 100644 --- a/it_IT/docs/prometheus.html +++ b/it_IT/docs/prometheus.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- + diff --git a/it_IT/docs/query.html b/it_IT/docs/query.html index 7954e4e5f09..aea78242e3f 100644 --- a/it_IT/docs/query.html +++ b/it_IT/docs/query.html @@ -56,8 +56,8 @@ - - + + @@ -243,7 +243,7 @@

- + diff --git a/it_IT/docs/scopes.html b/it_IT/docs/scopes.html index b607ddd562c..31cfa51077e 100644 --- a/it_IT/docs/scopes.html +++ b/it_IT/docs/scopes.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/it_IT/docs/security.html b/it_IT/docs/security.html index 050177a8f98..c4f90adc0c5 100644 --- a/it_IT/docs/security.html +++ b/it_IT/docs/security.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/it_IT/docs/serializer.html b/it_IT/docs/serializer.html index ab106d12745..a31e631c8e4 100644 --- a/it_IT/docs/serializer.html +++ b/it_IT/docs/serializer.html @@ -56,8 +56,8 @@ - - + + @@ -171,7 +171,7 @@

- + diff --git a/it_IT/docs/session.html b/it_IT/docs/session.html index 53c5985aa40..46cb9e1cc30 100644 --- a/it_IT/docs/session.html +++ b/it_IT/docs/session.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

diff --git a/it_IT/docs/settings.html b/it_IT/docs/settings.html index 759854d151e..f2afe7922d7 100644 --- a/it_IT/docs/settings.html +++ b/it_IT/docs/settings.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/it_IT/docs/sharding.html b/it_IT/docs/sharding.html index 3c07b14dcca..30c5cfbf3b8 100644 --- a/it_IT/docs/sharding.html +++ b/it_IT/docs/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -168,7 +168,7 @@

- + diff --git a/it_IT/docs/sql_builder.html b/it_IT/docs/sql_builder.html index 74a14784c35..f519c7fd8e2 100644 --- a/it_IT/docs/sql_builder.html +++ b/it_IT/docs/sql_builder.html @@ -56,8 +56,8 @@ - - + + @@ -207,7 +207,7 @@

diff --git a/it_IT/docs/transactions.html b/it_IT/docs/transactions.html index fffa6dd5387..594197894f1 100644 --- a/it_IT/docs/transactions.html +++ b/it_IT/docs/transactions.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/it_IT/docs/update.html b/it_IT/docs/update.html index 38ba18320f7..a487ab3a045 100644 --- a/it_IT/docs/update.html +++ b/it_IT/docs/update.html @@ -56,8 +56,8 @@ - - + + @@ -208,7 +208,7 @@

- + diff --git a/it_IT/docs/v2_release_note.html b/it_IT/docs/v2_release_note.html index 2780388a848..f187b195e0e 100644 --- a/it_IT/docs/v2_release_note.html +++ b/it_IT/docs/v2_release_note.html @@ -56,8 +56,8 @@ - - + + @@ -355,7 +355,7 @@

- + diff --git a/it_IT/docs/write_driver.html b/it_IT/docs/write_driver.html index 7417a608d7d..e6561190e86 100644 --- a/it_IT/docs/write_driver.html +++ b/it_IT/docs/write_driver.html @@ -56,8 +56,8 @@ - - + + @@ -192,7 +192,7 @@

- + diff --git a/it_IT/docs/write_plugins.html b/it_IT/docs/write_plugins.html index b511c6103e7..82ca3ed638b 100644 --- a/it_IT/docs/write_plugins.html +++ b/it_IT/docs/write_plugins.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

diff --git a/it_IT/gen.html b/it_IT/gen.html index 4ca4794a1ef..847c08f0afa 100644 --- a/it_IT/gen.html +++ b/it_IT/gen.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/it_IT/gen/associations.html b/it_IT/gen/associations.html index 3aaf0fa2f4a..33b3cc81978 100644 --- a/it_IT/gen/associations.html +++ b/it_IT/gen/associations.html @@ -56,8 +56,8 @@ - - + + @@ -215,7 +215,7 @@

diff --git a/it_IT/gen/clause.html b/it_IT/gen/clause.html index 05710d06ba3..e1173654053 100644 --- a/it_IT/gen/clause.html +++ b/it_IT/gen/clause.html @@ -56,8 +56,8 @@ - - + + @@ -156,7 +156,7 @@

- + diff --git a/it_IT/gen/create.html b/it_IT/gen/create.html index 40908110ad9..cf7ff94fa5d 100644 --- a/it_IT/gen/create.html +++ b/it_IT/gen/create.html @@ -56,8 +56,8 @@ - - + + @@ -167,7 +167,7 @@

- + diff --git a/it_IT/gen/dao.html b/it_IT/gen/dao.html index ef884a3cb58..5014bbbd9aa 100644 --- a/it_IT/gen/dao.html +++ b/it_IT/gen/dao.html @@ -56,8 +56,8 @@ - - + + @@ -143,7 +143,7 @@

DAO Overview

Gen follows the Configuration As Code practice to generate the DAO interface, here is the introduction to the configuration.

Configuration

You need to write the configuration as a runnable golang program, usually, the program will be organized in a sub-directory of your application.

-
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany"),
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}
+
// configuration.go
package main

import (
"gorm.io/gen"
"gorm.io/gorm"
"gorm.io/driver/sqlite"
)

func main() {
// Initialize the generator with configuration
g := gen.NewGenerator(gen.Config{
OutPath: "../dal", // output directory, default value is ./query
Mode: gen.WithDefaultQuery | gen.WithQueryInterface,
FieldNullable: true,
})

// Initialize a *gorm.DB instance
db, err := gorm.Open(sqlite.Open("test.db"), &gorm.Config{})

// Use the above `*gorm.DB` instance to initialize the generator,
// which is required to generate structs from db when using `GenerateModel/GenerateModelAs`
g.UseDB(db)

// Generate default DAO interface for those specified structs
g.ApplyBasic(model.Customer{}, model.CreditCard{}, model.Bank{}, model.Passport{})

// Generate default DAO interface for those generated structs from database
companyGenerator := g.GenerateModelAs("company", "MyCompany")
g.ApplyBasic(
g.GenerateModel("users"),
companyGenerator,
g.GenerateModelAs("people", "Person",
gen.FieldIgnore("deleted_at"),
gen.FieldNewTag("age", `json:"-"`),
),
)

// Execute the generator
g.Execute()
}

Run the above program, it will generate codes into directory ../dal, you can import the dal package in your application and use its interface to query data

gen.Config

type Config struct {
OutPath string // query code path
OutFile string // query code file name, default: gen.go
ModelPkgPath string // generated model code's package name
WithUnitTest bool // generate unit test for query code

FieldNullable bool // generate pointer when field is nullable
FieldCoverable bool // generate pointer when field has default value, to fix problem zero value cannot be assign: https://gorm.io/docs/create.html#Default-Values
FieldSignable bool // detect integer field's unsigned type, adjust generated data type
FieldWithIndexTag bool // generate with gorm index tag
FieldWithTypeTag bool // generate with gorm column type tag

Mode GenerateMode // generator modes
}
@@ -249,7 +249,7 @@

- + diff --git a/it_IT/gen/database_to_structs.html b/it_IT/gen/database_to_structs.html index 03c97a6cb03..ca6bc4ca81b 100644 --- a/it_IT/gen/database_to_structs.html +++ b/it_IT/gen/database_to_structs.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

diff --git a/it_IT/gen/delete.html b/it_IT/gen/delete.html index b5a2eaa1602..9fbea8ec18f 100644 --- a/it_IT/gen/delete.html +++ b/it_IT/gen/delete.html @@ -56,8 +56,8 @@ - - + + @@ -174,7 +174,7 @@

- + diff --git a/it_IT/gen/dynamic_sql.html b/it_IT/gen/dynamic_sql.html index db67205f57d..80f3e2d169d 100644 --- a/it_IT/gen/dynamic_sql.html +++ b/it_IT/gen/dynamic_sql.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/it_IT/gen/gen_tool.html b/it_IT/gen/gen_tool.html index f38afaaf1f4..0ff26ac4abd 100644 --- a/it_IT/gen/gen_tool.html +++ b/it_IT/gen/gen_tool.html @@ -56,8 +56,8 @@ - - + + @@ -175,7 +175,7 @@

- + diff --git a/it_IT/gen/index.html b/it_IT/gen/index.html index 35fcda5b786..ce8a300c78e 100644 --- a/it_IT/gen/index.html +++ b/it_IT/gen/index.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/it_IT/gen/query.html b/it_IT/gen/query.html index 2e9748deebe..19b08e96a2b 100644 --- a/it_IT/gen/query.html +++ b/it_IT/gen/query.html @@ -56,8 +56,8 @@ - - + + @@ -312,7 +312,7 @@

- + diff --git a/it_IT/gen/rawsql_driver.html b/it_IT/gen/rawsql_driver.html index e31106e3aa2..5bf59abcd57 100644 --- a/it_IT/gen/rawsql_driver.html +++ b/it_IT/gen/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/it_IT/gen/sql_annotation.html b/it_IT/gen/sql_annotation.html index bf3593b243d..f31e05a23c5 100644 --- a/it_IT/gen/sql_annotation.html +++ b/it_IT/gen/sql_annotation.html @@ -56,8 +56,8 @@ - - + + @@ -254,7 +254,7 @@

- + diff --git a/it_IT/gen/transaction.html b/it_IT/gen/transaction.html index 85f0abcc6dc..41ef528a7e4 100644 --- a/it_IT/gen/transaction.html +++ b/it_IT/gen/transaction.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- + diff --git a/it_IT/gen/update.html b/it_IT/gen/update.html index 942aa6b8a1b..b0d6179f23c 100644 --- a/it_IT/gen/update.html +++ b/it_IT/gen/update.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/it_IT/gorm.html b/it_IT/gorm.html index b8f85d125f0..a176564aa0f 100644 --- a/it_IT/gorm.html +++ b/it_IT/gorm.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

- +
diff --git a/it_IT/gormx.html b/it_IT/gormx.html index 2fb6d3b188f..fbc1985fe2c 100644 --- a/it_IT/gormx.html +++ b/it_IT/gormx.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/it_IT/hints.html b/it_IT/hints.html index 0efb87a44df..18d3558dd11 100644 --- a/it_IT/hints.html +++ b/it_IT/hints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- +
diff --git a/it_IT/index.html b/it_IT/index.html index a6d89d945cd..b5c716705aa 100644 --- a/it_IT/index.html +++ b/it_IT/index.html @@ -56,8 +56,8 @@ - - + + diff --git a/it_IT/rawsql.html b/it_IT/rawsql.html index ee78bc9d030..066ee327d09 100644 --- a/it_IT/rawsql.html +++ b/it_IT/rawsql.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/it_IT/rawsql_driver.html b/it_IT/rawsql_driver.html index b74fb457dcf..c514e44302f 100644 --- a/it_IT/rawsql_driver.html +++ b/it_IT/rawsql_driver.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/it_IT/sharding.html b/it_IT/sharding.html index 5a35291a44e..c8d0c3dc2a3 100644 --- a/it_IT/sharding.html +++ b/it_IT/sharding.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/it_IT/stats.html b/it_IT/stats.html index 35cb6b68ce9..c3dfe0c86d2 100644 --- a/it_IT/stats.html +++ b/it_IT/stats.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/ja_JP/404.html b/ja_JP/404.html index cb15961f9b5..d0251e8efb4 100644 --- a/ja_JP/404.html +++ b/ja_JP/404.html @@ -56,8 +56,8 @@ - - + + @@ -161,7 +161,7 @@

404 - + diff --git a/ja_JP/community.html b/ja_JP/community.html index f863eeb3cb5..7caf1911c0f 100644 --- a/ja_JP/community.html +++ b/ja_JP/community.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/ja_JP/contribute.html b/ja_JP/contribute.html index 3dc56bc0063..22724bc6a76 100644 --- a/ja_JP/contribute.html +++ b/ja_JP/contribute.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/ja_JP/datatypes.html b/ja_JP/datatypes.html index 3ba4774bf84..51f7723e6f4 100644 --- a/ja_JP/datatypes.html +++ b/ja_JP/datatypes.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- +
diff --git a/ja_JP/docs/advanced_query.html b/ja_JP/docs/advanced_query.html index bfd8d91aed7..26b217d980e 100644 --- a/ja_JP/docs/advanced_query.html +++ b/ja_JP/docs/advanced_query.html @@ -56,8 +56,8 @@ - - + + @@ -253,7 +253,7 @@

- + diff --git a/ja_JP/docs/associations.html b/ja_JP/docs/associations.html index 8c799cca7eb..a7f2db0e1d7 100644 --- a/ja_JP/docs/associations.html +++ b/ja_JP/docs/associations.html @@ -56,8 +56,8 @@ - - + + @@ -287,7 +287,7 @@

diff --git a/ja_JP/docs/belongs_to.html b/ja_JP/docs/belongs_to.html index d5ca663a5f1..b0ee54f1186 100644 --- a/ja_JP/docs/belongs_to.html +++ b/ja_JP/docs/belongs_to.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/ja_JP/docs/changelog.html b/ja_JP/docs/changelog.html index d3e559d1721..56ea4f98575 100644 --- a/ja_JP/docs/changelog.html +++ b/ja_JP/docs/changelog.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/ja_JP/docs/composite_primary_key.html b/ja_JP/docs/composite_primary_key.html index f16ae26aac4..bf9f844ba36 100644 --- a/ja_JP/docs/composite_primary_key.html +++ b/ja_JP/docs/composite_primary_key.html @@ -56,8 +56,8 @@ - - + + @@ -158,7 +158,7 @@

複合主キー

- +
diff --git a/ja_JP/docs/connecting_to_the_database.html b/ja_JP/docs/connecting_to_the_database.html index fcbf0fb4d09..22321d10436 100644 --- a/ja_JP/docs/connecting_to_the_database.html +++ b/ja_JP/docs/connecting_to_the_database.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

- + diff --git a/ja_JP/docs/constraints.html b/ja_JP/docs/constraints.html index e0eac016974..b1dd09646d7 100644 --- a/ja_JP/docs/constraints.html +++ b/ja_JP/docs/constraints.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/ja_JP/docs/context.html b/ja_JP/docs/context.html index e99f79476a8..004b8d90ef1 100644 --- a/ja_JP/docs/context.html +++ b/ja_JP/docs/context.html @@ -56,8 +56,8 @@ - - + + @@ -172,7 +172,7 @@

- + diff --git a/ja_JP/docs/conventions.html b/ja_JP/docs/conventions.html index 198a7823576..340d58c1537 100644 --- a/ja_JP/docs/conventions.html +++ b/ja_JP/docs/conventions.html @@ -56,8 +56,8 @@ - - + + @@ -194,7 +194,7 @@

- + diff --git a/ja_JP/docs/create.html b/ja_JP/docs/create.html index 30b3a41eb42..66bbce95e36 100644 --- a/ja_JP/docs/create.html +++ b/ja_JP/docs/create.html @@ -56,8 +56,8 @@ - - + + @@ -228,7 +228,7 @@

- + diff --git a/ja_JP/docs/data_types.html b/ja_JP/docs/data_types.html index 84d28226d5e..acb34dacb71 100644 --- a/ja_JP/docs/data_types.html +++ b/ja_JP/docs/data_types.html @@ -56,8 +56,8 @@ - - + + @@ -189,7 +189,7 @@

diff --git a/ja_JP/docs/dbresolver.html b/ja_JP/docs/dbresolver.html index eb4932be1e2..d5338f3145b 100644 --- a/ja_JP/docs/dbresolver.html +++ b/ja_JP/docs/dbresolver.html @@ -56,8 +56,8 @@ - - + + @@ -183,7 +183,7 @@

- + diff --git a/ja_JP/docs/delete.html b/ja_JP/docs/delete.html index ea42a8e2029..ea79429ed16 100644 --- a/ja_JP/docs/delete.html +++ b/ja_JP/docs/delete.html @@ -56,8 +56,8 @@ - - + + @@ -202,7 +202,7 @@

- + diff --git a/ja_JP/docs/error_handling.html b/ja_JP/docs/error_handling.html index 02a324b7d43..2e4f3e8a42a 100644 --- a/ja_JP/docs/error_handling.html +++ b/ja_JP/docs/error_handling.html @@ -56,8 +56,8 @@ - - + + @@ -187,7 +187,7 @@

- + diff --git a/ja_JP/docs/generic_interface.html b/ja_JP/docs/generic_interface.html index 25f82c68d8f..7304f77a5b9 100644 --- a/ja_JP/docs/generic_interface.html +++ b/ja_JP/docs/generic_interface.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

- + diff --git a/ja_JP/docs/gorm_config.html b/ja_JP/docs/gorm_config.html index b9f89e7448c..bb45c2fe44a 100644 --- a/ja_JP/docs/gorm_config.html +++ b/ja_JP/docs/gorm_config.html @@ -56,8 +56,8 @@ - - + + @@ -182,7 +182,7 @@

- + diff --git a/ja_JP/docs/has_one.html b/ja_JP/docs/has_one.html index fca2caffdfa..be5d82f35d2 100644 --- a/ja_JP/docs/has_one.html +++ b/ja_JP/docs/has_one.html @@ -56,8 +56,8 @@ - - + + @@ -177,7 +177,7 @@

- + diff --git a/ja_JP/docs/hints.html b/ja_JP/docs/hints.html index f273a494b93..7c47af0fad1 100644 --- a/ja_JP/docs/hints.html +++ b/ja_JP/docs/hints.html @@ -56,8 +56,8 @@ - - + + @@ -160,7 +160,7 @@

- + diff --git a/ja_JP/docs/hooks.html b/ja_JP/docs/hooks.html index ba6fa2e058e..4f659b99849 100644 --- a/ja_JP/docs/hooks.html +++ b/ja_JP/docs/hooks.html @@ -56,8 +56,8 @@ - - + + @@ -186,7 +186,7 @@

- + diff --git a/ja_JP/docs/index.html b/ja_JP/docs/index.html index 8271eb9c9ac..2b84e5e4da6 100644 --- a/ja_JP/docs/index.html +++ b/ja_JP/docs/index.html @@ -56,8 +56,8 @@ - - + + @@ -173,7 +173,7 @@

- + diff --git a/ja_JP/docs/indexes.html b/ja_JP/docs/indexes.html index 257ef2b9f71..a740300c697 100644 --- a/ja_JP/docs/indexes.html +++ b/ja_JP/docs/indexes.html @@ -56,8 +56,8 @@ - - + + @@ -179,7 +179,7 @@

- + diff --git a/ja_JP/docs/logger.html b/ja_JP/docs/logger.html index ef321603664..2ab5641a3dc 100644 --- a/ja_JP/docs/logger.html +++ b/ja_JP/docs/logger.html @@ -56,8 +56,8 @@ - - + + @@ -152,7 +152,7 @@

db.Debug().Where("name = ?", "jinzhu").First(&User{})

Loggerのカスタマイズ

独自のLoggerを定義する方法については、GORMの default logger を参照してください。

-

Loggerは以下ののインターフェイスを実装する必要があります。 contextを利用できるため、ログトレースで使用することができます。

+

Loggerは以下のインターフェイスを実装する必要があります。 contextを利用できるため、ログトレースで使用することができます。

type Interface interface {
LogMode(LogLevel) Interface
Info(context.Context, string, ...interface{})
Warn(context.Context, string, ...interface{})
Error(context.Context, string, ...interface{})
Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error)
}

@@ -166,7 +166,7 @@

- + diff --git a/ja_JP/docs/many_to_many.html b/ja_JP/docs/many_to_many.html index f9209340266..76b98952967 100644 --- a/ja_JP/docs/many_to_many.html +++ b/ja_JP/docs/many_to_many.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/ja_JP/docs/method_chaining.html b/ja_JP/docs/method_chaining.html index 66733a3ebb5..783243b75ff 100644 --- a/ja_JP/docs/method_chaining.html +++ b/ja_JP/docs/method_chaining.html @@ -56,8 +56,8 @@ - - + + @@ -210,7 +210,7 @@

- + diff --git a/ja_JP/docs/migration.html b/ja_JP/docs/migration.html index c4f61a67882..34845af8fac 100644 --- a/ja_JP/docs/migration.html +++ b/ja_JP/docs/migration.html @@ -56,8 +56,8 @@ - - + + @@ -206,7 +206,7 @@

- + diff --git a/ja_JP/docs/models.html b/ja_JP/docs/models.html index ae14ca9b235..e4b7bf988a7 100644 --- a/ja_JP/docs/models.html +++ b/ja_JP/docs/models.html @@ -56,8 +56,8 @@ - - + + @@ -315,7 +315,7 @@

- + diff --git a/ja_JP/docs/performance.html b/ja_JP/docs/performance.html index 366948c29cb..da877d7d8a8 100644 --- a/ja_JP/docs/performance.html +++ b/ja_JP/docs/performance.html @@ -56,8 +56,8 @@ - - + + @@ -178,7 +178,7 @@

diff --git a/ja_JP/docs/polymorphism.html b/ja_JP/docs/polymorphism.html index 29a424f63d2..13fa4ead59a 100644 --- a/ja_JP/docs/polymorphism.html +++ b/ja_JP/docs/polymorphism.html @@ -32,8 +32,8 @@ - - + + @@ -142,7 +142,7 @@

Polymorphism

- +
diff --git a/ja_JP/docs/preload.html b/ja_JP/docs/preload.html index e216cb4af12..8e738cd09ca 100644 --- a/ja_JP/docs/preload.html +++ b/ja_JP/docs/preload.html @@ -56,8 +56,8 @@ - - + + @@ -191,7 +191,7 @@

- + diff --git a/ja_JP/docs/prometheus.html b/ja_JP/docs/prometheus.html index 5ca65e970e7..342e59f26b0 100644 --- a/ja_JP/docs/prometheus.html +++ b/ja_JP/docs/prometheus.html @@ -56,8 +56,8 @@ - - + + @@ -162,7 +162,7 @@

- + diff --git a/ja_JP/docs/query.html b/ja_JP/docs/query.html index 27e666f43b0..a7e45a39622 100644 --- a/ja_JP/docs/query.html +++ b/ja_JP/docs/query.html @@ -56,8 +56,8 @@ - - + + @@ -243,7 +243,7 @@

- + diff --git a/ja_JP/docs/scopes.html b/ja_JP/docs/scopes.html index 0bd0c064a46..f197da12bd4 100644 --- a/ja_JP/docs/scopes.html +++ b/ja_JP/docs/scopes.html @@ -56,8 +56,8 @@ - - + + @@ -164,7 +164,7 @@

- + diff --git a/ja_JP/docs/security.html b/ja_JP/docs/security.html index bc72cc13a64..e14a0cedd3f 100644 --- a/ja_JP/docs/security.html +++ b/ja_JP/docs/security.html @@ -56,8 +56,8 @@ - - + + @@ -169,7 +169,7 @@

- + diff --git a/ja_JP/docs/serializer.html b/ja_JP/docs/serializer.html index ef24eee7ea9..7219424aae0 100644 --- a/ja_JP/docs/serializer.html +++ b/ja_JP/docs/serializer.html @@ -56,8 +56,8 @@ - - + + @@ -171,7 +171,7 @@

- + diff --git a/ja_JP/docs/session.html b/ja_JP/docs/session.html index 9295950134f..6fdc6cca23e 100644 --- a/ja_JP/docs/session.html +++ b/ja_JP/docs/session.html @@ -56,8 +56,8 @@ - - + + @@ -204,7 +204,7 @@

diff --git a/ja_JP/docs/settings.html b/ja_JP/docs/settings.html index 6adc6454d97..8a753f587c9 100644 --- a/ja_JP/docs/settings.html +++ b/ja_JP/docs/settings.html @@ -56,8 +56,8 @@ - - + + @@ -163,7 +163,7 @@

- + diff --git a/ja_JP/docs/sharding.html b/ja_JP/docs/sharding.html index 7ba2d3b8a14..2d0176bbe86 100644 --- a/ja_JP/docs/sharding.html +++ b/ja_JP/docs/sharding.html @@ -49,15 +49,15 @@ - + - + - - + + @@ -141,7 +141,7 @@

Sharding

-

シャーディングプラグインは、巨大なテーブルを小さいテーブルに分割し、シャーディングテーブルにクエリをリダイレクトするために、SQLパーサーを使用してクエリを置き換えます。 高パフォーマンスなデータベスアクセスが可能となります。

+

シャーディングプラグインは、巨大なテーブルを小さいテーブルに分割し、シャーディングテーブルにクエリをリダイレクトするために、SQLパーサーを使用してクエリを置き換えます。 高パフォーマンスなデータベースアクセスが可能となります。

https://github.com/go-gorm/sharding

特徴