Skip to content

Commit

Permalink
New Crowdin updates (#699)
Browse files Browse the repository at this point in the history
* New translations query.md (French)

* New translations query.md (Spanish)

* New translations query.md (Arabic)

* New translations query.md (German)

* New translations query.md (Italian)

* New translations query.md (Japanese)

* New translations query.md (Korean)

* New translations query.md (Polish)

* New translations query.md (Russian)

* New translations query.md (Turkish)

* New translations query.md (Chinese Simplified)

* New translations query.md (Portuguese, Brazilian)

* New translations query.md (Indonesian)

* New translations query.md (Persian)

* New translations query.md (Azerbaijani)

* New translations query.md (Hindi)

* New translations query.md (Chinese Simplified)

* New translations query.md (Chinese Simplified)

* New translations community.md (French)

* New translations community.md (Spanish)

* New translations community.md (Arabic)

* New translations community.md (German)

* New translations community.md (Italian)

* New translations community.md (Japanese)

* New translations community.md (Korean)

* New translations community.md (Polish)

* New translations community.md (Russian)

* New translations community.md (Turkish)

* New translations community.md (Chinese Simplified)

* New translations community.md (Portuguese, Brazilian)

* New translations community.md (Indonesian)

* New translations community.md (Persian)

* New translations community.md (Azerbaijani)

* New translations community.md (Hindi)

* Update source file community.md

* New translations community.md (Chinese Simplified)

* New translations hints.md (Russian)

* New translations migration.md (French)

* New translations migration.md (Spanish)

* New translations migration.md (Arabic)

* New translations migration.md (German)

* New translations migration.md (Italian)

* New translations migration.md (Japanese)

* New translations migration.md (Korean)

* New translations migration.md (Polish)

* New translations migration.md (Russian)

* New translations migration.md (Turkish)

* New translations migration.md (Chinese Simplified)

* New translations migration.md (Portuguese, Brazilian)

* New translations migration.md (Indonesian)

* New translations migration.md (Persian)

* New translations migration.md (Azerbaijani)

* New translations migration.md (Hindi)

* Update source file migration.md

* New translations create.md (French)

* New translations create.md (Spanish)

* New translations create.md (Arabic)

* New translations create.md (German)

* New translations create.md (Italian)

* New translations create.md (Japanese)

* New translations create.md (Korean)

* New translations create.md (Polish)

* New translations create.md (Russian)

* New translations create.md (Turkish)

* New translations create.md (Chinese Simplified)

* New translations query.md (Chinese Simplified)

* New translations create.md (Portuguese, Brazilian)

* New translations create.md (Indonesian)

* New translations create.md (Persian)

* New translations create.md (Azerbaijani)

* New translations create.md (Hindi)

* Update source file create.md

* New translations query.md (Chinese Simplified)

* New translations rawsql_driver.html (French)

* New translations rawsql_driver.html (Spanish)

* New translations rawsql_driver.html (Arabic)

* New translations rawsql_driver.html (German)

* New translations rawsql_driver.html (Italian)

* New translations rawsql_driver.html (Japanese)

* New translations rawsql_driver.html (Korean)

* New translations rawsql_driver.html (Polish)

* New translations rawsql_driver.html (Russian)

* New translations rawsql_driver.html (Turkish)

* New translations rawsql_driver.html (Chinese Simplified)

* New translations rawsql_driver.html (Portuguese, Brazilian)

* New translations rawsql_driver.html (Indonesian)

* New translations rawsql_driver.html (Persian)

* New translations rawsql_driver.html (Azerbaijani)

* New translations rawsql_driver.html (Hindi)

* Update source file rawsql_driver.html

* New translations rawsql_driver.html (French)

* New translations rawsql_driver.html (Spanish)

* New translations rawsql_driver.html (Arabic)

* New translations rawsql_driver.html (German)

* New translations rawsql_driver.html (Italian)

* New translations rawsql_driver.html (Japanese)

* New translations rawsql_driver.html (Korean)

* New translations rawsql_driver.html (Polish)

* New translations rawsql_driver.html (Russian)

* New translations rawsql_driver.html (Turkish)

* New translations rawsql_driver.html (Chinese Simplified)

* New translations rawsql_driver.html (Portuguese, Brazilian)

* New translations rawsql_driver.html (Indonesian)

* New translations rawsql_driver.html (Persian)

* New translations rawsql_driver.html (Azerbaijani)

* New translations rawsql_driver.html (Hindi)

* Update source file rawsql_driver.html

* New translations rawsql_driver.html (French)

* New translations rawsql_driver.html (Spanish)

* New translations rawsql_driver.html (Arabic)

* New translations rawsql_driver.html (German)

* New translations rawsql_driver.html (Italian)

* New translations rawsql_driver.html (Japanese)

* New translations rawsql_driver.html (Korean)

* New translations rawsql_driver.html (Polish)

* New translations rawsql_driver.html (Russian)

* New translations rawsql_driver.html (Turkish)

* New translations rawsql_driver.html (Chinese Simplified)

* New translations rawsql_driver.html (Portuguese, Brazilian)

* New translations rawsql_driver.html (Indonesian)

* New translations rawsql_driver.html (Persian)

* New translations rawsql_driver.html (Azerbaijani)

* New translations rawsql_driver.html (Hindi)

* New translations database_to_structs.md (French)

* New translations database_to_structs.md (Spanish)

* New translations database_to_structs.md (Arabic)

* New translations database_to_structs.md (German)

* New translations database_to_structs.md (Italian)

* New translations database_to_structs.md (Japanese)

* New translations database_to_structs.md (Korean)

* New translations database_to_structs.md (Polish)

* New translations database_to_structs.md (Russian)

* New translations database_to_structs.md (Turkish)

* New translations database_to_structs.md (Chinese Simplified)

* New translations database_to_structs.md (Portuguese, Brazilian)

* New translations database_to_structs.md (Indonesian)

* New translations database_to_structs.md (Persian)

* New translations database_to_structs.md (Azerbaijani)

* New translations database_to_structs.md (Hindi)

* New translations rawsql.html (French)

* New translations rawsql.html (Spanish)

* New translations rawsql.html (Arabic)

* New translations rawsql.html (German)

* New translations rawsql.html (Italian)

* New translations rawsql.html (Japanese)

* New translations rawsql.html (Korean)

* New translations rawsql.html (Polish)

* New translations rawsql.html (Russian)

* New translations rawsql.html (Turkish)

* New translations rawsql.html (Chinese Simplified)

* New translations rawsql.html (Portuguese, Brazilian)

* New translations rawsql.html (Indonesian)

* New translations rawsql.html (Persian)

* New translations rawsql.html (Azerbaijani)

* New translations rawsql.html (Hindi)

* Update source file rawsql.html

* Update source file database_to_structs.md

* New translations constraints.md (French)

* New translations create.md (French)

* New translations contribute.md (French)

* New translations associations.md (French)

* New translations belongs_to.md (French)

* New translations composite_primary_key.md (French)

* New translations connecting_to_the_database.md (French)

* New translations constraints.md (French)

* New translations data_types.md (French)

* New translations en.yml (French)

* New translations delete.md (Turkish)

* New translations delete.md (Turkish)

* New translations delete.md (Turkish)

* New translations context.md (Portuguese, Brazilian)

* New translations associations.md (Chinese Simplified)

* New translations associations.md (Chinese Simplified)

* New translations create.md (Chinese Simplified)

* New translations dbresolver.md (French)

* New translations dbresolver.md (Spanish)

* New translations dbresolver.md (Arabic)

* New translations dbresolver.md (German)

* New translations dbresolver.md (Italian)

* New translations dbresolver.md (Japanese)

* New translations dbresolver.md (Korean)

* New translations dbresolver.md (Polish)

* New translations dbresolver.md (Russian)

* New translations dbresolver.md (Turkish)

* New translations dbresolver.md (Chinese Simplified)

* New translations dbresolver.md (Portuguese, Brazilian)

* New translations dbresolver.md (Indonesian)

* New translations dbresolver.md (Persian)

* New translations dbresolver.md (Azerbaijani)

* New translations dbresolver.md (Hindi)

* Update source file dbresolver.md

* New translations create.md (Chinese Simplified)

* New translations associations.md (Portuguese, Brazilian)

* New translations associations.md (Portuguese, Brazilian)

* New translations query.md (French)

* New translations query.md (Spanish)

* New translations query.md (Arabic)

* New translations query.md (German)

* New translations query.md (Italian)

* New translations query.md (Japanese)

* New translations query.md (Korean)

* New translations query.md (Polish)

* New translations query.md (Russian)

* New translations query.md (Turkish)

* New translations query.md (Chinese Simplified)

* New translations query.md (Portuguese, Brazilian)

* New translations query.md (Indonesian)

* New translations query.md (Persian)

* New translations query.md (Azerbaijani)

* New translations query.md (Hindi)

* Update source file query.md

* New translations associations.md (Japanese)

* New translations query.md (Chinese Simplified)

* New translations query.md (Korean)

* New translations query.md (Korean)

* New translations models.md (Korean)

* New translations models.md (Korean)

* New translations conventions.md (Chinese Simplified)

* New translations error_handling.md (Chinese Simplified)
  • Loading branch information
jinzhu authored Oct 8, 2023
1 parent 5524afe commit dbeb048
Show file tree
Hide file tree
Showing 165 changed files with 2,014 additions and 402 deletions.
1 change: 1 addition & 0 deletions pages/ar_SA/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ layout: page
* [gorm-cache - GORM query cache plugin](https://github.com/liyuan1125/gorm-cache)
* [deepgorm - Nested map filtering](https://github.com/survivorbat/gorm-deep-filtering)
* [oracle - GORM Oracle driver](https://github.com/CengSin/oracle)
* [Go ORM Helper - GORM Code Completion Goland Plugin](https://github.com/maiqingqiang/go-orm-helper)

## <span id="contribute">Contribute to this page</span>

Expand Down
4 changes: 4 additions & 0 deletions pages/ar_SA/docs/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ result.Error // returns error
result.RowsAffected // returns inserted records count
```

{% note warn %}
**NOTE** You cannot pass a struct to 'create', so you should pass a pointer to the data.
{% endnote %}

## Create Record With Selected Fields

Create a record and assign a value to the fields specified.
Expand Down
2 changes: 1 addition & 1 deletion pages/ar_SA/docs/dbresolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ db.Use(dbresolver.Register(dbresolver.Config{
// sources/replicas load balancing policy
Policy: dbresolver.RandomPolicy{},
// print sources/replicas mode in logger
ResolverModeReplica: true,
TraceResolverMode: true,
}).Register(dbresolver.Config{
// use `db1` as sources (DB's default connection), `db5` as replicas for `User`, `Address`
Replicas: []gorm.Dialector{mysql.Open("db5_dsn")},
Expand Down
19 changes: 18 additions & 1 deletion pages/ar_SA/docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,26 @@ db.Migrator().RenameIndex(&User{}, "idx_name", "idx_name_2")

GORM creates constraints when auto migrating or creating table, see [Constraints](constraints.html) or [Database Indexes](indexes.html) for details

## Atlas Integration

[Atlas](https://atlasgo.io) is an open-source database migration tool that has an official integration with GORM.

While GORM's `AutoMigrate` feature works in most cases, at some point you many need to switch to a [versioned migrations](https://atlasgo.io/concepts/declarative-vs-versioned#versioned-migrations) strategy.

Once this happens, the responsibility for planning migration scripts and making sure they are in line with what GORM expects at runtime is moved to developers.

Atlas can automatically plan database schema migrations for developers using the official [GORM Provider](https://github.com/ariga/atlas-provider-gorm). After configuring the provider you can automatically plan migrations by running:
```bash
atlas migrate diff --env gorm
```

To learn how to use Atlas with GORM, check out the [official documentation](https://atlasgo.io/guides/orms/gorm).



## Other Migration Tools

GORM's AutoMigrate works well for most cases, but if you are looking for more serious migration tools, GORM provides a generic DB interface that might be helpful for you.
To use GORM with other Go-based migration tools, GORM provides a generic DB interface that might be helpful for you.

```go
// returns `*sql.DB`
Expand Down
46 changes: 46 additions & 0 deletions pages/ar_SA/gen/database_to_structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,49 @@ Specify datatype mapping between field type and db column type.

g.WithDataTypeMap(dataMap)
```
## Generate From Sql

Gen supports generate structs from sql following GORM conventions, it can be used like:

```go
package main

import (
"gorm.io/gorm"
"gorm.io/rawsql"
)

func main() {
g := gen.NewGenerator(gen.Config{
OutPath: "../query",
Mode: gen.WithoutContext|gen.WithDefaultQuery|gen.WithQueryInterface, // generate mode
})
// https://github.com/go-gorm/rawsql/blob/master/tests/gen_test.go
gormdb, _ := gorm.Open(rawsql.New(rawsql.Config{
//SQL: rawsql, //create table sql
FilePath: []string{
//"./sql/user.sql", // create table sql file
"./test_sql", // create table sql file directory
},
}))
g.UseDB(gormdb) // reuse your gorm db

// Generate basic type-safe DAO API for struct `model.User` following conventions

g.ApplyBasic(
// Generate struct `User` based on table `users`
g.GenerateModel("users"),

// Generate struct `Employee` based on table `users`
g.GenerateModelAs("users", "Employee"),

)
g.ApplyBasic(
// Generate structs from all tables of current database
g.GenerateAllTable()...,
)
// Generate the code
g.Execute()
}

```
4 changes: 3 additions & 1 deletion pages/ar_SA/gen/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ u.WithContext(ctx).Assign(field.Attrs(map[string]interface{}{"age": 20})).Where(

// Found user with `name` = `gen`, update it with Assign attributes
u.WithContext(ctx).Assign(field.Attrs(&model.User{Name: "gen_assign"}).Select(dal.User.ALL)).Where(u.Name.Eq("gen")).FirstOrInit()

// SELECT * FROM USERS WHERE name = gen' ORDER BY id LIMIT 1;
// user -> User{ID: 111, Name: "gen", Age: 20}
```
Expand All @@ -516,7 +517,7 @@ Get first matched record or create a new one with given conditions (only works w
```go

// Found user with `name` = `gen`
result := u.WithContext(ctx).Where(u.Name.Eq(jinzhu)).FirstOrCreate(&user)
result := u.WithContext(ctx).Where(u.Name.Eq(jinzhu)).FirstOrCreate()
// user -> User{ID: 111, Name: "gen", "Age": 18}
// result.RowsAffected // => 0
```
Expand Down Expand Up @@ -558,6 +559,7 @@ u.WithContext(ctx).Assign(u.Age.Value(20)).Where(u.Name.Eq("gen")).FirstOrCreate
// user -> User{ID: 111, Name: "gen", Age: 20}
```


### Struct & Map Conditions

```go
Expand Down
5 changes: 2 additions & 3 deletions pages/ar_SA/gen/rawsql_driver.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="go-import" content="gorm.io/gen/rawsql_driver git https://github.com/go-gorm/gen/tree/master/rawsql_driver">
<meta name="go-source" content="gorm.io/gen/rawsql_driver https://github.com/go-gorm/gen/rawsql_driver https://github.com/go-gorm/gen/tree/master/rawsql_driver{/dir} https://github.com/go-gorm/gen/blob/master/rawsql_driver{/dir}/{file}#L{line}">
<meta name="go-import" content="gorm.io/rawsql_driver git https://github.com/go-gorm/rawsql_driver">
<meta name="go-source" content="gorm.io/rawsql_driver https://github.com/go-gorm/rawsql_driver https://github.com/go-gorm/rawsql_driver/tree/master{/dir} https://github.com/go-gorm/rawsql_driver/blob/master{/dir}/{file}#L{line}">
<title>Gorm</title>
</head>

Expand All @@ -13,4 +13,3 @@
<a href="https://github.com/go-gorm/gen" target="_blank">https://github.com/go-gorm/gen</a>
</body>
</html>

15 changes: 15 additions & 0 deletions pages/ar_SA/rawsql.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="go-import" content="gorm.io/rawsql git https://github.com/go-gorm/rawsql">
<meta name="go-source" content="gorm.io/rawsql https://github.com/go-gorm/rawsql https://github.com/go-gorm/rawsql/tree/master{/dir} https://github.com/go-gorm/rawsql/blob/master{/dir}/{file}#L{line}">
<title>Gorm</title>
</head>

<body>
<a href="https://gorm.io/gen/index.html">https://gorm.io</a><br>
<a href="https://github.com/go-gorm/rawsql" target="_blank">https://github.com/go-gorm/rawsql</a>
</body>
</html>
15 changes: 15 additions & 0 deletions pages/ar_SA/rawsql_driver.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="go-import" content="gorm.io/rawsql_driver git https://github.com/go-gorm/rawsql_driver">
<meta name="go-source" content="gorm.io/rawsql_driver https://github.com/go-gorm/rawsql_driver https://github.com/go-gorm/rawsql_driver/tree/master{/dir} https://github.com/go-gorm/rawsql_driver/blob/master{/dir}/{file}#L{line}">
<title>Gorm</title>
</head>

<body>
<a href="https://gorm.io/gen/index.html">https://gorm.io</a><br>
<a href="https://github.com/go-gorm/rawsql_driver" target="_blank">https://github.com/go-gorm/rawsql_driver</a>
</body>
</html>
1 change: 1 addition & 0 deletions pages/az_AZ/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ layout: page
* [gorm-cache - GORM query cache plugin](https://github.com/liyuan1125/gorm-cache)
* [deepgorm - Nested map filtering](https://github.com/survivorbat/gorm-deep-filtering)
* [oracle - GORM Oracle driver](https://github.com/CengSin/oracle)
* [Go ORM Helper - GORM Code Completion Goland Plugin](https://github.com/maiqingqiang/go-orm-helper)

## <span id="contribute">Contribute to this page</span>

Expand Down
4 changes: 4 additions & 0 deletions pages/az_AZ/docs/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ result.Error // returns error
result.RowsAffected // returns inserted records count
```

{% note warn %}
**NOTE** You cannot pass a struct to 'create', so you should pass a pointer to the data.
{% endnote %}

## Create Record With Selected Fields

Create a record and assign a value to the fields specified.
Expand Down
2 changes: 1 addition & 1 deletion pages/az_AZ/docs/dbresolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ db.Use(dbresolver.Register(dbresolver.Config{
// sources/replicas load balancing policy
Policy: dbresolver.RandomPolicy{},
// print sources/replicas mode in logger
ResolverModeReplica: true,
TraceResolverMode: true,
}).Register(dbresolver.Config{
// use `db1` as sources (DB's default connection), `db5` as replicas for `User`, `Address`
Replicas: []gorm.Dialector{mysql.Open("db5_dsn")},
Expand Down
19 changes: 18 additions & 1 deletion pages/az_AZ/docs/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,26 @@ db.Migrator().RenameIndex(&User{}, "idx_name", "idx_name_2")

GORM creates constraints when auto migrating or creating table, see [Constraints](constraints.html) or [Database Indexes](indexes.html) for details

## Atlas Integration

[Atlas](https://atlasgo.io) is an open-source database migration tool that has an official integration with GORM.

While GORM's `AutoMigrate` feature works in most cases, at some point you many need to switch to a [versioned migrations](https://atlasgo.io/concepts/declarative-vs-versioned#versioned-migrations) strategy.

Once this happens, the responsibility for planning migration scripts and making sure they are in line with what GORM expects at runtime is moved to developers.

Atlas can automatically plan database schema migrations for developers using the official [GORM Provider](https://github.com/ariga/atlas-provider-gorm). After configuring the provider you can automatically plan migrations by running:
```bash
atlas migrate diff --env gorm
```

To learn how to use Atlas with GORM, check out the [official documentation](https://atlasgo.io/guides/orms/gorm).



## Other Migration Tools

GORM's AutoMigrate works well for most cases, but if you are looking for more serious migration tools, GORM provides a generic DB interface that might be helpful for you.
To use GORM with other Go-based migration tools, GORM provides a generic DB interface that might be helpful for you.

```go
// returns `*sql.DB`
Expand Down
46 changes: 46 additions & 0 deletions pages/az_AZ/gen/database_to_structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,49 @@ Specify datatype mapping between field type and db column type.

g.WithDataTypeMap(dataMap)
```
## Generate From Sql

Gen supports generate structs from sql following GORM conventions, it can be used like:

```go
package main

import (
"gorm.io/gorm"
"gorm.io/rawsql"
)

func main() {
g := gen.NewGenerator(gen.Config{
OutPath: "../query",
Mode: gen.WithoutContext|gen.WithDefaultQuery|gen.WithQueryInterface, // generate mode
})
// https://github.com/go-gorm/rawsql/blob/master/tests/gen_test.go
gormdb, _ := gorm.Open(rawsql.New(rawsql.Config{
//SQL: rawsql, //create table sql
FilePath: []string{
//"./sql/user.sql", // create table sql file
"./test_sql", // create table sql file directory
},
}))
g.UseDB(gormdb) // reuse your gorm db

// Generate basic type-safe DAO API for struct `model.User` following conventions

g.ApplyBasic(
// Generate struct `User` based on table `users`
g.GenerateModel("users"),

// Generate struct `Employee` based on table `users`
g.GenerateModelAs("users", "Employee"),

)
g.ApplyBasic(
// Generate structs from all tables of current database
g.GenerateAllTable()...,
)
// Generate the code
g.Execute()
}

```
4 changes: 3 additions & 1 deletion pages/az_AZ/gen/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ u.WithContext(ctx).Assign(field.Attrs(map[string]interface{}{"age": 20})).Where(

// Found user with `name` = `gen`, update it with Assign attributes
u.WithContext(ctx).Assign(field.Attrs(&model.User{Name: "gen_assign"}).Select(dal.User.ALL)).Where(u.Name.Eq("gen")).FirstOrInit()

// SELECT * FROM USERS WHERE name = gen' ORDER BY id LIMIT 1;
// user -> User{ID: 111, Name: "gen", Age: 20}
```
Expand All @@ -516,7 +517,7 @@ Get first matched record or create a new one with given conditions (only works w
```go

// Found user with `name` = `gen`
result := u.WithContext(ctx).Where(u.Name.Eq(jinzhu)).FirstOrCreate(&user)
result := u.WithContext(ctx).Where(u.Name.Eq(jinzhu)).FirstOrCreate()
// user -> User{ID: 111, Name: "gen", "Age": 18}
// result.RowsAffected // => 0
```
Expand Down Expand Up @@ -558,6 +559,7 @@ u.WithContext(ctx).Assign(u.Age.Value(20)).Where(u.Name.Eq("gen")).FirstOrCreate
// user -> User{ID: 111, Name: "gen", Age: 20}
```


### Struct & Map Conditions

```go
Expand Down
5 changes: 2 additions & 3 deletions pages/az_AZ/gen/rawsql_driver.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="go-import" content="gorm.io/gen/rawsql_driver git https://github.com/go-gorm/gen/tree/master/rawsql_driver">
<meta name="go-source" content="gorm.io/gen/rawsql_driver https://github.com/go-gorm/gen/rawsql_driver https://github.com/go-gorm/gen/tree/master/rawsql_driver{/dir} https://github.com/go-gorm/gen/blob/master/rawsql_driver{/dir}/{file}#L{line}">
<meta name="go-import" content="gorm.io/rawsql_driver git https://github.com/go-gorm/rawsql_driver">
<meta name="go-source" content="gorm.io/rawsql_driver https://github.com/go-gorm/rawsql_driver https://github.com/go-gorm/rawsql_driver/tree/master{/dir} https://github.com/go-gorm/rawsql_driver/blob/master{/dir}/{file}#L{line}">
<title>Gorm</title>
</head>

Expand All @@ -13,4 +13,3 @@
<a href="https://github.com/go-gorm/gen" target="_blank">https://github.com/go-gorm/gen</a>
</body>
</html>

15 changes: 15 additions & 0 deletions pages/az_AZ/rawsql.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="go-import" content="gorm.io/rawsql git https://github.com/go-gorm/rawsql">
<meta name="go-source" content="gorm.io/rawsql https://github.com/go-gorm/rawsql https://github.com/go-gorm/rawsql/tree/master{/dir} https://github.com/go-gorm/rawsql/blob/master{/dir}/{file}#L{line}">
<title>Gorm</title>
</head>

<body>
<a href="https://gorm.io/gen/index.html">https://gorm.io</a><br>
<a href="https://github.com/go-gorm/rawsql" target="_blank">https://github.com/go-gorm/rawsql</a>
</body>
</html>
15 changes: 15 additions & 0 deletions pages/az_AZ/rawsql_driver.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="go-import" content="gorm.io/rawsql_driver git https://github.com/go-gorm/rawsql_driver">
<meta name="go-source" content="gorm.io/rawsql_driver https://github.com/go-gorm/rawsql_driver https://github.com/go-gorm/rawsql_driver/tree/master{/dir} https://github.com/go-gorm/rawsql_driver/blob/master{/dir}/{file}#L{line}">
<title>Gorm</title>
</head>

<body>
<a href="https://gorm.io/gen/index.html">https://gorm.io</a><br>
<a href="https://github.com/go-gorm/rawsql_driver" target="_blank">https://github.com/go-gorm/rawsql_driver</a>
</body>
</html>
1 change: 1 addition & 0 deletions pages/de_DE/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ layout: page
* [gorm-cache - GORM query cache plugin](https://github.com/liyuan1125/gorm-cache)
* [deepgorm - Nested map filtering](https://github.com/survivorbat/gorm-deep-filtering)
* [oracle - GORM Oracle driver](https://github.com/CengSin/oracle)
* [Go ORM Helper - GORM Code Completion Goland Plugin](https://github.com/maiqingqiang/go-orm-helper)

## <span id="contribute">Trage zu dieser Seite bei</span>

Expand Down
4 changes: 4 additions & 0 deletions pages/de_DE/docs/create.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ result.Error // returns error
result.RowsAffected // returns inserted records count
```

{% note warn %}
**NOTE** You cannot pass a struct to 'create', so you should pass a pointer to the data.
{% endnote %}

## Create Record With Selected Fields

Create a record and assign a value to the fields specified.
Expand Down
2 changes: 1 addition & 1 deletion pages/de_DE/docs/dbresolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ db.Use(dbresolver.Register(dbresolver.Config{
// sources/replicas load balancing policy
Policy: dbresolver.RandomPolicy{},
// print sources/replicas mode in logger
ResolverModeReplica: true,
TraceResolverMode: true,
}).Register(dbresolver.Config{
// use `db1` as sources (DB's default connection), `db5` as replicas for `User`, `Address`
Replicas: []gorm.Dialector{mysql.Open("db5_dsn")},
Expand Down
Loading

0 comments on commit dbeb048

Please sign in to comment.