🌐 Add Korean translation for docs/ko/docs/tutorial/sql-databases.md#13093
Conversation
|
📝 Docs preview for commit 88c31a1 at: https://54b37bae.fastapitiangolo.pages.dev Modified Pages |
docs/ko/docs/tutorial/sql-databases.md
hard-coders
left a comment
There was a problem hiding this comment.
Great job! I've reviewed it, so please check it out 😄
| * Oracle | ||
| * Microsoft SQL Server 등. | ||
|
|
||
| 이 예제에서는 SQLite를 사용합니다. **SQLite**는 단일 파일을 사용하고 Python에서 기본적으로 지원하기 때문입니다. 따라서 이 예제를 그대로 복사하여 실행할 수 있습니다. |
There was a problem hiding this comment.
| 이 예제에서는 SQLite를 사용합니다. **SQLite**는 단일 파일을 사용하고 Python에서 기본적으로 지원하기 때문입니다. 따라서 이 예제를 그대로 복사하여 실행할 수 있습니다. | |
| 이 예제에서는 **SQLite**를 사용합니다. SQLite는 단일 파일을 사용하고 파이썬에서 기본적으로 지원하기 때문입니다. 따라서 이 예제를 그대로 복사하여 실행할 수 있습니다. |
|
|
||
| 나중에 실제 프로덕션 애플리케이션에서는 **PostgreSQL**과 같은 데이터베이스 서버를 사용하는 것이 좋습니다. | ||
|
|
||
| /// 팁 |
There was a problem hiding this comment.
| /// 팁 | |
| /// tip | 팁 |
|
|
||
| {* ../../docs_src/sql_databases/tutorial001_an_py310.py ln[1:11] hl[7:11] *} | ||
|
|
||
| `Hero` 클래스는 Pydantic 모델과 매우 유사합니다 (실제로 내부적으로 *Pydantic model이기도 합니다*). |
There was a problem hiding this comment.
| `Hero` 클래스는 Pydantic 모델과 매우 유사합니다 (실제로 내부적으로 *Pydantic model이기도 합니다*). | |
| `Hero` 클래스는 Pydantic 모델과 매우 유사합니다 (실제로 내부적으로 *Pydantic 모델이기도 합니다*). |
missed.
|
|
||
| * `Field(primary_key=True)`는 SQLModel에 `id`가 SQL 데이터베이스의 **기본 키**임을 알려줍니다 (SQL 기본 키에 대한 자세한 내용은 SQLModel 문서를 참고하세요). | ||
|
|
||
| `int | None` 유형으로 설정하면, SQLModel은 해당 열이 SQL 데이터베이스에서 `INTEGER` 유형이며 `NULL` 값을 허용해야 한다는 것을 알 수 있습니다. |
There was a problem hiding this comment.
| `int | None` 유형으로 설정하면, SQLModel은 해당 열이 SQL 데이터베이스에서 `INTEGER` 유형이며 `NULL` 값을 허용해야 한다는 것을 알 수 있습니다. | |
| `int | None` 유형으로 설정하면, SQLModel은 해당 열이 SQL 데이터베이스에서 `INTEGER` 유형이며 `NULLABLE` 값이어야 한다는 것을 알 수 있습니다. |
It's natural, but you should follow the guidelines I mentioned above.
In the guidelines:
Do not change anything enclosed in "``" (inline code).
|
|
||
| `int | None` 유형으로 설정하면, SQLModel은 해당 열이 SQL 데이터베이스에서 `INTEGER` 유형이며 `NULL` 값을 허용해야 한다는 것을 알 수 있습니다. | ||
|
|
||
| * `Field(index=True)`는 SQLModel에 해당 컬럼에 대해 **SQL 인덱스**를 생성하도록 지시합니다. 이를 통해 데이터베이스에서 이 컬럼으로 필터링된 데이터를 읽을 때 더 빠르게 조회할 수 있습니다. |
There was a problem hiding this comment.
Translating "column" to "열" is okay; it's not good for readers to use the same term with multiple terms.
In this case, "열" and "컬럼". Please translate it into one of the two.
| * `id` | ||
| * `secret_name` | ||
|
|
||
| it **also** has the **fields** declared iso all the fare: |
|
|
||
| 또한 `id: int`를 다시 선언합니다. 이를 통해, API 클라이언트와 **계약**을 맺어 `id`가 항상 존재하며 항상 `int` 타입이라는 것을 보장합니다(`None`이 될 수 없습니다). | ||
|
|
||
| /// 팁 |
There was a problem hiding this comment.
| /// 팁 | |
| /// tip | 팁 |
|
|
||
| 클라이언트가 **새 hero을 생성**할 때 `secret_name`을 보내고, 이는 데이터베이스에 저장되지만, 해당 비밀 이름은 API를 통해 클라이언트에게 반환되지 않습니다. | ||
|
|
||
| /// 팁 |
There was a problem hiding this comment.
| /// 팁 | |
| /// tip | 팁 |
|
|
||
| 엄밀히 말하면 `HeroBase`를 상속할 필요는 없습니다. 모든 필드를 다시 선언하기 때문입니다. 일관성을 위해 상속을 유지하긴 했지만, 필수는 아닙니다. 이는 개인적인 취향의 문제입니다. 🤷 | ||
|
|
||
| `HeroUpdate의 필드는 다음과 같습니다: |
There was a problem hiding this comment.
| `HeroUpdate의 필드는 다음과 같습니다: | |
| `HeroUpdate`의 필드는 다음과 같습니다: |
Missed backtick
|
|
||
| {* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[56:62] hl[56:58] *} | ||
|
|
||
| /// 팁 |
There was a problem hiding this comment.
| /// 팁 | |
| /// 팁 | tip |
|
📝 Docs preview for commit fb88ec7 at: https://f6c349ae.fastapitiangolo.pages.dev Modified Pages |
|
@hard-coders Thanks so much for your review! It was incredibly helpful 😀 Since this was my first time translating, I made some mistakes 😢, but I've made the corrections based on your feedback now. |
|
📝 Docs preview for commit f648d49 at: https://963acfcc.fastapitiangolo.pages.dev Modified Pages |
|
LGTM 👍 |
hard-coders
left a comment
There was a problem hiding this comment.
LGTM 🚀
It's unimportant, but it's better for other reviewers if you "resolve" reviewed comments.
|
Thanks for your help! @GeumBinLee 🚀 |
This PR translates docs/ko/docs/tutorial/sql-databases.md in Korean.
related: #3167