DbdbTapDbdbTap logo

템플릿설명서 Reference Referencia

마지막 수정일: 2024년 11월 19일 Last edited: November 18, 2024 Última edición: 18 de noviembre de 2024

템플릿과 템플릿 태그 Templates and Tags Plantillas y Etiquetas

이 문서는 템플릿과 템플릿 태그에 대해서 설명합니다.

아직 완전하지 않은 문서이며 계속해서 업데이트 중입니다.

This document describes templates and template tags.

This document is not yet complete and is being updated continuously.

Este documento describe plantillas y etiquetas de plantilla.

Este documento aún no está completo y se está actualizando continuamente.

실용성을 목표로 합니다. Aiming for practicality. Apuntando a la practicidad.

이 문서를 보면서, 혹은 이 서비스를 이용하시면서 한가지 기억하셔야 할 점이 있습니다.
이 서비스는 소스코드 생성에 있어서 반복 작업을 줄여 시간을 절약하는 것을 목적으로 하는 것이지 완벽한 소스코드를 생성하는 것을 목표로 하는 것이 아닙니다.
또한, 다양한 LLM들이 생성하는 것처럼 소스코드를 '알아서' 생성하는 것이 아니며, 모든 것을 사용자가 직접 제어한다는 점을 주지하셔야 합니다.

While reading this document or using this service, there is one thing you should remember.
This service aims to reduce repetitive work and save time in generating source code, not to generate perfect source code.
Also, it does not generate source code 'automatically' like various LLMs do, and you should be aware that the user controls everything directly.

Al leer este documento o usar este servicio, hay una cosa que debes recordar.
Este servicio tiene como objetivo reducir el trabajo repetitivo y ahorrar tiempo en la generación de código fuente, no generar código fuente perfecto.
Además, no genera código fuente 'automáticamente' como lo hacen varios LLMs, y debes tener en cuenta que el usuario controla todo directamente.

개요 Synopsis Sinopsis

각 주제는 다음과 같은 내용들을 포함하고 있습니다:

  • 템플릿이 무엇이고 어떻게 생겼는가.
  • 템플릿 태그의 문법구조 (거창하지 않음 주의)
  • 모든 템플릿 태그들 한눈에 볼 수 있는 목록
  • 일반 태그, 테이블 태그, 칼럼 태그 상세 내용

Each topic includes the following:

  • What is a template and what does it look like.
  • The syntax structure of the template tags (NOT that big a deal)
  • A list of all template tags at a glance
  • Details of general tags, table tags, and column tags

Cada tema incluye lo siguiente:

  • Qué es una plantilla y cómo se ve.
  • La estructura de sintaxis de las etiquetas de plantilla (no grandiosa)
  • Una lista de todas las etiquetas de plantilla de un vistazo
  • Detalles de etiquetas generales, etiquetas de tabla y etiquetas de columna

템플릿이란? What is a template? ¿Qué es una plantilla?

템플릿은 템플릿 태그를 사용해서 데이터베이스 스키마를 소스코드로 변환할 수 있는 텍스트입니다. 대개는 특정한 데이터베이스 테이블에 적용합니다.

템플릿은 대부분 데이터베이스 테이블을 하나 지정해서 적용합니다. 간단한 예로 Java Value Object(VO)를 만들어봅시다.

A template is text that can convert a database schema into source code using template tags. It is usually applied to a specific database table.

Most templates apply to a single database table. For a simple example, let's create a Java Value Object (VO).

Una plantilla es un texto que puede convertir un esquema de base de datos en código fuente utilizando etiquetas de plantilla. Normalmente se aplica a una tabla de base de datos específica.

La mayoría de las plantillas se aplican a una sola tabla de base de datos. Por ejemplo, creemos un Java Value Object (VO).

만일 여러분이 다음과 같은 USER_INFO 테이블을 가지고 있다면, Lombok @Data 어노테이션을 사용해서 오른편 클래스와 같은 VO를 만들 수 있겠죠.

If you have a USER_INFO table like this, you can create a VO like the one on the right using Lombok @Data annotation.

Si tienes una tabla USER_INFO como esta, puedes crear un VO como el de la derecha usando la anotación Lombok @Data.

USER_INFO Table
CREATE TABLE USER_INFO ( user_id varchar(30) not null, password varchar(64) not null, first_name varchar(50) not null, last_name varchar(50) not null, birth_year int null, primary key (user_id) );
UserInfoVo Class
@Data public class UserInfoVo { protected String userId; protected String password; protected String firstName; protected String lastName; protected int birthYear; }

당연히 두 정보의 형식에는 상당한 연관성이 보입니다. 위와 같은 변환을 하기 위해서 상당한 작업을 한동안 해야하는데, 생각할 필요도 없는 따분한 단순노동입니다. 게다가, (아마도) 앞으로 87개 테이블에 대한 작업을 더 해야하고, 컨트롤러, 서비스, 서비스구현, JPA, 심지어는 front 작업, 프로시져 작업 등 단순노동은 끝도 없습니다.

Of course, there is a significant correlation between the two pieces of information. To make the transformation above, you have to do a lot of work for a while, which is boring and simple labor that you don't need to even think about. Moreover, (probably) you have to work on 87 more tables in the future, controllers, services, service implementations, JPA, even frontend work, stored procedure work, etc. There is no end to simple labor.

Por supuesto, hay una correlación significativa entre las dos piezas de información. Para hacer la transformación anterior, tienes que hacer mucho trabajo por un tiempo, que es un trabajo aburrido y simple que ni siquiera necesitas pensar. Además, (probablemente) tendrás que trabajar en 87 tablas más en el futuro, controladores, servicios, implementaciones de servicios, JPA, incluso trabajo frontend, trabajo de stored procedure, etc. No hay fin al trabajo simple.

DbdbTap을 이용하여 다음과 같은 템플릿을 만들면 위와 같은 VO 클래스를 쉽게 만들 수 있습니다. 물론 이것은 단순한 예시일 뿐이며, 실제로는 더욱 복잡한 작업을 할 수 있습니다.

By creating a template like the following using DbdbTap, you can easily create the VO class above. Of course, this is just a simple example, and you can do more complex work in reality.

Creando una plantilla como la siguiente usando DbdbTap, puedes crear fácilmente la clase VO anterior. Por supuesto, esto es solo un ejemplo simple, y puedes hacer trabajos más complejos en la realidad.

@Data public class <#TableName#>Vo { <#for-columns=protected $java-type $columnName; #> }

<#TableName#>, <#for-columns=blah blah>, $java-type, $columnName 이러한 것들이 템플릿 태그입니다. 굳이 설명하지 않아도 짐작하실 수 있으리라 생각합니다.

그 중에서 가장 어려울 것 같은 (움~홧!홧!홧!) 태그라면 <#for-columns=blah blah>일 것입니다.
이 태그는 테이블의 모든 칼럼에 대해서 반복적으로 작업을 하기 위한 태그입니다. 모든 칼럼에 대해 iteration을 하면서 각 칼럼에 대해 내부 템플릿protected $java-type $columnName;을 적용하게 됩니다.

These <#TableName#>, <#for-columns=blah blah>, $java-type, $columnName are template tags. I think you can guess what they do without explanation.

Among them, the most difficult (ha! ha! ha!) tag seems to be <#for-columns=blah blah>.
This tag is for iterating over all columns in the table. Iterating over all columns, it applies the inner template protected $java-type $columnName; for each column.

Estos <#TableName#>, <#for-columns=blah blah>, $java-type, $columnName son etiquetas de plantilla. Creo que puedes adivinar lo que hacen sin explicación.

Entre ellos, la etiqueta más difícil (¡ja! ¡ja! ¡ja!) parece ser <#for-columns=blah blah>.
Esta etiqueta es para iterar sobre todas las columnas de la tabla. Iterando sobre todas las columnas, aplica la plantilla interna protected $java-type $columnName; para cada columna.

템플릿 태그 문법 Template Tag Grammar Sintaxis de Etiqueta de Plantilla

태그의 위치에 따라 두가지로 태그를 구분할 수 있습니다.

  • 템플릿에 포함되는 태그는 외부태그(혹은 그냥 '태그')라고 합니다. <##>로 둘러싸인 태그입니다.
  • 외부태그 안에 들어가는 태그는 내부태그입니다. <::>로 표시합니다.
    만일 내부태그가 단어 하나 또는 하이픈으로 연결될 단어들로만 표시된다면, $tableName 또는 ${tableName}과 같이 표시할 수 있습니다.

일부 태그는 외부태그로도, 내부태그로도 사용됩니다. 예를 들어 테이블 이름을 표시하는 태그는 <#TableName#> 또는 <:TableName:>으로 사용할 수 있습니다.
모든 템플릿 태그 목록을 보시면 어떤 태그를 외부태그로, 어떤 태그는 내부태그로, 혹은 양쪽 모두로 사용할 수 있는지 알 수 있습니다.

Tags can be divided into two types depending on their position.

  • Tags included in the template are called external tags (or just 'tags'). These are tags surrounded by <# and #>.
  • Tags that go inside external tags are called internal tags. These are indicated by <: and :>.
    If the internal tag is represented by a single word (or words connected by hyphens), it can be written as $tableName or ${tableName}.

Some tags are used as external tags, internal tags, or both. For example, the tag that displays the table name can be used as <#TableName#> or <:TableName:>.
By looking at the list of all template tags, you can see which tags are external tags, which tags are internal tags, or which tags can be used on both sides.

Las etiquetas se pueden dividir en dos tipos dependiendo de su posición.

  • Las etiquetas incluidas en la plantilla se llaman etiquetas externas (o simplemente 'etiquetas'). Estas son etiquetas rodeadas por <# y #>.
  • Las etiquetas que van dentro de las etiquetas externas se llaman etiquetas internas. Estas se indican por <: y :>.
    Si la etiqueta interna se representa por una sola palabra (o palabras conectadas por guiones), se puede escribir como $tableName o ${tableName}.

Algunas etiquetas se utilizan como etiquetas externas, etiquetas internas o ambas. Por ejemplo, la etiqueta que muestra el nombre de la tabla se puede usar como <#TableName#> o <:TableName:>.
Al mirar la lista de todas las etiquetas de plantilla, puedes ver qué etiquetas son etiquetas externas, qué etiquetas son etiquetas internas, o qué etiquetas se pueden usar en ambos lados.

외부태그 External Tags Etiquetas Externas

외부태그는 템플릿에 직접 포함하는 태그입니다.
외부태그는 <#과 특정 키워드, 그리고 #>로 구성됩니다. 그 중 하나를 보시면 다음과 같습니다.

<#table_name#>

이 태그를 템플릿에 포함하면 지정한 테이블의 이름을 소문자로 표시합니다. 위의 예에서 사용한 테이블 USER_INFO의 경우, user_info로 표시됩니다.

External tags are tags that are directly included in the template.
External tags consist of <#, a specific keyword, and #>. One of them looks like this.

<#table_name#>

Including this tag in the template displays the name of the specified table in lowercase. For the table USER_INFO used in the example above, it will be displayed as user_info.

Las etiquetas externas son etiquetas que se incluyen directamente en la plantilla.
Las etiquetas externas consisten en <#, una palabra clave específica, y #>. Una de ellas se ve así.

<#table_name#>

Incluir esta etiqueta en la plantilla muestra el nombre de la tabla especificada en minúsculas. Para la tabla USER_INFO utilizada en el ejemplo anterior, se mostrará como user_info.

외부태그 안에 사용하는 내부 템플릿 Inner Template written in External Tags Plantilla interna escrita en etiquetas externas

일부 태그는 자체적인 내부템플릿을 필요로 합니다.
태그 이름 바로 뒤에 따라오는 등호(=)와 #> 사이에 내부템플릿을 작성합니다.

사실, 모든 <#for-*> 태그는 내부템플릿을 필요로 합니다.
이러한 형태의 태그는 특정한 작업을 반복적으로 수행하기 위한 태그이며, 그 작업을 수행하기 위해 내부템플릿을 각각의 반복되는 작업에 적용합니다.

예를 들어, 데이터베이스에 3개의 테이블 foo_info, bar_info, baz_info가 있고, 다음과 같은 템플릿을 작성했다고 가정해봅시다.

Some tags require their own inner template.
Write the inner template between the equal sign(=) following the tag name and #>.

In fact, all <#for-*> tags require an inner template.
Tags of this form are for repeating a specific task, and apply the inner template to each repeated task to perform the task.

For example, suppose you have three tables foo_info, bar_info, baz_info in the database, and you have written the following template.

Algunas etiquetas requieren su propia plantilla interna.
Escribe la plantilla interna entre el signo igual(=) que sigue al nombre de la etiqueta y #>.

De hecho, todas las etiquetas <#for-*> requieren una plantilla interna.
Las etiquetas de esta forma son para repetir una tarea específica, y aplican la plantilla interna a cada tarea repetida para realizar la tarea.

Por ejemplo, supongamos que tienes tres tablas foo_info, bar_info, baz_info en la base de datos, y has escrito la siguiente plantilla.

<#for-tables=DROP TABLE $table_name; #>

이 템플릿의 <#for-tables#> 태그는 각 테이블에 대해 내부템플릿인 DROP TABLE $table_name;을 적용합니다.

그 결과는 다음과 같습니다.

The <#for-tables#> tag of this template applies the inner template DROP TABLE $table_name; for each table.

The result is as follows.

La etiqueta <#for-tables#> de esta plantilla aplica la plantilla interna DROP TABLE $table_name; para cada tabla.

El resultado es el siguiente.

DROP TABLE foo_info; DROP TABLE bar_info; DROP TABLE baz_info;

위 템플릿의 태그는 종료 표시인 #>가 다음 줄에 표시되어 있습니다. 만일 종료 표시가 같은 줄에 있다면 그 결과는 위와 같이 'DROP TABLE ~;'이 각각의 줄에 표시되지 않고 한 줄에 표시될 것입니다.

The tag of the template above has the closing sign #> on the next line. If the closing sign is on the same line, the result will be displayed on one line instead of each line as 'DROP TABLE ~;'.

La etiqueta de la plantilla anterior tiene el signo de cierre #> en la siguiente línea. Si el signo de cierre está en la misma línea, el resultado se mostrará en una línea en lugar de cada línea como 'DROP TABLE ~;'.

태그는 중첩할 수 없음 Tags cannot be nested Las etiquetas no se pueden anidar

태그는 중첩할 수 없습니다.
즉, 태그 안에 태그를 넣을 수 없습니다. <# 부호와 키워드로 태그가 시작되면 가장 먼저 나타나는 #> 부호로 태그가 완성됩니다.

따라서 다음과 같은 태그 사용은 불가합니다:

Tags cannot be nested.
In other words, you cannot put a tag inside a tag. When a tag starts with <# and a keyword, the tag is completed by the first #> sign that appears.

Therefore, the following tag usage is not allowed:

Las etiquetas no se pueden anidar.
En otras palabras, no puedes poner una etiqueta dentro de una etiqueta. Cuando una etiqueta comienza con <# y una palabra clave, la etiqueta se completa con el primer signo #> que aparece.

Por lo tanto, no se permite el siguiente uso de etiquetas:

<#for-tables=<#table_name#> table!#>

이런 이유로 외부태그의 템플릿 안에 넣을 수 있는 내부태그를 사용해야 합니다.

For this reason, you should use internal tags that can be placed inside the template of external tags.

Por esta razón, debes usar etiquetas internas que se pueden colocar dentro de la plantilla de etiquetas externas.

내부태그 Internal Tags Etiquetas Internas

위에서 제시한 잘못된 태그 사용 예를 바로 잡으면 다음과 같습니다.

Correcting the incorrect tag usage example given above is as follows.

Corrigiendo el ejemplo de uso incorrecto de etiquetas dado anteriormente es el siguiente.

<#for-tables=<:table_name:> table!#>

또는 Or O

<#for-tables=$table_name table!#>

또는 Or O

<#for-tables=${table_name} table!#>

내부태그는 <:과 특정 키워드, 그리고 :>로 구성됩니다.
내부태그는 외부태그와 달리 해시(#) 기호 대신 콜론(:)을 사용한다는 점에 유의해 주세요.

Internal tags are composed of <: and a specific keyword, and :>.
Note that internal tags use a colon (:) instead of a hash (#) sign, unlike external tags.

Las etiquetas internas están compuestas por <: y una palabra clave específica, y :>.
Tenga en cuenta que las etiquetas internas usan dos puntos (:) en lugar de un signo de almohadilla (#), a diferencia de las etiquetas externas.

<:table_name:>

그런데, 많은 내부태그들은 추가적인 정보를 필요로 하지 않습니다. 그런 경우 위의 예에서 보는 것처럼 달러($) 기호로 시작하는 형식으로 표시할 수 있습니다.

However, many internal tags do not require additional information. In such cases, they can be represented in the format starting with a dollar ($) sign as shown in the example above.

Sin embargo, muchas etiquetas internas no requieren información adicional. En tales casos, se pueden representar en el formato que comienza con un signo de dólar ($) como se muestra en el ejemplo anterior.

$table_name

만일 달러($) 기호로 시작하는 형식으로 표시된 내부태그 뒤에 다른 텍스트가 따라 붙으면 $table_name_backup.sql과 같이 표시할 수 없습니다.
이러한 경우 달러($) 기호 뒤에 중괄호({})로 내부태그를 감싸야 합니다.

If other text follows the internal tag represented in the format starting with a dollar ($) sign, it cannot be displayed as $table_name_backup.sql.
In such cases, the internal tag must be enclosed in braces ({}) after the dollar ($) sign.

Si sigue otro texto después de la etiqueta interna representada en el formato que comienza con un signo de dólar ($), no se puede mostrar como $table_name_backup.sql.
En tales casos, la etiqueta interna debe estar encerrada entre llaves ({}) después del signo de dólar ($).

<#for-tables=mysqldump -u uname -p$ENVPSWD mydb $table_name > ${table_name}_backup.sql #>

위 템플릿을 적용하면 아래와 같은 결과를 얻을 수 있습니다.

Applying the template above will give you the following result.

Aplicar la plantilla anterior te dará el siguiente resultado.

mysqldump -u uname -p$ENVPSWD mydb foo_info > foo_info_backup.sql mysqldump -u uname -p$ENVPSWD mydb bar_info > bar_info_backup.sql mysqldump -u uname -p$ENVPSWD mydb baz_info > baz_info_backup.sql

위의 템플릿을 보면 $ENVPSWD가 달러($) 기호로 시작하고 다른 텍스트가 따라 붙습니다. 그러나 ENVPSWD는 엔진이 인식하는 한 태그용 키워드가 아니기 때문에 쓰여진 그대로 출력됩니다.
덧붙여, 당연한 이야기지만, 내부태그는 외부태그 안에 있는 내부템플릿에만 포함할 수 있습니다.

In the template above, $ENVPSWD starts with a dollar ($) sign and is followed by other text. However, since ENVPSWD is not a keyword for the tag recognized by the engine, it is printed as written.
Needless to say, internal tags can only be included in the inner template inside external tags.

En la plantilla anterior, $ENVPSWD comienza con un signo de dólar ($) y está seguido por otro texto. Sin embargo, dado que ENVPSWD no es una palabra clave para la etiqueta reconocida por el motor, se imprime tal como está.
No hace falta decir que las etiquetas internas solo se pueden incluir en la plantilla interna dentro de las etiquetas externas.

컨텐츠를 필요로 하는 내부태그 Internal Tags that require content Etiquetas internas que requieren contenido

내부태그들은 어떤 경우에도 '내부템플릿'을 필요로하지 않습니다. 대신, 특정한 내부태그들은 텍스트 내용물을 필요로 합니다. 텍스트 내용물은 종료부호 :>를 제외한 어떤 텍스트도 가능합니다.
다음 4개의 내부태그가 이러한 경우에 해당합니다.

Internal tags never require an 'inner template' in any case. Instead, certain internal tags require text content. Any text content is possible except the closing sign (:>).
The following four internal tags fall into this category.

Las etiquetas internas nunca requieren una 'plantilla interna' en ningún caso. En su lugar, ciertas etiquetas internas requieren contenido de texto. Cualquier contenido de texto es posible excepto el signo de cierre :>.
Las siguientes cuatro etiquetas internas entran en esta categoría.

  • <:if-first=... any text ... :>
  • <:if-last=... any text ... :>
  • <:if-not-first=... any text text text ... :>
  • <:if-not-last=... any text ... :>

이 내부태그들은 <#for-*= ...#>류의 외부태그 안에서 사용됩니다.
for 루프가 도는 동안 첫번째(if-first), 마지막(if-last), 첫번째가 아닌(if-not-first), 마지막이 아닌(if-not-last)인 경우에만 인수로 주어진 텍스트 내용물을 출력합니다.
<:if-not-last=... any text ... :>에 대해서만 예를 들어 보겠습니다.

These internal tags are used inside external tags of the <#for-*= ...#> type.
During the for loop, they output the text content given as an argument only when it is the first(if-first), the last(if-last), not the first(if-not-first), or not the last(if-not-last) case.
Let's look at <:if-not-last=... any text ... :> as an example.

Estas etiquetas internas se utilizan dentro de las etiquetas externas del tipo <#for-*= ...#>.
Durante el bucle for, muestran el contenido de texto dado como argumento solo cuando es el primero(if-first), el último(if-last), no el primero(if-not-first), o no el último(if-not-last) caso.
Veamos <:if-not-last=... any text ... :> como ejemplo.

SELECT <#for-columns=$column_name<:if-not-last=, :>#> FROM <#table_name#>;

위 템플릿을 USER_INFO 테이블에 적용하면,

Applying the template above to the USER_INFO table,

Aplicando la plantilla anterior a la tabla USER_INFO,

USER_INFO Table
CREATE TABLE USER_INFO ( user_id varchar(30) not null, password varchar(64) not null, first_name varchar(50) not null, last_name varchar(50) not null, birth_year int null, primary key (user_id) );
이러한 결과를 얻게됩니다. You will get this result. Obtendrás este resultado.
SELECT user_id, password, first_name, last_name, birth_year FROM user_info;

생성된 코드의 마지막 birth_year 칼럼의 뒤에는 컴마 표시가 없습니다.
사용한 내부태그가 <:if-not-last=...:> 였기 때문에 마지막이 아닌 것들에 대해서만 내부 텍스트 내용물인 컴마를 출력한 것입니다.

Tip: 개인적인 의견으로는, 굳이 이 if-* 태그들은 사용하지 않아도 무방합니다.
그냥 코드 생성 후 마지막 컴마를 지우는 쪽이 더 간편하니까요. DbdbTap 서비스는 시간 절약에 촛점을 두고 있는 것이지 완벽한 코드 생성을 목표로 하고 있지 않습니다. 이 태그들은 구성상 그럴 듯 하기때문에 만들어진 것 뿐입니다.

There is no comma after the last birth_year column in the generated code.
The internal text content, a comma, was output only for those that are not the last because the internal tag used was <:if-not-last=...:>.

Tip: Personally, you don't have to use these if-* tags.
It's easier to just remove the last comma after generating the code. DbdbTap service focuses on saving time rather than aiming for perfect code generation. These tags were created just because they seemed reasonable in configuration.

No hay coma después de la última columna birth_year en el código generado.
El contenido de texto interno, una coma, se mostró solo para aquellos que no son los últimos porque la etiqueta interna utilizada fue <:if-not-last=...:>.

Consejo: Personalmente, no es necesario usar estas etiquetas if-*.
Es más fácil simplemente eliminar la última coma después de generar el código. El servicio DbdbTap se centra en ahorrar tiempo en lugar de apuntar a una generación de código perfecta. Estas etiquetas se crearon solo porque parecían razonables en la configuración.

모든 템플릿 태그 목록 List of All Template Tags Lista de todas las etiquetas de plantilla

템플릿 태그들은 다음과 같이 분류할 수 있습니다:

  • 일반 태그
  • 전체 또는 단일 테이블용 태그
  • 칼럼용 태그
  • 칼럼 이름 태그
  • 데이터 타입용 태그

Template tags can be classified as follows:

  • General tags
  • Tags for all the tables or a single table
  • Tags for columns
  • Tags for column names
  • Tags for data types

Las etiquetas de plantilla se pueden clasificar de la siguiente manera:

  • Etiquetas generales
  • Etiquetas para todas las tablas o una sola tabla
  • Etiquetas para columnas
  • Etiquetas para nombres de columnas
  • Etiquetas para tipos de datos

일반 태그 General Tags Etiquetas Generales

특정 테이블이나 칼럼과 무관하게 사용할 수 있는 일반정보 출력용 태그입니다.

Tags for general information output that can be used regardless of specific tables or columns.

Etiquetas para la salida de información general que se pueden utilizar independientemente de tablas o columnas específicas.

태그 Tag Etiqueta 내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블
지정
Need a
Table
Necesita
una tabla
설명 Description Descripción
<#project-name#> <:project-name:> $project-name No 프로젝트 이름 또는 제목 Project name or title Nombre del proyecto o título
<#project-title#> <:project-title:> $project-title No 프로젝트 이름 또는 제목 Project name or title Nombre del proyecto o título
<#root-package#> <:root-package:> $root-package No 프로젝트 최상위 패키지 Package name of the project Nombre del paquete del proyecto
<#sub-package#> <:sub-package:> $sub-package No 개별 템플릿에 지정된 서브패키지 Subpackage name specified to an individual template Nombre del subpaquete especificado para una plantilla individual
<#template-name#> <:template-name:> $template-name No 템플릿 이름 또는 제목 Template name or title Nombre de la plantilla o título
<#template-title#> <:template-title:> $template-title No 템플릿 이름 또는 제목 Template name or title Nombre de la plantilla o título
<#template-group-name#> <:template-group-name:> $template-group-name No 템플릿 그룹 이름 또는 제목 Template group name or title Nombre del grupo de plantillas o título
<#template-group-title#> <:template-group-title:> $template-group-title No 템플릿 그룹 이름 또는 제목 Template group name or title Nombre del grupo de plantillas o título
<#programming-language:> <:programming-language:> $programming-language No 현재 템플릿의 프로그래밍 언어 Programming language of the current template Lenguaje de programación de la plantilla actual
<#programmer-name#> <:programmer-name:> $programmer-name No 현재 사용자의 이름 Name of the current user Nombre del usuario actual
<#file-name#> <:file-name:> $file-name No 파일명 템플릿을 사용하여 생성된 파일명 File name generated using file name template Nombre de archivo generado usando plantilla de nombre de archivo
<#now#> <:now:> $now No 현재 날짜와 시간 Current date and time Fecha y hora actual
<#today-ymd#> <:today-ymd:> $today-ymd No 현재 날짜를 YYYY-MM-DD 형식으로 Current date in YYYY-MM-DD format Fecha actual en formato YYYY-MM-DD
<#now-ymd-hms#> <:now-ymd-hms:> $now-ymd-hms No 현재 날짜와 시간을 YYYY-MM-DD HH:MM:SS 형식으로 Current date and time in YYYY-MM-DD HH:MM:SS format Fecha y hora actual en formato YYYY-MM-DD HH:MM:SS
<#now-hms#> <:now-hms:> $now-hms No 현재 시간을 HH:MM:SS 형식으로 Current time in HH:MM:SS format Hora actual en formato HH:MM:SS
<#config-type-myFunction#> No Override the default type conversion from database type to one in programming language Anular la conversión de tipo predeterminada de tipo de base de datos a uno en lenguaje de programación 데이터베이스 타입에서 프로그래밍 언어 타입으로의 변환을 재정의

전체 또는 단일 테이블용 태그 (내부 태그로 사용 불가) Tags for all the tables or a single table (cannot be used as internal tags) Etiquetas para todas las tablas o una tabla individual (no se pueden usar como etiquetas internas)

태그 Tag Etiqueta 테이블 지정 Need a Table Necesita una tabla 설명 Description Descripción
<#for-tables#> No 모든 테이블에 대해 내부 템플릿 적용 Apply inner template to each and every table Aplica la plantilla interna a cada tabla
<#for-join-tables#> Yes UI에서 Join한 테이블마다 내부 템플릿 적용 Iterates every user-designated joining table to apply inner template Itera cada tabla de unión designada por el usuario para aplicar la plantilla interna
<#for-parent-tables#> Yes 현재 테이블이 참조하는 모든 참조대상 테이블에 대해 내부 템플릿 적용 Apply inner template for every referenced table that the current table references Aplica la plantilla interna para cada tabla referenciada a la que hace referencia la tabla actual
<#for-child-tables#> Yes 현재 테이블을 참조하는 모든 자식 테이블에 대해 내부 템플릿 적용 Apply inner template for every child table that references the current table Aplica la plantilla interna para cada tabla hija que hace referencia a la tabla actual
<#if-table#> Yes 지정된 테이블이 뷰가 아닌 테이블일 경우 <#end-if-table#> 까지의 템플릿 적용 Apply the template up to <#end-if-table#> if the specified table is a table, not a view Aplica la plantilla hasta <#end-if-table#> si la tabla especificada es una tabla, no una vista
<#if-view#> Yes 지정된 테이블이 뷰일 경우 <#end-if-view#> 까지의 템플릿 적용 Apply the template up to <#end-if-view#> if the specified table is a view Aplica la plantilla hasta <#end-if-view#> si la tabla especificada es una vista
<#if-has-parent-table#> Yes 현재 테이블이 참조하는 테이블이 하나라도 있는 경우 <#end-if-has-parent-table#> 까지의 템플릿 적용 Apply the template up to <#end-if-has-parent-table#> if the current table has any referenced tables Aplica la plantilla hasta <#end-if-has-parent-table#> si la tabla actual tiene tablas referenciadas
<#if-has-child-table#> Yes 현재 테이블을 참조하는 테이블이 하나라도 있는 경우 <#end-if-has-child-table#> 까지의 템플릿 적용 Apply the template up to <#end-if-has-child-table#> if the current table has any child tables Aplica la plantilla hasta <#end-if-has-child-table#> si la tabla actual tiene tablas hijas
<#if-any-types-CSV_OF_TYPES#> Yes 현재 테이블에 CSV 텍스트에 포함된 타입의 칼럼이 하나라도 있는 경우 <#end-if#> 까지의 템플릿 적용 Apply the template up to <#end-if#> if the specified table has any columns of the type specified in the CSV text. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada tiene alguna columna del tipo especificado en el texto CSV. De lo contrario, salta al final de <#end-if#>.
<#if-no-types-CSV_OF_TYPES#> Yes 현재 테이블에 CSV 텍스트에 포함된 타입의 칼럼이 하나도 없는 경우 <#end-if#> 까지의 템플릿 적용. 있는 경우 <#end-if#>까지 건너뜀. Apply the template up to <#end-if#> if the specified table has no columns of the type specified in the CSV text. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada no tiene ninguna columna del tipo especificado en el texto CSV. De lo contrario, salta al final de <#end-if#>.
<#if-has-column-COLUMN_NAME#> Yes 현재 테이블에 지정된 칼럼이 있는 경우 <#end-if#> 까지의 템플릿 적용. 없는 경우 <#end-if#>까지 건너뜀. Apply the template up to <#end-if#> if the specified table has the specified column. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada tiene la columna especificada. De lo contrario, salta al final de <#end-if#>.
<#if-no-column-COLUMN_NAME#> Yes 현재 테이블에 지정된 칼럼이 없는 경우 <#end-if#> 까지의 템플릿 적용. 있는 경우 <#end-if#>까지 건너뜀. Apply the template up to <#end-if#> if the specified table has no the specified column. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada no tiene la columna especificada. De lo contrario, salta al final de <#end-if#>.

단일 테이블용 태그 (내부 태그로도 사용 가능) Tags for a single table (can also be used as internal tags) Etiquetas para una sola tabla (también se pueden usar como etiquetas internas)

태그 Tag Etiqueta 내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블
지정
Need a
Table
Necesita
una tabla
설명 Description Descripción
<#table-raw-name#> <:table-raw-name:> $table-raw-name Yes 데이터베이스에서 조회된 그대로의 테이블 이름 Table name as it is retrieved from the database Nombre de la tabla tal como se recupera de la base de datos
<#TABLE_NAME#> <:TABLE_NAME:> $TABLE_NAME Yes 대문자와 밑줄로 테이블이름 출력 Table name in all capital with underscores Nombre de la tabla en mayúsculas con guiones bajos
<#table_name#> <:table_name:> $table_name Yes 소문자와 밑줄로 테이블이름 출력 Table name in all lower case with underscores Nombre de la tabla en minúsculas con guiones bajos
<#Table_name#> <:Table_name:> $Table_name Yes 첫 글자는 대문자이고 나머지는 모두 소문자와 밑줄로 테이블이름 출력 Table name starting with a capital letter and the rest in lower case with underscores Nombre de la tabla que comienza con una letra mayúscula y el resto en minúsculas con guiones bajos
<#TABLE-NAME#> <:TABLE-NAME:> $TABLE-NAME Yes 대문자와 하이픈으로 테이블이름 출력 Table name in all capital with hyphens Nombre de la tabla en mayúsculas con guiones
<#table-name#> <:table-name:> $table-name Yes 소문자와 하이픈으로 테이블이름 출력 Table name in all lower case with hyphens Nombre de la tabla en minúsculas con guiones
<#TableName#> <:TableName:> $TableName Yes 파스칼 케이스로 테이블이름 출력 Table name in Pascal Case Nombre de la tabla en Pascal Case
<#tableName#> <:tableName:> $tableName Yes camel 케이스로 테이블이름 출력 Table name in camel Case Nombre de la tabla en caso camello
<#TABLENAME#> <:TABLENAME:> $TABLENAME Yes 대문자만으로 테이블이름 출력 Table name in all capital letters Nombre de la tabla en mayúsculas
<#tablename#> <:tablename:> $tablename Yes 소문자만으로 테이블이름 출력 Table name in all lower case Nombre de la tabla en minúsculas
<#table-logical-name#> <:table-logical-name:> $table-logical-name Yes 테이블의 논리적 이름 Logical name of the table Nombre lógico de la tabla
<#table-type#> <:table-type:> $table-type Yes 문자열 TABLE 또는 VIEW 출력 Prints string TABLE or VIEW Imprime la cadena TABLE o VIEW
<#alias#> <:alias:> $alias Yes 테이블의 alias 출력 Prints table alias Imprime el alias de la tabla
  <:ordinal-number:> $ordinal-number Yes for-*tables 형식의 테이블 iteration에서의 순번 Ordinal number in the iteration of for-*tables Número ordinal en la iteración de for-*tables
<#table-comment#> Yes 테이블의 주석 Comment of the table Comentario de la tabla

지정 테이블의 칼럼들에 대한 iteration 작업용 태그 Tags for iterating over columns of a designated table Etiquetas para iterar sobre columnas de una tabla designada

특정 테이블의 칼럼들에 대해 iteration 작업을 수행하며 내부템플릿을 적용하는 태그들입니다.

Tags for iterating over columns of a designated table and applying inner templates.

Etiquetas para iterar sobre columnas de una tabla designada y aplicar plantillas internas.

태그 Tag Etiqueta 테이블 지정 Need a Table Necesita una tabla 설명 Description Descripción
<#for-columns#> Yes 테이블의 모든 칼럼에 대해 내부 템플릿 적용(Join 칼럼 포함) Apply inner template for every column of the table (including joining columns) Aplica la plantilla interna para cada columna de la tabla (incluyendo columnas de unión)
<#for-own-columns#> Yes 테이블의 자체 칼럼에 대해 내부 템플릿 적용(Join 칼럼 제외) Apply inner template for the columns of the table itself (excluding joining columns) Aplica la plantilla interna para las columnas de la tabla misma (excluyendo columnas de unión)
<#for-no-key-own-columns#> Yes 테이블의 자체 칼럼 중 primary key에 속하지 않는 것들에 대해 내부 템플릿 적용(Join 칼럼 제외) Apply inner template for the columns of the table itself that do not belong to the primary key (excluding joining columns) Aplica la plantilla interna para las columnas de la tabla misma que no pertenecen a la clave primaria (excluyendo columnas de unión)
<#for-key-columns#> Yes 테이블의 primary key에 속하는 칼럼들에 대해 내부 템플릿 적용 Apply inner template for columns belonging to the primary key of the table Aplica la plantilla interna para las columnas que pertenecen a la clave primaria de la tabla
<#for-keys#> Yes <#for-key-columns#>와 같음 Same as <#for-key-columns#> Igual que <#for-key-columns#>
<#for-no-key-columns#> Yes 테이블의 primary key에 속하지 않는 칼럼들에 대해 내부 템플릿 적용(Join 칼럼 포함) Apply inner template for columns not belonging to the primary key of the table (including joining columns) Aplica la plantilla interna para las columnas que no pertenecen a la clave primaria de la tabla (incluyendo columnas de unión)
<#for-no-keys#> Yes <#for-no-key-columns#>와 같음 Same as <#for-no-key-columns#> Igual que <#for-no-key-columns#>
<#for-every-CSV_OF_TYPES#> Yes CSV에 명시된 모든 타입에 해당하는 칼럼마다 내부 템플릿 적용하기 Apply inner template for every column of types in the CSV text Aplica la plantilla interna para cada columna de los tipos en el texto CSV
<#for-all-but-CSV_OF_TYPES#> Yes CSV에 명시된 타입에 해당하지 않는 모든 칼럼마다 내부 템플릿 적용하기 Apply inner template for every column of types NOT in the CSV text Aplica la plantilla interna para cada columna de los tipos NO en el texto CSV
<#for-join-keys#> Yes 테이블 조인을 위한 칼럼들마다 내부 템플릿 적용하기 Apply inner template for each joining keys Aplica la plantilla interna para cada clave de unión
<#for-columns-myFunction#> Yes 테이블의 모든 칼럼에 대해 사용자 정의 함수와 내부 템플릿 적용(Join 칼럼 포함) Apply user-defined function and inner template for every column of the table (including joining columns) Aplica la función definida por el usuario y la plantilla interna para cada columna de la tabla (incluyendo columnas de unión)
<#for-own-columns-myFunction#> Yes 테이블의 자체 칼럼에 대해 사용자 정의 함수와 내부 템플릿 적용(Join 칼럼 제외) Apply user-defined function and inner template for the columns of the table itself (excluding joining columns) Aplica la función definida por el usuario y la plantilla interna para las columnas de la tabla misma (excluyendo columnas de unión)
<#for-no-key-own-columns-myFunction#> Yes 테이블의 자체 칼럼 중 primary key에 속하지 않는 것들에 대해 사용자 정의 함수와 내부 템플릿 적용(Join 칼럼 제외) Apply user-defined function and inner template for the columns of the table itself that do not belong to the primary key (excluding joining columns) Aplica la función definida por el usuario y la plantilla interna para las columnas de la tabla misma que no pertenecen a la clave primaria (excluyendo columnas de unión)
<#for-key-columns-myFunction#> Yes 테이블의 primary key에 속하는 칼럼들에 대해 사용자 정의 함수와 내부 템플릿 적용 Apply user-defined function and inner template for columns belonging to the primary key of the table Aplica la función definida por el usuario y la plantilla interna para las columnas que pertenecen a la clave primaria de la tabla
<#for-keys-myFunction#> Yes <#for-key-columns-myFunction#>와 같음 Same as <#for-key-columns-myFunction#> Igual que <#for-key-columns-myFunction#>
<#for-no-key-columns-myFunction#> Yes 테이블의 primary key에 속하지 않는 칼럼들에 대해 사용자 정의 함수와 내부 템플릿 적용(Join 칼럼 포함) Apply user-defined function and inner template for columns not belonging to the primary key of the table (including join columns) Aplica la función definida por el usuario y la plantilla interna para las columnas que no pertenecen a la clave primaria de la tabla (incluidas las columnas de unión)
<#for-no-keys-myFunction#> Yes <#for-no-key-columns-myFunction#>와 같음 Same as <#for-no-key-columns-myFunction#> Igual que <#for-no-key-columns-myFunction#>

사용자 정의 상수 User-defined Constants Constantes definidas por el usuario

사용자가 정의한 상수를 출력하는 태그입니다. 외부, 내부태그 모두 사용 가능합니다.

Tags for displaying user-defined constants. Both external and internal tags are available.

Etiquetas para mostrar constantes definidas por el usuario. Ambas etiquetas externas e internas están disponibles.

태그 Tag Etiqueta 내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블
지정
Need a
Table
Necesita
una tabla
설명 Description Descripción
<#const-yourConstantName#> <:const-yourConstantName:> $const-yourConstantName No 사용자 정의 상수 User-defined constant Constante definida por el usuario

칼럼 이름과 속성 표시를 위한 태그 Tags for displaying column names and attributes Etiquetas para mostrar nombres y atributos de columnas

다양한 형식으로 출력할 수 있는 칼럼 이름 태그들과 칼럼 속성 표시용 태그입니다.
이 태그들은 내부태그로만 사용됩니다.

Tags for displaying column names in various formats and for showing column attributes.
These tags are used as internal tags only.

Etiquetas para mostrar nombres de columnas en varios formatos y para mostrar atributos de columnas.
Estas etiquetas se utilizan solo como etiquetas internas.

내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블 지정 Need a Table Necesita una tabla 설명 Description Descripción
<:column-raw-name:> $column-raw-name Yes 데이터베이스에서 조회된 그대로의 칼럼 이름 Column name as it is retrieved from the database Nombre de la columna tal como se recupera de la base de datos
<:COLUMN_NAME:> $COLUMN_NAME Yes 대문자와 밑줄로 칼럼명 출력 Column name in all capital with underscores Nombre de la columna en mayúsculas con guiones bajos
<:column_name:> $column_name Yes 소문자와 밑줄로 칼럼명 출력 Column name in all lower case with underscores Nombre de la columna en minúsculas con guiones bajos
<:COLUMN-NAME:> $COLUMN-NAME Yes 대문자와 하이픈으로 칼럼명 출력 Column name in all capital with hyphens Nombre de la columna en mayúsculas con guiones
<:column-name:> $column-name Yes 소문자와 하이픈으로 칼럼명 출력 Column name in all lower case with hyphens Nombre de la columna en minúsculas con guiones
<:ColumnName:> $ColumnName Yes 파스칼 케이스로 칼럼명 출력 Column name in Pascal Case Nombre de columna en Pascal Case
<:columnName:> $columnName Yes camel 케이스로 칼럼명 출력 Column name in camel Case Nombre de columna en caso camello
<:COLUMNNAME:> $COLUMNNAME Yes 대문자만으로 칼럼명 출력 Column name in all capital letters Nombre de la columna en mayúsculas
<:columnname:> $columnname Yes 소문자만으로 칼럼명 출력 Column name in all lower case Nombre de la columna en minúsculas
<:column-logical-name:> $column-logical-name Yes 칼럼의 논리적 이름 출력 Logical name of the column Nombre lógico de la columna
<:column-comment:> $column-comment Yes 칼럼의 주석 출력 Prints the comment of the column Imprime el comentario de la columna
<:max:> $max Yes 칼럼의 최대값 또는 최대 길이 Maximum value or maximum length of the column Valor máximo o longitud máxima de la columna
<:is-nullable:> $is-nullable Yes 칼럼이 NULL을 허용하는지 여부 Whether the column allows NULL Si la columna permite NULL
<:is-not-nullable:> $is-not-nullable Yes 칼럼이 NULL을 허용하지 않는지 여부 Whether the column does not allow NULL Si la columna no permite NULL
<:if-nullable=TEXT:> Yes 칼럼이 NULL을 허용하는 경우 내부 텍스트 출력 Prints inner text if the column allows NULL Imprime el texto interno si la columna permite NULL
<:if-not-nullable=TEXT:> Yes 칼럼이 NULL을 허용하지 않는 경우 내부 텍스트 출력 Prints inner text if the column does not allow NULL Imprime el texto interno si la columna no permite NULL
<:is-primary-key:> $is-primary-key Yes 칼럼이 primary key인지 여부 Whether the column is a primary key Si la columna es una clave primaria
<:is-not-primary-key:> $is-not-primary-key Yes 칼럼이 primary key가 아닌지 여부 Whether the column is not a primary key Si la columna no es una clave primaria
<:if-primary-key=TEXT:> Yes 칼럼이 primary key인 경우 내부 텍스트 출력 Prints inner text if the column is a primary key Imprime el texto interno si la columna es una clave primaria
<:if-not-primary-key=TEXT:> Yes 칼럼이 primary key가 아닌 경우 내부 텍스트 출력 Prints inner text if the column is not a primary key Imprime el texto interno si la columna no es una clave primaria
<:is-auto-increment:> $is-auto-increment Yes 칼럼이 auto increment인지 여부 Whether the column is auto increment Si la columna es auto incremento
<:if-auto-increment=TEXT:> Yes 칼럼이 auto increment인 경우 내부 텍스트 출력 Prints inner text if the column is auto increment Imprime el texto interno si la columna es auto incremento

데이터 타입 출력용 태그 Tags for displaying data types Etiquetas para mostrar tipos de datos

템플릿에 지정된 프로그래밍 언어에 따라 칼럼의 데이터 타입을 출력합니다. 예를 들어, 테이블 스키마에서 칼럼의 데이터 타입이 'varchar(100)'이라면, Java 언어에서는 'String', Go 언어에서는 'string'으로 출력됩니다.
이 태그들은 내부태그로만 사용됩니다.

Displays the data type of a column according to the programming language specified in the template. For example, if the data type of a column in the table schema is 'varchar(100)', it will be displayed as 'String' in Java language and 'string' in Go language.
There is no external tag expression for these tags.

Muestra el tipo de datos de una columna según el lenguaje de programación especificado en la plantilla. Por ejemplo, si el tipo de datos de una columna en el esquema de la tabla es 'varchar(100)', se mostrará como 'String' en el lenguaje Java y 'string' en el lenguaje Go.
No hay expresión de etiqueta externa para estas etiquetas.

내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블 지정 Need a Table Necesita una tabla 설명 Description Descripción
<:data-type:> $data-type Yes 데이터베이스 내에서의 칼럼 타입. 속성 미포함. 실제 데이터베이스의 칼럼 타입을 MariaDB/MySQL 타입으로 전환한 것 Data type of a column in database. No attributes. Converted from actual database column type to MariaDB/MySQL type Tipo de datos de una columna en la base de datos. Sin atributos. Convertido del tipo de columna real de la base de datos al tipo de MariaDB/MySQL
<:raw-type:> $raw-type Yes 데이터베이스 내에서의 실제 칼럼 타입. 속성 미포함 Actual data type of a column in database. No attributes Tipo de datos real de una columna en la base de datos. Sin atributos
<:column-type:> $column-type Yes 데이터베이스 내에서의 칼럼 타입. 속성 포함 Data type of a column in database including attributes Tipo de datos de una columna en la base de datos incluyendo atributos
<:jdbc-type:> $jdbc-type Yes 칼럼의 JDBC 데이터 타입 JDBC data type of a column Tipo de datos JDBC de una columna
<:java-type:> $java-type Yes 칼럼의 Java 데이터 타입 Data type of a column in Java language Tipo de datos de una columna en el lenguaje Java
<:kotlin-type:> $kotlin-type Yes 칼럼의 Kotlin 데이터 타입 Data type of a column in Kotlin language Tipo de datos de una columna en el lenguaje Kotlin
<:cpp-type:> $cpp-type Yes 칼럼의 C++ 데이터 타입 Data type of a column in C++ language Tipo de datos de una columna en el lenguaje C++
<:csharp-type:> $csharp-type Yes 칼럼의 C# 데이터 타입 Data type of a column in C# language Tipo de datos de una columna en el lenguaje C#
<:swift-type:> $swift-type Yes 칼럼의 Swift 데이터 타입 Data type of a column in Swift language Tipo de datos de una columna en el lenguaje Swift
<:typescript-type:> $typescript-type Yes 칼럼의 TypeScript 데이터 타입 Data type of a column in TypeScript language Tipo de datos de una columna en el lenguaje TypeScript
<:dart-type:> $dart-type Yes 칼럼의 Dart 데이터 타입 Data type of a column in Dart language Tipo de datos de una columna en el lenguaje Dart
<:go-type:> $go-type Yes 칼럼의 Go 데이터 타입 Data type of a column in Go language Tipo de datos de una columna en el lenguaje Go
<:gql-type:> $gql-type Yes 칼럼의 GraphQL 데이터 타입 Data type of a column in GraphQL Tipo de datos de una columna en GraphQL
<:scala-type:> $scala-type Yes 칼럼의 Scala 데이터 타입 Data type of a column in Scala language Tipo de datos de una columna en el lenguaje Scala
<:rust-type:> $rust-type Yes 칼럼의 Rust 데이터 타입 Data type of a column in Rust language Tipo de datos de una columna en el lenguaje Rust
<:python-type:> $python-type Yes 칼럼의 Python 데이터 타입 Data type of a column in Python language Tipo de datos de una columna en el lenguaje Python

칼럼 Iteration 관련 추가적인 처리 Additional processing for column iteration Procesamiento adicional para la iteración de columnas

태그 Tag Etiqueta 내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블
지정
Need a
Table
Necesita
una tabla
설명 Description Descripción
<#csv-columns-as-ALIAS#> <:csv-columns-as-ALIAS:> $csv-columns-as-ALIAS Yes 모든 칼럼에 대해 'column as alias' 형식으로 만들고 콤마로 연결 Make 'column as alias' for every column and join with comma Hace 'column as alias' para cada columna y une con coma
<:ordinal-number:> $ordinal-number Yes 칼럼 iteration에서의 순번 Ordinal number in the iteration of columns Número ordinal en la iteración de columnas
<:ordinal-in-table:> $ordinal-in-table Yes 테이블 스키마 내 칼럼 순번 Ordinal number of columns in the table schema Número ordinal de columnas en el esquema de la tabla
<:if-first:=...> Yes 첫번째 칼럼에서만 출력 Print only for the first column Imprime solo para la primera columna
<:if-last=...:> Yes 마지막 칼럼에서만 출력 Print only for the last column Imprime solo para la última columna
<:if-not-first=...:> Yes 첫번째 칼럼을 제외하고 출력 Print except for the first column Imprime excepto para la primera columna
<:if-not-last=...:> Yes 마지막 칼럼을 제외하고 출력 Print except for the last column Imprime excepto para la última columna

이제부터 태그들에 대해 하나씩 살펴보겠습니다.

Now let's look at each tag one by one.

Ahora veamos cada etiqueta una por una.

일반 태그 General Tags Etiquetas Generales

특정 테이블이나 칼럼과 무관하게 사용할 수 있는 일반정보 출력용 태그입니다.

Tags for general information output that can be used regardless of specific tables or columns.

Etiquetas para la salida de información general que se pueden utilizar independientemente de tablas o columnas específicas.

외부태그로도, 내부태그로도 사용할 수 있는 태그들입니다.

Tags that can be used as both external and internal tags.

Etiquetas que se pueden utilizar como etiquetas externas e internas.

태그 Tag Etiqueta 내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블
지정
Need a
Table
Necesita
una tabla
설명 Description Descripción
<#project-name#> <:project-name:> $project-name No 프로젝트 이름 또는 제목 Project name or title Nombre del proyecto o título
<#project-title#> <:project-title:> $project-title No 프로젝트 이름 또는 제목 Project name or title Nombre del proyecto o título
<#root-package#> <:root-package:> $root-package No 프로젝트 최상위 패키지 Package name of the project Nombre del paquete del proyecto
<#sub-package#> <:sub-package:> $sub-package No 템플릿에 지정된 패키지 Package specified in the template Paquete especificado en la plantilla
<#template-name#> <:template-name:> $template-name No 템플릿 이름 또는 제목 Template name or title Nombre de la plantilla o título
<#template-title#> <:template-title:> $template-title No 템플릿 이름 또는 제목 Template name or title Nombre de la plantilla o título
<#template-group-name#> <:template-group-name:> $template-group-name No 템플릿 그룹 이름 또는 제목 Template group name or title Nombre del grupo de plantillas o título
<#template-group-title#> <:template-group-title:> $template-group-title No 템플릿 그룹 이름 또는 제목 Template group name or title Nombre del grupo de plantillas o título
<#programming-language:> <:programming-language:> $programming-language No 현재 템플릿의 프로그래밍 언어 Programming language of the current template Lenguaje de programación de la plantilla actual
<#programmer-name#> <:programmer-name:> $programmer-name No 현재 사용자의 이름 Name of the current user Nombre del usuario actual
<#file-name#> <:file-name:> $file-name No 파일명 템플릿을 사용하여 생성된 파일명 File name generated using file name template Nombre de archivo generado usando plantilla de nombre de archivo
<#now#> <:now:> $now No 현재 날짜와 시간 Current date and time Fecha y hora actual
<#today-ymd#> <:today-ymd:> $today-ymd No 현재 날짜를 YYYY-MM-DD 형식으로 Current date in YYYY-MM-DD format Fecha actual en formato YYYY-MM-DD
<#now-ymd-hms#> <:now-ymd-hms:> $now-ymd-hms No 현재 날짜와 시간을 YYYY-MM-DD HH:MM:SS 형식으로 Current date and time in YYYY-MM-DD HH:MM:SS format Fecha y hora actual en formato YYYY-MM-DD HH:MM:SS
<#now-hms#> <:now-hms:> $now-hms No 현재 시간을 HH:MM:SS 형식으로 Current time in HH:MM:SS format Hora actual en formato HH:MM:SS
<#config-type-myFunction#> No Override the default type conversion from database type to one in programming language Anular la conversión de tipo predeterminada de tipo de base de datos a uno en lenguaje de programación 데이터베이스 타입에서 프로그래밍 언어 타입으로의 변환을 재정의

project-name

프로젝트 이름 또는 제목 Project name or title Nombre del proyecto o título
// <#project-name#> <#for-tables=$TABLE_NAME of $project-name #> // or <#for-tables=$TABLE_NAME of <:project-name:> #>

프로젝트 정보에 입력한 프로젝트 이름 또는 제목이며, 주석이나 문자열 내에 넣어 사용하기에 적합합니다.

외부태그 뿐만 아니라 내부태그로도 사용할 수 있지만 주로 외부태그로 사용합니다.

The project name or title entered in the project information is suitable for use in comments or strings.

It can be used as both external and internal tags, but it is mainly used as an external tag.

El nombre o título del proyecto ingresado en la información del proyecto es adecuado para usar en comentarios o cadenas.

Se puede usar como etiquetas externas e internas, pero se usa principalmente como etiqueta externa.

project-title

프로젝트 이름 또는 제목 Project name or title Nombre del proyecto o título
// <#project-title#> <#for-tables=$TABLE_NAME of $project-title #> // or <#for-tables=$TABLE_NAME of <:project-title:> #>

<#project-name#> 대신 <#project-title#>을 사용해도 동일한 결과를 얻을 수 있습니다.

You can get the same result by using <#project-title#> instead of <#project-name#>.

Puede obtener el mismo resultado utilizando <#project-title#> en lugar de <#project-name#>.

root-package

프로젝트 최상위 패키지 Package name of the project Nombre del paquete del proyecto
package <#root-package#>.allInOne; <#for-tables=import $root-package.$tableName; #> // or <#for-tables=import <:root-package:>.$tableName; #>

프로젝트 정보에 입력한 'com.myorg.myproject' 형식의 최상위 패키지명을 출력합니다. 외부태그로도, 내부태그로도 사용할 수 있습니다.

Outputs the top-level package name in the format 'com.myorg.myproject' entered in the project information. It can be used as both external and internal tags.

Muestra el nombre del paquete de nivel superior en el formato 'com.myorg.myproject' ingresado en la información del proyecto. Se puede utilizar como etiquetas externas e internas.

sub-package

개별 템플릿에 지정된 서브패키지 Subpackage name specified to an individual template Nombre del subpaquete especificado para una plantilla individual

템플릿 정보 입력 시 지정한 서브패키지명을 출력합니다. 만일 서브패키지명을 'mysubpkg'로 지정했다면 다음과 같이 사용할 수 있습니다.

Outputs the subpackage name specified when entering template information. If the subpackage name is specified as 'mysubpkg', it can be used as follows.

Muestra el nombre del subpaquete especificado al ingresar información de la plantilla. Si se especifica el nombre del subpaquete como 'mysubpkg', se puede usar de la siguiente manera.

package <#root-package#>.<#sub-package#>;

만일 서브패키지명을 'com.myorg.myproject.mysubpkg'로 지정했다면 다음과 같이 사용할 수 있습니다.

If the subpackage name is specified as 'com.myorg.myproject.mysubpkg', it can be used as follows.

Si se especifica el nombre del subpaquete como 'com.myorg.myproject.mysubpkg', se puede usar de la siguiente manera.

package <#sub-package#>;

어떤 방식으로 사용할지는 여러분의 선택입니다.
외부태그로도, 내부태그로도 사용할 수 있으나 외부태그로 사용하는 것이 일반적입니다.

It is up to you how to use it.
It can be used as both external and internal tags, but it is common to use it as an external tag.

Depende de usted cómo usarlo.
Se puede utilizar como etiquetas externas e internas, pero es común usarlo como etiqueta externa.

단, 서브패키지명의 입력은 선택사항이며, 입력하지 않으면 빈 문자열로 처리됩니다.

Please note entering subpackage name is optional, and if not entered, it will be treated as an empty string.

Tenga en cuenta que ingresar el nombre del subpaquete es opcional y, si no se ingresa, se tratará como una cadena vacía.

template-name

템플릿 이름 또는 제목 Template name or title Nombre de la plantilla o título
// This code was generated by template '<#template-name#>'

템플릿 정보에 입력한 템플릿 이름 또는 제목이며, 주석이나 문자열 내에 넣어 사용하기에 적합합니다. 외부태그로도, 내부태그로도 사용할 수 있습니다.

The template name or title entered in the template information is suitable for use in comments or strings. It can be used as both external and internal tags.

El nombre o título de la plantilla ingresado en la información de la plantilla es adecuado para usar en comentarios o cadenas. Se puede utilizar como etiquetas externas e internas.

template-title

템플릿 이름 또는 제목 Template name or title Nombre de la plantilla o título
// This code was generated by template '<#template-title#>'

<#template-name#> 대신 <#template-title#>을 사용해도 동일한 결과를 얻을 수 있습니다.

You can get the same result by using <#template-title#> instead of <#template-name#>.

Puede obtener el mismo resultado utilizando <#template-title#> en lugar de <#template-name#>.

template-group-name

템플릿 그룹 이름 또는 제목 Template group name or title Nombre del grupo de plantillas o título

템플릿 그룹 정보에 입력한 템플릿 그룹 이름 또는 제목이며, 주석이나 문자열 내에 넣어 사용하기에 적합합니다. 외부태그로도, 내부태그로도 사용할 수 있습니다.

The template group name or title entered in the template group information is suitable for use in comments or strings. It can be used as both external and internal tags.

El nombre o título del grupo de plantillas ingresado en la información del grupo de plantillas es adecuado para usar en comentarios o cadenas. Se puede utilizar como etiquetas externas e internas.

template-group-title

템플릿 그룹 이름 또는 제목 Template group name or title Nombre del grupo de plantillas o título

<#template-group-name#> 대신 <#template-group-title#>을 사용해도 동일한 결과를 얻을 수 있습니다.

You can get the same result by using <#template-group-title#> instead of <#template-group-name#>.

Puede obtener el mismo resultado utilizando <#template-group-title#> en lugar de <#template-group-name#>.

programming-language

현재 템플릿의 프로그래밍 언어 Programming language of the current template Lenguaje de programación de la plantilla actual
package <#root-package#>.allInOne; // This code is written in <#programming-language#> <#for-tables=import $root-package.$tableName; #>

템플릿 생성 시 프로그래밍 언어를 선택하게 됩니다. 이 태그는 현재 템플릿의 프로그래밍 언어를 출력합니다. 외부태그로도, 내부태그로도 사용할 수 있습니다.

You will be asked to select a programming language when creating a template. This tag outputs the programming language of the current template. It can be used as both external and internal tags.

Se le pedirá que seleccione un lenguaje de programación al crear una plantilla. Este tag muestra el lenguaje de programación de la plantilla actual. Se puede utilizar como etiquetas externas e internas.

programmer-name

현재 사용자의 이름 Name of the current user Nombre del usuario actual
/** * VO Class for <#table_name#> * * @author <#programmer-name#> */ public class <#TableName#>Vo {...}

현재 소스코드를 생성하는 사용자의 이름을 출력합니다. 외부태그로도, 내부태그로도 사용할 수 있습니다.

Outputs the name of the user who is currently generating the source code. It can be used as both external and internal tags.

Muestra el nombre del usuario que actualmente está generando el código fuente. Se puede utilizar como etiquetas externas e internas.

file-name

파일명 템플릿을 사용하여 생성된 파일명 File name generated using file name template Nombre de archivo generado usando plantilla de nombre de archivo
// <#file-name#>

템플릿 생성 시 파일명 템플릿을 입력할 수 있습니다. 파일명 템플릿에는 단순한 외부태그들을 사용할 수 있습니다.

이 파일명 템플릿을 사용하여 생성된 파일명을 출력합니다.

외부태그로도, 내부태그로도 사용할 수 있습니다.

You can enter a file name template when creating a template. Simple external tags can be used in the file name template.

Outputs the file name generated using this file name template.

It can be used as both external and internal tags.

Puede ingresar una plantilla de nombre de archivo al crear una plantilla. Se pueden usar etiquetas externas simples en la plantilla de nombre de archivo.

Muestra el nombre de archivo generado usando esta plantilla de nombre de archivo.

Se puede utilizar como etiquetas externas e internas.

now

현재 날짜와 시간 Current date and time Fecha y hora actual
// Generated on <#now#>

현재 날짜와 시간을 현재 사용자의 언어에 따라 적절하게 출력합니다. 외부태그로도, 내부태그로도 사용할 수 있습니다.

Outputs the current date and time appropriately according to the current user's language. It can be used as both external and internal tags.

Muestra la fecha y hora actuales de manera apropiada según el idioma del usuario actual. Se puede utilizar como etiquetas externas e internas.

today-ymd

현재 날짜를 YYYY-MM-DD 형식으로 Current date in YYYY-MM-DD format Fecha actual en formato YYYY-MM-DD
// Generated on <#today-ymd#>

현재 날짜를 YYYY-MM-DD 형식으로 출력합니다. 외부태그로도, 내부태그로도 사용할 수 있습니다.

Outputs the current date in YYYY-MM-DD format. It can be used as both external and internal tags.

Muestra la fecha actual en formato YYYY-MM-DD. Se puede utilizar como etiquetas externas e internas.

now-ymd-hms

현재 날짜와 시간을 YYYY-MM-DD HH:MM:SS 형식으로 Current date and time in YYYY-MM-DD HH:MM:SS format Fecha y hora actual en formato YYYY-MM-DD HH:MM:SS
// Generated on <#now-ymd-hms#>

현재 날짜와 시간을 YYYY-MM-DD HH:MM:SS 형식으로 출력합니다. 외부태그로도, 내부태그로도 사용할 수 있습니다.

Outputs the current date and time in YYYY-MM-DD HH:MM:SS format. It can be used as both external and internal tags.

Muestra la fecha y hora actuales en formato YYYY-MM-DD HH:MM:SS. Se puede utilizar como etiquetas externas e internas.

now-hms

현재 시간을 HH:MM:SS 형식으로 Current time in HH:MM:SS format Hora actual en formato HH:MM:SS
// Generated at <#now-hms#>, <#today-ymd#>

<#now-hms#> 태그는 현재 시간을 HH:MM:SS 형식으로 출력합니다. 외부태그로도, 내부태그로도 사용할 수 있습니다.

The <#now-hms#> tag outputs the current time in HH:MM:SS format. It can be used as both external and internal tags.

La etiqueta <#now-hms#> muestra la hora actual en formato HH:MM:SS. Se puede utilizar como etiquetas externas e internas.

config-type-myFunction

데이터베이스 타입에서 프로그래밍 언어 타입으로의 변환을 재정의 Override the default type conversion from database type to one in programming language Anular la conversión de tipo predeterminada de tipo de base de datos a uno en lenguaje de programación
Common Script
const getJavaConversionMap = () => { const language = 'java'; const map = { datetime: 'LocalDateTime', timestamp: 'LocalDateTime', date: 'LocalDate', }; return {language, map}; }; return { setJavaTypes: ()=>getJavaConversionMap(), };
<#config-type-setJavaTypes#>

데이터베이스 타입에서 프로그래밍 언어 타입으로의 변환을 재정의합니다.
사용하는 프레임워크 또는 선호에 따라 DbdbTap이 정의한 데이터베이스 타입에서 프로그래밍 언어 타입으로의 변환을 재정의할 수 있습니다.
예를 들어, DbdbTap은 'date' 타입을 Java 'String'으로 변환합니다. 만일, 사용자가 'date' 타입을 Java 'LocalDate'로 변환하길 원한다면 사용자 정의 함수를 정의하고 이 태그를 사용하여 변환 규칙을 재정의할 수 있습니다.

위의 예제는 datetime, timestamp, date 타입을 Java에서 사용하는 LocalDateTime, LocalDateTime, LocalDate로 변환하도록 재정의하는 예제입니다.
setJavaTypes 함수는 사용자 정의 함수명이며, 이 함수는 {language, map} 객체를 반환해야 합니다.
map은 역시 객체로서, 데이터베이스 타입을 키로 하고, 대상 언어의 타입을 값으로 하는 객체여야 합니다.
language는 프로그래밍 언어명(필수)입니다.

map 객체의 키는 데이터베이스 타입으로, 프로젝트에서 사용하는 데이터베이스의 칼럼 타입을 사용해도 되고, 그에 대응하는 MySQL/MariaDB 칼럼 타입을 사용해도 됩니다.
단, 어느 경우에도 칼럼 타입은 소문자로 입력해야 합니다.

타입변환은 <#config-type-myFunction#>을 사용한 템플릿 내에서만 유효합니다.

공통 스크립트 편집 화면의 '타입변환 정보' 버튼을 클릭하여 기본적으로 제공되는 타입변환 정보를 확인하고 복사하여 사용할 수 있습니다.

[주의] { setJavaTypes: getJavaConversionMap } 형태로 사용하지 않도록 주의하십시오. 문법적으로는 맞지만, 이 경우 변환 엔진이 함수로 정의되어 있지 않은 것으로 인식하여 오류 메시지를 출력하고 스크립트를 저장하지 않습니다.

Override the default type conversion from database type to one in programming language.
Depending on the framework you use or your preference , you can redefine the conversion from the database type to the programming language type defined by DbdbTap.
For example, DbdbTap converts the 'date' type to Java 'String'. If you want to convert the 'date' type to Java 'LocalDate', you can define a user-defined function and redefine the conversion rule using this tag.

The example above is an example of redefining the conversion rule to use LocalDateTime, LocalDateTime, LocalDate in Java for datetime, timestamp, date types.
The setJavaTypes function is a user-defined function name, and this function must return an object {language, map}. map is also an object, and it must be an object with the database type as the key and the target language type as the value.
language is the programming language name (required).

The key of the map object is the database type, and you can use either the column type of the database used in the project or the corresponding MySQL/MariaDB column type.
However, in any case, the column type must be entered in lowercase.

Please note that the type conversion is only valid within the template using <#config-type-myFunction#>.

You can click the 'Type Conversion Browser' button on the common script editing screen to check and copy the type conversion information provided by default.

[Caution] Be careful not to use the form { setJavaTypes: getJavaConversionMap }. Although it is correct in syntax, the conversion engine recognizes it as a function not defined, so it displays an error message and does not save the script.

Anula la conversión de tipo predeterminada de tipo de base de datos a uno en lenguaje de programación.
Dependiendo del marco que utilice o de su preferencia, puede redefinir la conversión del tipo de base de datos al tipo de lenguaje de programación definido por DbdbTap.
Por ejemplo, DbdbTap convierte el tipo 'date' en 'String' de Java. Si desea convertir el tipo 'date' en 'LocalDate' de Java, puede definir una función definida por el usuario y redefinir la regla de conversión utilizando esta etiqueta.

El ejemplo anterior es un ejemplo de redefinir la regla de conversión para usar LocalDateTime, LocalDateTime, LocalDate en Java para los tipos datetime, timestamp, date.
La función setJavaTypes es un nombre de función definido por el usuario, y esta función debe devolver un objeto {language, map}. map también es un objeto, y debe ser un objeto con el tipo de base de datos como clave y el tipo de lenguaje de destino como valor.
language es el nombre del lenguaje de programación (requerido).

La clave del objeto map es el tipo de base de datos, y puede usar el tipo de columna de la base de datos utilizada en el proyecto o el tipo de columna MySQL/MariaDB correspondiente.
Sin embargo, en cualquier caso, el tipo de columna debe ingresarse en minúsculas.

Tenga en cuenta que la conversión de tipo solo es válida dentro de la plantilla que utiliza <#config-type-myFunction#>.

Puede hacer clic en el botón 'Navegador de Conversión de Tipos' en la pantalla de edición de script común para verificar y copiar la información de conversión de tipo proporcionada de forma predeterminada.

[Precaución] Tenga cuidado de no usar la forma { setJavaTypes: getJavaConversionMap }. Aunque es correcto en sintaxis, el motor de conversión lo reconoce como una función no definida, por lo que muestra un mensaje de error y no guarda el script.

디폴트 타입 사용하기 Using the default type Usar el tipo predeterminado

타입변환을 재정의할 때, 서비스가 제공하는 디폴트 타입 역시 재정의할 수 있습니다. 서비스는 varchar, varchar2, char 등 대부분의 문자열 타입을 Java의 경우 'String'으로, 다른 언어의 경우 역시 그에 준하는 문자열 타입으로 변환합니다. 이러한 타입변환은 명시적인 변환 규칙을 적용하는 것이 아니라 서비스가 각 언어별로 정의한 디폴트 타입을 적용한 결과입니다.

이러한 디폴트 타입을 사용자가 재정의하고자 하면, 타입변환 재정의 함수가 반환하는 map 속성에 '__default' 키를 추가하고, 이 키에 사용자가 원하는 디폴트 타입을 지정하면 됩니다. (주의: 2개의 언더스코어로 시작합니다.)

참고로, 타입변환은 다음과 같은 순서로 이루어집니다.

  1. 지정한 칼럼의 타입에 대한 사용자 정의 타입이 있으면 사용.
  2. 지정한 칼럼의 타입에 대해 서비스가 변환 정의한 타입이 있으면 사용.
  3. 지정한 칼럼의 타입에 대해 사용자가 '__default' 키로 지정한 디폴트 타입이 있으면 사용.
  4. 최종적으로 해당되는 것이 없으면, 서비스가 정의한 디폴트 타입을 사용.

다음은 간단한 예로서, 사용자가 정의한 'MagicType'을 디폴트 타입으로 사용하도록 재정의하는 예입니다.

When redefining the type conversion, you can also redefine the default type provided by the service. The service converts most string types such as varchar, varchar2, char to 'String' in Java, and to the corresponding string type in other languages. This type conversion is the result of applying the default type defined by the service for each language, rather than applying explicit conversion rules.

If you want to redefine this default type, add the '__default' key to the map attribute returned by the type conversion redefinition function, and specify the default type you want for this key. (Note: It starts with two underscores.)

For reference, the type conversion is done in the following order.

  1. If there is a user-defined type for the specified column type, use it.
  2. If the service has defined a type conversion for the specified column type, use it.
  3. If the user has specified a default type with the '__default' key for the specified column type, use it.
  4. Finally, if none of these apply, use the default type defined by the service.

The following is a simple example of redefining the 'MagicType' defined by the user as the default type.

Al redefinir la conversión de tipo, también puede redefinir el tipo predeterminado proporcionado por el servicio. El servicio convierte la mayoría de los tipos de cadena como varchar, varchar2, char a 'String' en Java, y al tipo de cadena correspondiente en otros idiomas. Esta conversión de tipo es el resultado de aplicar el tipo predeterminado definido por el servicio para cada idioma, en lugar de aplicar reglas de conversión explícitas.

Si desea redefinir este tipo predeterminado, agregue la clave '__default' al atributo map devuelto por la función de redefinición de conversión de tipo, y especifique el tipo predeterminado que desea para esta clave. (Nota: comienza con dos guiones bajos.)

Para referencia, la conversión de tipo se realiza en el siguiente orden.

  1. Si hay un tipo definido por el usuario para el tipo de columna especificado, úselo.
  2. Si el servicio ha definido una conversión de tipo para el tipo de columna especificado, úsela.
  3. Si el usuario ha especificado un tipo predeterminado con la clave '__default' para el tipo de columna especificado, úselo.
  4. Finalmente, si ninguno de estos se aplica, use el tipo predeterminado definido por el servicio.

El siguiente es un ejemplo simple de redefinir el 'MagicType' definido por el usuario como el tipo predeterminado.

Common Script
const getJavaConversionMap = () => { const language = 'java'; const map = { datetime: 'LocalDateTime', timestamp: 'LocalDateTime', date: 'LocalDate', __default: 'MagicType' }; return {language, map}; }; return { setJavaTypes: ()=>getJavaConversionMap(), };

전체 또는 단일 테이블용 외부태그 External tags for all or single tables Etiquetas externas para todas o tablas individuales

테이블 반복처리, 테이블명 출력, 기타 관련 정보를 사용하기 위한 태그입니다.

외부태그로만 사용할 수 있으며, 내부태그로 사용할 수 없습니다.

Tags for table iteration, table name output, and other related information.

Can only be used as external tags and cannot be used as internal tags.

Etiquetas para la iteración de tablas, la salida del nombre de la tabla y otra información relacionada.

Solo se puede utilizar como etiquetas externas y no se puede utilizar como etiquetas internas.

태그 Tag Etiqueta 테이블 지정 Need a Table Necesita una tabla 설명 Description Descripción
<#for-tables#> No 모든 테이블에 대해 내부 템플릿 적용 Apply inner template to each and every table Aplica la plantilla interna a cada tabla
<#for-join-tables#> Yes UI에서 Join한 테이블마다 내부 템플릿 적용 Iterates every user-designated joining table to apply inner template Itera cada tabla de unión designada por el usuario para aplicar la plantilla interna
<#for-parent-tables#> Yes 현재 테이블이 참조하는 모든 참조대상 테이블에 대해 내부 템플릿 적용 Apply inner template for every referenced table that the current table references Aplica la plantilla interna para cada tabla referenciada a la que hace referencia la tabla actual
<#for-child-tables#> Yes 현재 테이블을 참조하는 모든 자식 테이블에 대해 내부 템플릿 적용 Apply inner template for every child table that references the current table Aplica la plantilla interna para cada tabla hija que hace referencia a la tabla actual
<#if-table#> Yes 지정된 테이블이 뷰가 아닌 테이블일 경우 <#end-if-table#> 까지의 템플릿 적용 Apply the template up to <#end-if-table#> if the specified table is a table, not a view Aplica la plantilla hasta <#end-if-table#> si la tabla especificada es una tabla, no una vista
<#if-view#> Yes 지정된 테이블이 뷰일 경우 <#end-if-view#> 까지의 템플릿 적용 Apply the template up to <#end-if-view#> if the specified table is a view Aplica la plantilla hasta <#end-if-view#> si la tabla especificada es una vista
<#if-has-parent-table#> Yes 현재 테이블이 참조하는 테이블이 하나라도 있는 경우 <#end-if-has-parent-table#> 까지의 템플릿 적용 Apply the template up to <#end-if-has-parent-table#> if the current table has any referenced tables Aplica la plantilla hasta <#end-if-has-parent-table#> si la tabla actual tiene tablas referenciadas
<#if-has-child-table#> Yes 현재 테이블을 참조하는 테이블이 하나라도 있는 경우 <#end-if-has-child-table#> 까지의 템플릿 적용 Apply the template up to <#end-if-has-child-table#> if the current table has any child tables Aplica la plantilla hasta <#end-if-has-child-table#> si la tabla actual tiene tablas hijas
<#if-any-types-CSV_OF_TYPES#> Yes 현재 테이블에 CSV 텍스트에 포함된 타입의 칼럼이 하나라도 있는 경우 <#end-if#> 까지의 템플릿 적용 Apply the template up to <#end-if#> if the specified table has any columns of the type specified in the CSV text. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada tiene alguna columna del tipo especificado en el texto CSV. De lo contrario, salta al final de <#end-if#>.
<#if-no-types-CSV_OF_TYPES#> Yes 현재 테이블에 CSV 텍스트에 포함된 타입의 칼럼이 하나도 없는 경우 <#end-if#> 까지의 템플릿 적용. 있는 경우 <#end-if#>까지 건너뜀. Apply the template up to <#end-if#> if the specified table has no columns of the type specified in the CSV text. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada no tiene ninguna columna del tipo especificado en el texto CSV. De lo contrario, salta al final de <#end-if#>.
<#if-has-column-COLUMN_NAME#> Yes 현재 테이블에 지정된 칼럼이 있는 경우 <#end-if#> 까지의 템플릿 적용. 없는 경우 <#end-if#>까지 건너뜀. Apply the template up to <#end-if#> if the specified table has the specified column. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada tiene la columna especificada. De lo contrario, salta al final de <#end-if#>.
<#if-no-column-COLUMN_NAME#> Yes 현재 테이블에 지정된 칼럼이 없는 경우 <#end-if#> 까지의 템플릿 적용. 있는 경우 <#end-if#>까지 건너뜀. Apply the template up to <#end-if#> if the specified table has no the specified column. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada no tiene la columna especificada. De lo contrario, salta al final de <#end-if#>.
 

for-tables

모든 테이블에 대해 내부 템플릿 적용 Apply inner template to each and every table Aplica la plantilla interna a cada tabla
// AppModel.js import React from 'react'; import { atom, selector } from 'recoil'; // ############################# Data ############################################### <#for-tables= // ------------------- $table_name ------------------- const ${tableName}ListAtom = atom({default:[], key:'${tableName}List'}); export {${tableName}ListAtom}; const ${tableName}ItemAtom = atom({default:{}, key:'${tableName}Item'}); export {${tableName}ItemAtom}; #>

for-join-tables

UI에서 Join한 테이블마다 내부 템플릿 적용 Iterates every user-designated joining table to apply inner template Itera cada tabla de unión designada por el usuario para aplicar la plantilla interna
SELECT <#for-columns=$column_name, #> FROM <#table_name#> <#alias#><#for-join-tables=, $table_name $alias#> WHERE 1=1 <#for-join-keys=AND $alias1.$col_name1=$alias2.$col_name2 #>;

사용자 인터페이스에서는 선택한 테이블의 칼럼 외에 다른 테이블의 칼럼도 선택적으로 추가할 수 있습니다. 이렇게 선택된 칼럼들의 테이블들에 대해 내부 템플릿을 적용합니다.

내부 템플릿에서는 $table_name, $alias 등을 사용할 수 있습니다. 위 예시에 함께 사용된 <#for-join-keys#> 태그와 비교해 보시기 바랍니다.

외부태그로서만 사용할 수 있습니다.

In the user interface, you can optionally add columns from other tables in addition to the columns of the selected table. Apply the inner template to the tables of the selected columns.

In the inner template, you can use $table_name, $alias, and so on. Compare it with the <#for-join-keys#> tag used in the example above.

Can only be used as an external tag.

En la interfaz de usuario, puede agregar opcionalmente columnas de otras tablas además de las columnas de la tabla seleccionada. Aplica la plantilla interna a las tablas de las columnas seleccionadas.

En la plantilla interna, puede usar $table_name, $alias, y así sucesivamente. Compárelo con la etiqueta <#for-join-keys#> utilizada en el ejemplo anterior.

Solo se puede utilizar como etiqueta externa.

for-parent-tables

현재 테이블이 참조하는 모든 참조대상 테이블에 대해 내부 템플릿 적용 Apply inner template for every referenced table that the current table references Aplica la plantilla interna para cada tabla referenciada a la que hace referencia la tabla actual
<#for-parent-tables=import com.myorg.myproj.svc.<:TableName:>Service; #> @Service public class <#TableName#>ServiceImpl implements <#TableName#>Service { <#for-parent-tables=<:TableName:>Service <:tableName:>Service; #> ... }

for-child-tables

현재 테이블을 참조하는 모든 자식 테이블에 대해 내부 템플릿 적용 Apply inner template for every child table that references the current table Aplica la plantilla interna para cada tabla hija que hace referencia a la tabla actual
<#for-child-tables=import com.myorg.myproj.svc.<:TableName:>Service; #> @Service public class <#TableName#>ServiceImpl implements <#TableName#>Service { <#for-child-tables=<:TableName:>Service <:tableName:>Service; #> ... }

if-table

지정된 테이블이 뷰가 아닌 테이블일 경우 <#end-if-table#> 까지의 템플릿 적용 Apply the template up to <#end-if-table#> if the specified table is a table, not a view Aplica la plantilla hasta <#end-if-table#> si la tabla especificada es una tabla, no una vista
지정된 테이블이 뷰가 아닌 테이블일 경우 <#end-if-table#> 까지의 템플릿을 적용합니다. 만일 뷰라면 <#end-if-table#>까지 건너뜁니다.
Apply the template up to <#end-if-table#> if the specified table is a table, not a view. If it is a view, skip to the end of <#end-if-table#>.
Aplica la plantilla hasta <#end-if-table#> si la tabla especificada es una tabla, no una vista. Si es una vista, salta al final de <#end-if-table#>.

if-view

지정된 테이블이 뷰일 경우 <#end-if-view#> 까지의 템플릿 적용 Apply the template up to <#end-if-view#> if the specified table is a view Aplica la plantilla hasta <#end-if-view#> si la tabla especificada es una vista
지정된 테이블이 뷰일 경우 <#end-if-view#> 까지의 템플릿을 적용합니다. 만일 테이블이라면 <#end-if-view#>까지 건너뜁니다.
Apply the template up to <#end-if-view#> if the specified table is a view. If it is a table, skip to the end of <#end-if-view#>.
Aplica la plantilla hasta <#end-if-view#> si la tabla especificada es una vista. Si es una tabla, salta al final de <#end-if-view#>.

if-has-parent-table

현재 테이블이 참조하는 테이블이 하나라도 있는 경우 <#end-if-has-parent-table#> 까지의 템플릿 적용 Apply the template up to <#end-if-has-parent-table#> if the current table has any referenced tables Aplica la plantilla hasta <#end-if-has-parent-table#> si la tabla actual tiene tablas referenciadas
현재 테이블이 참조하는 테이블이 하나라도 있는 경우 <#end-if-has-parent-table#> 까지의 템플릿을 적용합니다. 참조하는 테이블이 없다면 <#end-if-has-parent-table#>까지 건너뜁니다.
Apply the template up to <#end-if-has-parent-table#> if the current table has any referenced tables. If there are no referenced tables, skip to the end of <#end-if-has-parent-table#>.
Aplica la plantilla hasta <#end-if-has-parent-table#> si la tabla actual tiene tablas referenciadas. Si no hay tablas referenciadas, salta al final de <#end-if-has-parent-table#>.

if-has-child-table

현재 테이블을 참조하는 테이블이 하나라도 있는 경우 <#end-if-has-child-table#> 까지의 템플릿 적용 Apply the template up to <#end-if-has-child-table#> if the current table has any child tables Aplica la plantilla hasta <#end-if-has-child-table#> si la tabla actual tiene tablas hijas
현재 테이블을 참조하는 테이블이 하나라도 있는 경우 <#end-if-has-child-table#> 까지의 템플릿을 적용합니다. 참조하는 테이블이 없다면 <#end-if-has-child-table#>까지 건너뜁니다.
Apply the template up to <#end-if-has-child-table#> if the current table has any child tables. If there are no child tables, skip to the end of <#end-if-has-child-table#>.
Aplica la plantilla hasta <#end-if-has-child-table#> si la tabla actual tiene tablas hijas. Si no hay tablas hij

if-any-types-CSV_OF_TYPES

현재 테이블에 CSV 텍스트에 포함된 타입의 칼럼이 하나라도 있는 경우 <#end-if#> 까지의 템플릿 적용 Apply the template up to <#end-if#> if the specified table has any columns of the type specified in the CSV text. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada tiene alguna columna del tipo especificado en el texto CSV. De lo contrario, salta al final de <#end-if#>.
<#if-any-types-any_geometry#> import com.myorg.myproj.GeoSpatialUtils; <#end-if#>

지정된 테이블의 칼럼들 중에 CSV 텍스트에 지정된 타입 중 하나라도 있는 경우 <#end-if#>까지의 템플릿을 적용합니다. 외부태그로만 사용할 수 있습니다.

CSV 텍스트에는 쉼표로 구분된 타입들을 입력합니다. 사용할 수 있는 타입들은 다음과 같습니다.

Apply the template up to <#end-if#> if the specified table has any columns of the type specified in the CSV text. Otherwise, skip to the end of <#end-if#>. Can only be used as an external tag.

Enter the types separated by commas in the CSV text. The types that can be used are as follows.

Aplica la plantilla hasta <#end-if#> si la tabla especificada tiene alguna columna del tipo especificado en el texto CSV. De lo contrario, salta al final de <#end-if#>. Solo se puede utilizar como etiqueta externa.

Ingrese los tipos separados por comas en el texto CSV. Los tipos que se pueden usar son los siguientes.

아래 타입들은 MySQL, MariaDB에서 사용할 수 있는 타입들을 예로 들었습니다. 하지만, 사용하는 데이터베이스에 따라 지원하는 타입이 다를 수 있으며, DbdbTap은 Oracle과 PostgreSQL의 타입도 지원합니다.

The following types are examples of types that can be used in MySQL, MariaDB. However, the supported types may vary depending on the database you are using, and DbdbTap also supports types of Oracle and PostgreSQL.

Los siguientes tipos son ejemplos de tipos que se pueden usar en MySQL, MariaDB. Sin embargo, los tipos admitidos pueden variar según la base de datos que esté utilizando, y DbdbTap también admite tipos de Oracle y PostgreSQL.

또한, DbdbTap은 MySQL이나 MariaDB가 아닌 데이터베이스의 경우 내부적으로 데이터 타입을 변환하여 사용합니다. 따라서, 타입 CSV에는 MySQL이나 MariaDB의 타입을 입력하여도 됩니다.
예를 들어, PostgreSQL의 경우 'character varying' 대신 'varchar'를 입력해도 됩니다.

Also, DbdbTap internally converts data types for databases other than MySQL or MariaDB. Therefore, you can enter the types of MySQL or MariaDB in the type CSV.
For example, in the case of PostgreSQL, you can enter 'varchar' instead of 'character varying'.

Además, DbdbTap convierte internamente los tipos de datos para bases de datos que no sean MySQL o MariaDB. Por lo tanto, puede ingresar los tipos de MySQL o MariaDB en el CSV de tipos.
Por ejemplo, en el caso de PostgreSQL, puede ingresar 'varchar' en lugar de 'character varying'.

'character varying'처럼 공백이 있는 경우에는 공백 대신 '+' 기호를 사용하여 'character+varying'과 같이 입력해야 합니다.

If there are spaces, such as 'character varying', you should use the '+' symbol instead of a space, and enter it as 'character+varying'.

Si hay espacios, como 'character varying', debe usar el símbolo '+' en lugar de un espacio, y ingresarlo como 'character+varying'.

외부 태그로만 사용할 수 있으며, 이 태그와 <#end-if#> 태그 사이의 템플릿은 내부 템플릿이 아닌 외부 템플릿 문법에 따라 작성해야 한다는 점을 유의하십시오.

Can only be used as an external tag. Note that the template between this tag and the <#end-if#> tag should be written according to the external template syntax, not the internal template syntax.

Solo se puede utilizar como etiqueta externa. Tenga en cuenta que la plantilla entre esta etiqueta y la etiqueta <#end-if#> debe escribirse de acuerdo con la sintaxis de la plantilla externa, no con la sintaxis de la plantilla interna.

Type 설명 Description Descripción 비고 Note Nota
any_number 모든 숫자 타입 All number types Todos los tipos de números any_int와 any_float를 합한 내용 Combination of any_int and any_float Combinación de any_int y any_float
any_int 모든 정수 타입 All integer types Todos los tipos enteros tinyint, smallint, mediumint, int, bigint, year
tinyint MariaDB, mySQL의 tinyint tinyint in MariaDB, mySQL tinyint en MariaDB, mySQL  
smallint MariaDB, mySQL의 smallint smallint in MariaDB, mySQL smallint en MariaDB, mySQL  
mediumint MariaDB, mySQL의 mediumint mediumint in MariaDB, mySQL mediumint en MariaDB, mySQL  
int MariaDB, mySQL의 int int in MariaDB, mySQL int en MariaDB, mySQL  
bigint MariaDB, mySQL의 bigint bigint in MariaDB, mySQL bigint en MariaDB, mySQL  
any_float 모든 실수 타입 All floating-point types Todos los tipos de punto flotante decimal, float, double
decimal MariaDB, mySQL의 decimal decimal in MariaDB, mySQL decimal en MariaDB, mySQL  
float MariaDB, mySQL의 float float in MariaDB, mySQL float en MariaDB, mySQL  
double MariaDB, mySQL의 double double in MariaDB, mySQL double en MariaDB, mySQL  
any_temporal 모든 시간 타입 All temporal types Todos los tipos temporales date, datetime, timestamp, time
any_datetime 모든 날짜/시간 타입 All date/time types Todos los tipos de fecha/hora datetime, timestamp
date MariaDB, mySQL의 date date in MariaDB, mySQL date en MariaDB, mySQL  
datetime MariaDB, mySQL의 datetime datetime in MariaDB, mySQL datetime en MariaDB, mySQL  
timestamp MariaDB, mySQL의 timestamp timestamp in MariaDB, mySQL timestamp en MariaDB, mySQL  
time MariaDB, mySQL의 time time in MariaDB, mySQL time en MariaDB, mySQL  
any_binary 모든 바이너리 타입 All binary types Todos los tipos binarios binary, varbinary, blob, tinyblob, mediumblob, longblob, bit
any_blob 모든 BLOB 타입 All BLOB types Todos los tipos BLOB blob, tinyblob, mediumblob, longblob
blob MariaDB, mySQL의 blob blob in MariaDB, mySQL blob en MariaDB, mySQL  
tinyblob MariaDB, mySQL의 tinyblob tinyblob in MariaDB, mySQL tinyblob en MariaDB, mySQL  
mediumblob MariaDB, mySQL의 mediumblob mediumblob in MariaDB, mySQL mediumblob en MariaDB, mySQL  
longblob MariaDB, mySQL의 longblob longblob in MariaDB, mySQL longblob en MariaDB, mySQL  
bit MariaDB, mySQL의 bit bit in MariaDB, mySQL bit en MariaDB, mySQL  
binary MariaDB, mySQL의 binary binary in MariaDB, mySQL binary en MariaDB, mySQL  
varbinary MariaDB, mySQL의 varbinary varbinary in MariaDB, mySQL varbinary en MariaDB, mySQL  
any_text 모든 텍스트 타입 All text types Todos los tipos de texto char, varchar, text, tinytext, mediumtext, longtext(clob), enum, set
char MariaDB, mySQL의 char char in MariaDB, mySQL char en MariaDB, mySQL  
varchar MariaDB, mySQL의 varchar varchar in MariaDB, mySQL varchar en MariaDB, mySQL  
text MariaDB, mySQL의 text text in MariaDB, mySQL text en MariaDB, mySQL  
tinytext MariaDB, mySQL의 tinytext tinytext in MariaDB, mySQL tinytext en MariaDB, mySQL  
mediumtext MariaDB, mySQL의 mediumtext mediumtext in MariaDB, mySQL mediumtext en MariaDB, mySQL  
longtext MariaDB, mySQL의 longtext longtext in MariaDB, mySQL longtext en MariaDB, mySQL clob
enum MariaDB, mySQL의 enum enum in MariaDB, mySQL enum en MariaDB, mySQL  
set MariaDB, mySQL의 set set in MariaDB, mySQL set en MariaDB, mySQL  
any_geometry 모든 공간 타입 All spatial types Todos los tipos espaciales geometry, geometrycollection, linestring, multilinestring, multipoint, multipolygon, point, polygon
geometry MariaDB, mySQL의 geometry geometry in MariaDB, mySQL geometry en MariaDB, mySQL  
geometrycollection MariaDB, mySQL의 geometrycollection geometrycollection in MariaDB, mySQL geometrycollection en MariaDB, mySQL  
linestring MariaDB, mySQL의 linestring linestring in MariaDB, mySQL linestring en MariaDB, mySQL  
multilinestring MariaDB, mySQL의 multilinestring multilinestring in MariaDB, mySQL multilinestring en MariaDB, mySQL  
multipoint MariaDB, mySQL의 multipoint multipoint in MariaDB, mySQL multipoint en MariaDB, mySQL  
multipolygon MariaDB, mySQL의 multipolygon multipolygon in MariaDB, mySQL multipolygon en MariaDB, mySQL  
point MariaDB, mySQL의 point point in MariaDB, mySQL point en MariaDB, mySQL  
polygon MariaDB, mySQL의 polygon polygon in MariaDB, mySQL polygon en MariaDB, mySQL  
Boolean boolean boolean boolean  

if-no-types-CSV_OF_TYPES

현재 테이블에 CSV 텍스트에 포함된 타입의 칼럼이 하나도 없는 경우 <#end-if#> 까지의 템플릿 적용. 있는 경우 <#end-if#>까지 건너뜀. Apply the template up to <#end-if#> if the specified table has no columns of the type specified in the CSV text. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada no tiene ninguna columna del tipo especificado en el texto CSV. De lo contrario, salta al final de <#end-if#>.
<#if-no-types-any_geometry#> // No geometry columns found in the table. <#end-if#>

<#if-any-types-CSV_OF_TYPES#> 태그의 정반대 기능을 합니다. 현재 테이블의 칼럼들 중에 CSV 텍스트에 지정된 타입 중 하나도 없는 경우 <#end-if#> 까지의 템플릿을 적용합니다. 타입이 하나라도 있는 경우 <#end-if#> 까지 건너뜁니다.

외부 태그로만 사용할 수 있으며, 이 태그와 <#end-if#> 태그 사이의 템플릿은 내부 템플릿이 아닌 외부 템플릿 문법에 따라 작성해야 한다는 점을 유의하십시오.

It is the opposite function of the <#if-any-types-CSV_OF_TYPES#> tag. If none of the columns in the current table have any of the types specified in the CSV text, apply the template up to <#end-if#>. Otherwise, skip to the end of <#end-if#>.

Can only be used as an external tag. Note that the template between this tag and the <#end-if#> tag should be written according to the external template syntax, not the internal template syntax.

Es la función opuesta de la etiqueta <#if-any-types-CSV_OF_TYPES#>. Si ninguna de las columnas de la tabla actual tiene alguno de los tipos especificados en el texto CSV, aplique la plantilla hasta <#end-if#>. De lo contrario, salta al final de <#end-if#>.

Solo se puede utilizar como etiqueta externa. Tenga en cuenta que la plantilla entre esta etiqueta y la etiqueta <#end-if#> debe escribirse de acuerdo con la sintaxis de la plantilla externa, no con la sintaxis de la plantilla interna.

if-has-column-COLUMN_NAME

현재 테이블에 지정된 칼럼이 있는 경우 <#end-if#> 까지의 템플릿 적용. 없는 경우 <#end-if#> 까지 건너뜀. Apply the template up to <#end-if#> if the specified column exists in the current table. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la columna especificada existe en la tabla actual. De lo contrario, salta al final de <#end-if#>.
<#if-has-column-use_yn#> public ResponseVo setUsage(Boolean use) { this.<#tableName#>Repository.setUsage(use); } <#end-if#>

현재 테이블의 칼럼 중에 COLUMN_NAME 부분에 지정한 것과 같은 이름의 칼럼이 있다면 <#end-if#> 까지의 템플릿을 적용합니다.

특정한 이름의 칼럼이 상당수의 테이블에 존재하고, 그 칼럼에 대해 일정한 패턴의 코드를 생성할 수 있을 때 사용합니다.
위 예제에서 볼 수 있는 것처럼 'use_yn'이라는 칼럼이 많은 테이블에 존재하고, UI에서부터 백엔드까지 모든 레이어에 사용여부를 설정하는 코드가 필요할 수 있습니다. 이 태그는 그런 경우에 사용할 수 있습니다.

외부 태그로만 사용할 수 있으며, 이 태그와 <#end-if#> 태그 사이의 템플릿은 내부 템플릿이 아닌 외부 템플릿 문법에 따라 작성해야 한다는 점을 유의하십시오.

If there is a column with the same name as specified in the COLUMN_NAME part among the columns of the current table, apply the template up to <#end-if#>.

It is used when a specific column name exists in a large number of tables, and when you can generate code with a certain pattern for that column.
Let's say, as you can see in the example above, the column 'use_yn' exists in many tables, and you may need code to set the usage status in all layers from the UI to the backend. This tag can be used in such cases.

Can only be used as an external tag. Note that the template between this tag and the <#end-if#> tag should be written according to the external template syntax, not the internal template syntax.

Si hay una columna con el mismo nombre que el especificado en la parte COLUMN_NAME entre las columnas de la tabla actual, aplique la plantilla hasta <#end-if#>.

Se utiliza cuando un nombre de columna específico existe en un gran número de tablas, y cuando se puede generar código con un cierto patrón para esa columna.
Digamos, como se puede ver en el ejemplo anterior, la columna 'use_yn' existe en muchas tablas, y es posible que necesite código para establecer el estado de uso en todas las capas, desde la interfaz de usuario hasta el backend. Esta etiqueta se puede utilizar en tales casos.

Solo se puede utilizar como etiqueta externa. Tenga en cuenta que la plantilla entre esta etiqueta y la etiqueta <#end-if#> debe escribirse de acuerdo con la sintaxis de la plantilla externa, no con la sintaxis de la plantilla interna.

if-no-column-COLUMN_NAME

현재 테이블에 지정된 칼럼이 없는 경우 <#end-if#> 까지의 템플릿 적용. 있는 경우 <#end-if#>까지 건너뜀. Apply the template up to <#end-if#> if the specified table has no the specified column. Otherwise, skip to the end of <#end-if#>. Aplica la plantilla hasta <#end-if#> si la tabla especificada no tiene la columna especificada. De lo contrario, salta al final de <#end-if#>.

현재 테이블의 칼럼 중에 COLUMN_NAME 부분에 지정한 것과 같은 이름의 칼럼이 없다면 <#end-if#> 까지의 템플릿을 적용합니다.

<#if-has-column-COLUMN_NAME#> 태그의 정반대 기능을 합니다.

외부 태그로만 사용할 수 있으며, 이 태그와 <#end-if#> 태그 사이의 템플릿은 내부 템플릿이 아닌 외부 템플릿 문법에 따라 작성해야 한다는 점을 유의하십시오.

If there is no column with the same name as specified in the COLUMN_NAME part among the columns of the current table, apply the template up to <#end-if#>.

It is the opposite function of the <#if-has-column-COLUMN_NAME#> tag.

Can only be used as an external tag. Note that the template between this tag and the <#end-if#> tag should be written according to the external template syntax, not the internal template syntax.

Si no hay una columna con el mismo nombre que el especificado en la parte COLUMN_NAME entre las columnas de la tabla actual, aplique la plantilla hasta <#end-if#>.

Es la función opuesta de la etiqueta <#if-has-column-COLUMN_NAME#>.

Solo se puede utilizar como etiqueta externa. Tenga en cuenta que la plantilla entre esta etiqueta y la etiqueta <#end-if#> debe escribirse de acuerdo con la sintaxis de la plantilla externa, no con la sintaxis de la plantilla interna.

단일 테이블용 태그 Tags for a single table Etiquetas para una sola tabla

소스코드 생성시 테이블을 지정하여 사용하는, 단순 정보를 출력하는 태그들입니다.

테이블명, 테이블 별칭 등을 출력하며, 내부태그로만 사용되는 ordinal-number를 제외하면 외부태그로도, 내부태그로도 사용할 수 있습니다.

Tags that output simple information by specifying a table when generating source code.

Prints the table name, table alias, etc., and except for the ordinal-number that is used only as an internal tag, it can be used as both an external and internal tag.

Etiquetas que generan información simple especificando una tabla al generar código fuente.

Imprime el nombre de la tabla, el alias de la tabla, etc., y excepto por el ordinal-number que se usa solo como etiqueta interna, se puede usar como etiqueta externa e interna.

태그 Tag Etiqueta 내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블
지정
Need a
Table
Necesita
una tabla
설명 Description Descripción
<#table-raw-name#> <:table-raw-name:> $table-raw-name Yes 데이터베이스에서 조회된 그대로의 테이블 이름 Table name as it is retrieved from the database Nombre de la tabla tal como se recupera de la base de datos
<#TABLE_NAME#> <:TABLE_NAME:> $TABLE_NAME Yes 대문자와 밑줄로 테이블이름 출력 Table name in all capital with underscores Nombre de la tabla en mayúsculas con guiones bajos
<#table_name#> <:table_name:> $table_name Yes 소문자와 밑줄로 테이블이름 출력 Table name in all lower case with underscores Nombre de la tabla en minúsculas con guiones bajos
<#Table_name#> <:Table_name:> $Table_name Yes 첫 글자는 대문자이고 나머지는 모두 소문자와 밑줄로 테이블이름 출력 Table name starting with a capital letter and the rest in lower case with underscores Nombre de la tabla que comienza con una letra mayúscula y el resto en minúsculas con guiones bajos
<#TABLE-NAME#> <:TABLE-NAME:> $TABLE-NAME Yes 대문자와 하이픈으로 테이블이름 출력 Table name in all capital with hyphens Nombre de la tabla en mayúsculas con guiones
<#table-name#> <:table-name:> $table-name Yes 소문자와 하이픈으로 테이블이름 출력 Table name in all lower case with hyphens Nombre de la tabla en minúsculas con guiones
<#TableName#> <:TableName:> $TableName Yes 파스칼 케이스로 테이블이름 출력 Table name in Pascal Case Nombre de la tabla en Pascal Case
<#tableName#> <:tableName:> $tableName Yes camel 케이스로 테이블이름 출력 Table name in camel Case Nombre de la tabla en caso camello
<#TABLENAME#> <:TABLENAME:> $TABLENAME Yes 대문자만으로 테이블이름 출력 Table name in all capital letters Nombre de la tabla en mayúsculas
<#tablename#> <:tablename:> $tablename Yes 소문자만으로 테이블이름 출력 Table name in all lower case Nombre de la tabla en minúsculas
<#table-logical-name#> <:table-logical-name:> $table-logical-name Yes 테이블의 논리적 이름 Logical name of the table Nombre lógico de la tabla
<#table-type#> <:table-type:> $table-type Yes 문자열 TABLE 또는 VIEW 출력 Prints string TABLE or VIEW Imprime la cadena TABLE o VIEW
<#alias#> <:alias:> $alias Yes 테이블의 alias 출력 Prints table alias Imprime el alias de la tabla
  <:ordinal-number:> $ordinal-number Yes for-*tables 형식의 테이블 iteration에서의 순번 Ordinal number in the iteration of for-*tables Número ordinal en la iteración de for-*tables
<#table-comment#> Yes 테이블의 주석 Comment of the table Comentario de la tabla

table-raw-name

데이터베이스에서 조회된 그대로의 테이블 이름 Table name as it is retrieved from the database Nombre de la tabla tal como se recupera de la base de datos
CREATE PROCEDURE pr_<#table_name#>_add(<#for-own-columns= IN p_$col_name TYPE OF $table-raw-name.$column-raw-name,#> IN p_reg_user_nid TYPE OF user_info.user_nid, OUT r_msg VARCHAR(400) ) COMMENT 'Add a <#table-raw-name#> record' BEGIN DECLARE C_PROC_NAME varchar(50) DEFAULT 'pr_<#table_name#>_add'; ... END;

데이터베이스에서 조회된 그대로의 테이블 이름을 출력합니다. SQL문을 만들기 위한 템플릿에서 사용됩니다.

Outputs the table name as it is retrieved from the database. You can use this tag in templates to create SQL statements.

Imprime el nombre de la tabla tal como se recupera de la base de datos. Puede usar esta etiqueta en plantillas para crear declaraciones SQL.

TABLE_NAME

대문자와 밑줄로 테이블이름 출력 Table name in all capital with underscores Nombre de la tabla en mayúsculas con guiones bajos
<#for-tables=-- DROP TABLE $TABLE_NAME; #>

테이블 이름을 대문자로 출력합니다. 중간에 있는 밑줄은 그대로 유지됩니다.

Outputs the table name in uppercase. Any underscores in the middle are left as is.

Imprime el nombre de la tabla en mayúsculas. Cualquier guion bajo en el medio se deja tal cual.

table_name

소문자와 밑줄로 테이블이름 출력 Table name in all lower case with underscores Nombre de la tabla en minúsculas con guiones bajos
<#for-tables=-- DROP TABLE $table_name; #>

테이블 이름을 소문자로 출력합니다. 중간에 있는 밑줄은 그대로 유지됩니다.

Outputs the table name in lowercase. Any underscores in the middle are left as is.

Imprime el nombre de la tabla en minúsculas. Cualquier guion bajo en el medio se deja tal cual.

Table_name

첫 글자는 대문자이고 나머지는 모두 소문자와 밑줄로 테이블이름 출력 Table name starting with a capital letter and the rest in lower case with underscores Nombre de la tabla que comienza con una letra mayúscula y el resto en minúsculas con guiones bajos

테이블 이름을 첫 글자는 대문자로, 나머지는 소문자로 출력합니다. 중간에 있는 밑줄은 그대로 유지됩니다.
만일 이 템플릿을 user_skill_set 테이블에 적용하면 User_skill_set로 변환됩니다.

Outputs the table name with the first letter in uppercase and the rest in lowercase. Any underscores in the middle are left as is.
If this template is applied to the table user_skill_set, it will be converted to User_skill_set.

Imprime el nombre de la tabla con la primera letra en mayúscula y el resto en minúsculas. Cualquier guion bajo en el medio se deja tal cual.
Si esta plantilla se aplica a la tabla user_skill_set, se convertirá en User_skill_set.

TABLE-NAME

대문자와 하이픈으로 테이블이름 출력 Table name in all capital with hyphens Nombre de la tabla en mayúsculas con guiones

테이블 이름을 대문자로 출력합니다. 중간에 있는 밑줄은 하이픈으로 대체됩니다.
만일 이 템플릿을 user_skill_set 테이블에 적용하면 USER-SKILL-SET로 변환됩니다.

Outputs the table name in uppercase. Any underscores in the middle are replaced with hyphens.
If this template is applied to the table user_skill_set, it will be converted to USER-SKILL-SET.

Imprime el nombre de la tabla en mayúsculas. Cualquier guion bajo en el medio se reemplaza por guiones.
Si esta plantilla se aplica a la tabla user_skill_set, se convertirá en USER-SKILL-SET.

table-name

소문자와 하이픈으로 테이블이름 출력 Table name in all lower case with hyphens Nombre de la tabla en minúsculas con guiones

테이블 이름을 소문자로 출력합니다. 중간에 있는 밑줄은 하이픈으로 대체됩니다.
만일 이 템플릿을 user_skill_set 테이블에 적용하면 user-skill-set로 변환됩니다.

Outputs the table name in lowercase. Any underscores in the middle are replaced with hyphens.
If this template is applied to the table user_skill_set, it will be converted to user-skill-set.

Imprime el nombre de la tabla en minúsculas. Cualquier guion bajo en el medio se reemplaza por guiones.
Si esta plantilla se aplica a la tabla user_skill_set, se convertirá en user-skill-set.

TableName

파스칼 케이스로 테이블이름 출력 Table name in Pascal Case Nombre de la tabla en Pascal Case
/** * VO class for <#table-type#> <#table_name#> */ @Data public class <#TableName#>Vo { ... }

테이블 이름을 파스칼 케이스로 출력합니다. 맨 첫 글자와 언더바 다음 글자는 대문자로 변환됩니다.

Outputs the table name in Pascal case. The first letter and the letter following the underscore are converted to uppercase.

Imprime el nombre de la tabla en Pascal case. La primera letra y la letra siguiente al guion bajo se convierten en mayúsculas.

tableName

camel 케이스로 테이블이름 출력 Table name in camel Case Nombre de la tabla en caso camello
// AppModel.js import React from 'react'; import { atom, selector } from 'recoil'; // ############################# Data ############################################### <#for-tables= // ------------------- $table_name ------------------- const ${tableName}ListAtom = atom({default:[], key:'${tableName}List'}); export {${tableName}ListAtom}; const ${tableName}ItemAtom = atom({default:{}, key:'${tableName}Item'}); export {${tableName}ItemAtom}; #>

테이블 이름을 camel 케이스로 출력합니다. 중간에 있는 언더바는 삭제되며 언더바 다음 글자는 대문자로 변환됩니다.

Outputs the table name in camel case. Any underscores in the middle are removed, and the letter following the underscore is converted to uppercase.

Imprime el nombre de la tabla en caso camello. Cualquier guion bajo en el medio se elimina, y la letra siguiente al guion bajo se convierte en mayúscula.

TABLENAME

대문자만으로 테이블이름 출력 Table name in all capital letters Nombre de la tabla en mayúsculas

테이블 이름을 대문자로 출력합니다. 중간에 있는 언더바도 삭제됩니다.
만일 이 템플릿을 user_skill_set 테이블에 적용하면 USERSKILLSET로 변환됩니다.

Outputs the table name in uppercase. Any underscores in the middle are also removed.
If this template is applied to the table user_skill_set, it will be converted to USERSKILLSET.

Imprime el nombre de la tabla en mayúsculas. Cualquier guion bajo en el medio también se elimina.
Si esta plantilla se aplica a la tabla user_skill_set, se convertirá en USERSKILLSET.

tablename

소문자만으로 테이블이름 출력 Table name in all lower case Nombre de la tabla en minúsculas

테이블 이름을 소문자로 출력합니다. 중간에 있는 언더바도 삭제됩니다.
만일 이 템플릿을 user_skill_set 테이블에 적용하면 userskillset로 변환됩니다.

Outputs the table name in lowercase. Any underscores in the middle are also removed.
If this template is applied to the table user_skill_set, it will be converted to userskillset.

Imprime el nombre de la tabla en minúsculas. Cualquier guion bajo en el medio también se elimina.
Si esta plantilla se aplica a la tabla user_skill_set, se convertirá en userskillset.

table-logical-name

테이블의 논리적 이름 Logical name of the table Nombre lógico de la tabla

테이블의 논리적 이름을 출력합니다.
스키마 정보를 가져온 후 데이터베이스 뷰에서 사용자가 추가로 입력한 테이블의 논리적 이름입니다.

Outputs the logical name of the table.
It is the logical name of the table that was added by user in the database view after fetching the schema information.

Imprime el nombre lógico de la tabla.
Es el nombre lógico de la tabla que fue agregado por el usuario en la vista de la base de datos después de obtener la información del esquema.

table-type

문자열 TABLE 또는 VIEW 출력 Prints string TABLE or VIEW Imprime la cadena TABLE o VIEW
/** * VO class for <#table-type#> <#table_name#> */ @Data public class <#TableName#>Vo { ... }

alias

테이블의 alias 출력 Prints table alias Imprime el alias de la tabla
SELECT <#for-columns=$alias.$col_name, #>FROM <#table_name#>.<#alias#>;

SQL문에서 사용되는 테이블의 별칭을 출력합니다.

Outputs the alias of the table used in the SQL statement.

Imprime el alias de la tabla utilizado en la declaración SQL.

ordinal-number

for-*tables 형식의 테이블 iteration에서의 순번 Ordinal number in the iteration of for-*tables Número ordinal en la iteración de for-*tables
// AppModel.js import React from 'react'; import { atom, selector } from 'recoil'; // ############################# Data ############################################### <#for-tables= // ------------------- $ordinal-number. $table_name ------------------- const ${tableName}ListAtom = atom({default:[], key:'${tableName}List'}); export {${tableName}ListAtom}; const ${tableName}ItemAtom = atom({default:{}, key:'${tableName}Item'}); export {${tableName}ItemAtom}; #>

테이블을 iteration하는 순서를 1부터 시작하여 출력합니다.
다른 태그와 달리 외부태그로 사용할 수 없습니다.

Outputs the order of iteration of the tables starting from 1.
Unlike other tags, it cannot be used as an external tag.

Muestra el orden de iteración de las tablas comenzando desde 1.
A diferencia de otras etiquetas, no se puede utilizar como etiqueta externa.

table-comment

테이블의 주석 Comment of the table Comentario de la tabla

테이블의 주석을 출력합니다. 내부 태그로는 사용할 수 없습니다.

Outputs the comment of the table. It cannot be used as an internal tag.

Imprime el comentario de la tabla. No se puede utilizar como etiqueta interna.

칼럼 iteration 태그 Column iteration tags Etiquetas de iteración de columnas

특정 테이블의 칼럼들에 대해 iteration 작업을 수행하며 내부템플릿을 적용하는 태그들입니다.

Tags for iterating over columns of a designated table and applying inner templates.

Etiquetas para iterar sobre columnas de una tabla designada y aplicar plantillas internas.

태그 Tag Etiqueta 테이블 지정 Need a Table Necesita una tabla 설명 Description Descripción
<#for-columns#> Yes 테이블의 모든 칼럼에 대해 내부 템플릿 적용 (Join 칼럼 포함) Apply inner template for every column of the table (including join columns) Aplica la plantilla interna para cada columna de la tabla (incluidas las columnas de unión)
<#for-own-columns#> Yes 테이블의 자체 칼럼에 대해 내부 템플릿 적용 (Join 칼럼 제외) Apply inner template for the own columns of the table (excluding join columns) Aplica la plantilla interna para las columnas propias de la tabla (excluyendo las columnas de unión)
<#for-no-key-own-columns#> Yes 테이블의 자체 칼럼 중 primary key에 속하지 않는 것들에 대해 내부 템플릿 적용(Join 칼럼 제외) Apply inner template for the columns of the table itself that do not belong to the primary key (excluding joining columns) Aplica la plantilla interna para las columnas de la tabla misma que no pertenecen a la clave primaria (excluyendo columnas de unión)
<#for-key-columns#> Yes 테이블의 primary key에 속하는 칼럼들에 대해 내부 템플릿 적용 Apply inner template for columns belonging to the primary key of the table Aplica la plantilla interna para las columnas que pertenecen a la clave primaria de la tabla
<#for-keys#> Yes <#for-key-columns#>와 같음 Same as <#for-key-columns#> Igual que <#for-key-columns#>
<#for-no-key-columns#> Yes 테이블의 primary key에 속하지 않는 칼럼들에 대해 내부 템플릿 적용 Apply inner template for columns not belonging to the primary key of the table Aplica la plantilla interna para las columnas que no pertenecen a la clave primaria de la tabla
<#for-no-keys#> Yes <#for-no-key-columns#>와 같음 Same as <#for-no-key-columns#> Igual que <#for-no-key-columns#>
<#for-every-CSV_OF_TYPES#> Yes CSV에 명시된 모든 타입에 해당하는 칼럼마다 내부 템플릿 적용하기 Apply inner template for every column of types in the CSV text Aplica la plantilla interna para cada columna de los tipos en el texto CSV
<#for-all-but-CSV_OF_TYPES#> Yes CSV에 명시된 타입에 해당하지 않는 모든 칼럼마다 내부 템플릿 적용하기 Apply inner template for every column of types NOT in the CSV text Aplica la plantilla interna para cada columna de los tipos NO en el texto CSV
<#for-join-keys#> Yes 테이블 조인을 위한 칼럼들마다 내부 템플릿 적용하기 Apply inner template for each joining keys Aplica la plantilla interna para cada clave de unión
<#for-columns-myFunction#> Yes 테이블의 모든 칼럼에 대해 사용자 정의 함수와 내부 템플릿 적용 (Join 칼럼 포함) Apply user-defined function and inner template for every column of the table (including join columns) Aplica la función definida por el usuario y la plantilla interna para cada columna de la tabla (incluidas las columnas de unión)
<#for-own-columns-myFunction#> Yes 테이블의 자체 칼럼에 대해 사용자 정의 함수와 내부 템플릿 적용 (Join 칼럼 제외) Apply user-defined function and inner template for the own columns of the table (excluding join columns) Aplica la función definida por el usuario y la plantilla interna para las columnas propias de la tabla (excluyendo las columnas de unión)
<#for-no-key-own-columns-myFunction#> Yes 테이블의 자체 칼럼 중 primary key에 속하지 않는 것들에 대해 사용자 정의 함수와 내부 템플릿 적용(Join 칼럼 제외) Apply user-defined function and inner template for the columns of the table itself that do not belong to the primary key (excluding joining columns) Aplica la función definida por el usuario y la plantilla interna para las columnas de la tabla misma que no pertenecen a la clave primaria (excluyendo columnas de unión)
<#for-key-columns-myFunction#> Yes 테이블의 primary key에 속하는 칼럼들에 대해 사용자 정의 함수와 내부 템플릿 적용 Apply user-defined function and inner template for columns belonging to the primary key of the table Aplica la función definida por el usuario y la plantilla interna para las columnas que pertenecen a la clave primaria de la tabla
<#for-keys-myFunction#> Yes <#for-key-columns-myFunction#>와 같음 Same as <#for-key-columns-myFunction#> Igual que <#for-key-columns-myFunction#>
<#for-no-key-columns-myFunction#> Yes 테이블의 primary key에 속하지 않는 칼럼들에 대해 사용자 정의 함수와 내부 템플릿 적용(Join 칼럼 포함) Apply user-defined function and inner template for columns not belonging to the primary key of the table (including join columns) Aplica la función definida por el usuario y la plantilla interna para las columnas que no pertenecen a la clave primaria de la tabla (incluidas las columnas de unión)
<#for-no-keys-myFunction#> Yes <#for-no-key-columns-myFunction#>와 같음 Same as <#for-no-key-columns-myFunction#> Igual que <#for-no-key-columns-myFunction#>
 

for-columns

테이블의 모든 칼럼에 대해 내부 템플릿 적용 (Join 칼럼 포함) Apply inner template for every column of the table (including join columns) Aplica la plantilla interna para cada columna de la tabla (incluidas las columnas de unión)
@Data public class ProjectInfoVo { public static final String TABLE_NAME = "<#table_name#>"; <#for-columns=protected $java-type $col_name; // $data-type #> }

테이블의 모든 칼럼에 대해 내부 템플릿을 적용합니다. 사용자 인터페이스에서 추가된 다른 테이블의 칼럼에 대해서도 적용됩니다.

Apply inner template for every column of the table. It also applies to columns of other tables added in the user interface.

Aplica la plantilla interna para cada columna de la tabla. También se aplica a las columnas de otras tablas añadidas en la interfaz de usuario.

for-own-columns

테이블의 자체 칼럼에 대해 내부 템플릿 적용 (Join 칼럼 제외) Apply inner template for the own columns of the table (excluding join columns) Aplica la plantilla interna para las columnas propias de la tabla (excluyendo las columnas de unión)

<#for-columns#> 태그와 동일하게 작동하지만, Join 칼럼은 제외합니다.

Works the same as the <#for-columns#> tag, but excludes join columns.

Funciona igual que la etiqueta <#for-columns#>, pero excluye las columnas de unión.

for-no-key-own-columns

테이블의 자체 칼럼 중 primary key에 속하지 않는 것들에 대해 내부 템플릿 적용 (Join 칼럼 제외) Apply inner template for the columns of the table itself that do not belong to the primary key (excluding joining columns) Aplica la plantilla interna para las columnas de la tabla misma que no pertenecen a la clave primaria (excluyendo columnas de unión)

<#for-own-columns#> 태그와 동일하게 작동하지만, primary key에 속하는 칼럼들은 제외합니다.

Works the same as the <#for-own-columns#> tag, but excludes columns belonging to the primary key.

Funciona igual que la etiqueta <#for-own-columns#>, pero excluye las columnas que pertenecen a la clave primaria.

for-key-columns 또는 or o for-keys

테이블의 primary key에 속하는 칼럼들에 대해 내부 템플릿 적용 Apply inner template for columns belonging to the primary key of the table Aplica la plantilla interna para las columnas que pertenecen a la clave primaria de la tabla
UPDATE <#table_name#> SET <#for-no-keys=$col_name=p_$col_name, #> WHERE <#for-keys=$col_name=p_$col_name and #>1=1;

테이블의 primary key에 속하는 칼럼들에 대해 내부 템플릿을 적용합니다. Primary key 칼럼에 대해 iteration 하는 것을 제외하면 <#for-columns#>와 같습니다.

Apply inner template for columns belonging to the primary key of the table. Except for iterating over primary key columns, it is the same as <#for-columns#>.

Aplica la plantilla interna para las columnas que pertenecen a la clave primaria de la tabla. Excepto por iterar sobre las columnas de la clave primaria, es lo mismo que <#for-columns#>.

for-no-key-columns 또는 or o for-no-keys

테이블의 primary key에 속하지 않는 칼럼들에 대해 내부 템플릿 적용(Join 칼럼 포함) Apply inner template for columns not belonging to the primary key of the table (including join columns) Aplica la plantilla interna para las columnas que no pertenecen a la clave primaria de la tabla (incluidas las columnas de unión)
UPDATE <#table_name#> SET <#for-no-keys=$col_name=p_$col_name, #> WHERE <#for-keys=$col_name=p_$col_name and #>1=1;

테이블의 primary key에 속하지 않는 칼럼들에 대해 내부 템플릿을 적용합니다. <#for-keys#>와 반대로 동작합니다.

Apply inner template for columns not belonging to the primary key of the table. It works in the opposite way to <#for-keys#>.

Aplica la plantilla interna para las columnas que no pertenecen a la clave primaria de la tabla. Funciona de manera opuesta a <#for-keys#>.

for-every-CSV_OF_TYPES

CSV에 명시된 모든 타입에 해당하는 칼럼마다 내부 템플릿 적용하기 Apply inner template for every column of types in the CSV text Aplica la plantilla interna para cada columna de los tipos en el texto CSV
public class <#TableName#>Dto extends <#TableName#>Vo implements BaseInfoDto { ... <#for-every-any_number=// Number validation public boolean check$ColumnName(int minLen, int maxLen) { return Validator.check($columnName, minLen, maxLen); } #> }

CSV 내용에 명시된 타입의 칼럼들에만 적용한다는 것을 제외하면 <#for-columns#>와 같습니다.

Except for applying only to columns of the types specified in the CSV content, it is the same as <#for-columns#>.

Excepto por aplicar solo a columnas de los tipos especificados en el contenido CSV, es lo mismo que <#for-columns#>.

for-all-but-CSV_OF_TYPES

CSV에 명시된 타입에 해당하지 않는 모든 칼럼마다 내부 템플릿 적용하기 Apply inner template for every column of types NOT in the CSV text Aplica la plantilla interna para cada columna de los tipos NO en el texto CSV
public class <#TableName#>Dto extends <#TableName#>Vo implements BaseInfoDto { ... <#for-all-but-any_number=// Validate public boolean check$ColumnName(boolean nullable, int minLen, int maxLen) { return Validator.check($columnName, minLen, maxLen, nullable); } #> }

CSV 내용에 명시된 타입이 아닌 칼럼들에만 적용한다는 것을 제외하면 <#for-every-CSV_OF_TYPES#>와 같습니다.

Except for applying only to columns that are not of the types specified in the CSV content, it is the same as <#for-every-CSV_OF_TYPES#>.

Excepto por aplicar solo a columnas que no son de los tipos especificados en el contenido CSV, es lo mismo que <#for-every-CSV_OF_TYPES#>.

for-join-keys

테이블 조인을 위한 칼럼들마다 내부 템플릿 적용하기 Apply inner template for each joining keys Aplica la plantilla interna para cada clave de unión
SELECT <#for-columns=$column_name, #> FROM <#table_name#> <#alias#><#for-join-tables=, $table_name $alias#> WHERE 1=1 <#for-join-keys=AND $alias1.$col_name1=$alias2.$col_name2 #>;

사용자 인터페이스에서는 선택한 테이블의 칼럼 외에 다른 테이블의 칼럼도 선택적으로 추가할 수 있습니다. 추가된 다른 테이블의 칼럼들도 <#for-columns#> 태그에 의해 iteration됩니다.
외부태그로서만 사용할 수 있는 <#for-join-keys#> 태그는 이렇게 선택된 칼럼들에 대해 내부 템플릿을 적용합니다.

위 예시에 함께 사용된 <#for-join-tables#> 태그와 비교해 보시기 바랍니다.

<#for-join-keys#> 태그 내부에서 사용할 수 있는 내부태그는 다음과 같습니다. 아래 테이블에서는 표현형식 $inner-tag만을 사용했으나 <:inner-tag:> 표현형식도 사용 가능합니다.

In the user interface, you can optionally add columns from other tables in addition to the columns of the selected table. The columns of the added other tables are also iterated by the <#for-columns#> tag.
The <#for-join-keys#> tag, which can only be used as an external tag, applies the inner template to these selected columns.

Compare it with the <#for-join-tables#> tag used in the example above.

The inner tags that can be used inside the <#for-join-keys#> tag are as follows. In the table above, only the expression format $inner-tag was used, but the expression format <:inner-tag:> can also be used.

En la interfaz de usuario, puede agregar opcionalmente columnas de otras tablas además de las columnas de la tabla seleccionada. Las columnas de las otras tablas agregadas también se iteran mediante la etiqueta <#for-columns#>.
La etiqueta <#for-join-keys#>, que solo se puede usar como etiqueta externa, aplica la plantilla interna a estas columnas seleccionadas.

Compárelo con la etiqueta <#for-join-tables#> utilizada en el ejemplo anterior.

Las etiquetas internas que se pueden usar dentro de la etiqueta <#for-join-keys#> son las siguientes. En la tabla anterior, solo se usó el formato de expresión $inner-tag, pero también se puede usar el formato de expresión <:inner-tag:>.

템플릿에 지정된 테이블 Table specified in the template Tabla especificada en la plantilla
테이블 이름 태그 Table Name Tag Etiqueta de nombre de tabla
$table-raw-name
$TABLE_NAME
$table_name
$Table_name
$TABLE-NAME
$table-name
$TableName
$tableName
$TABLENAME
$tablename
$alias
참조 대상 테이블 Referenced table Tabla referenciada
테이블 이름 태그 Table Name Tag Etiqueta de nombre de tabla
$table-raw-name1
$TABLE_NAME1
$table_name1
$Table_name1
$TABLE-NAME1
$table-name1
$TableName1
$tableName1
$TABLENAME1
$tablename1
$alias1
칼럼 이름 태그 Column Name Tag Etiqueta de nombre de columna
$column-raw-name1
$COLUMN_NAME1
$column_name1
$Column_name1
$COLUMN-NAME1
$column-name1
$ColumnName1
$columnName1
$COLUMNNAME1
$columnname1
참조하는 테이블 Referencing table Tabla de referencia
테이블 이름 태그 Table Name Tag Etiqueta de nombre de tabla
$table-raw-name2
$TABLE_NAME2
$table_name2
$Table_name2
$TABLE-NAME2
$table-name2
$TableName2
$tableName2
$TABLENAME2
$tablename2
$alias2
칼럼 이름 태그 Column Name Tag Etiqueta de nombre de columna
$column-raw-name2
$COLUMN_NAME2
$column_name2
$Column_name2
$COLUMN-NAME2
$column-name2
$ColumnName2
$columnName2
$COLUMNNAME2
$columnname2

참조 정보는 반드시 FOREIGN KEY 제약조건을 의미하지는 않습니다. 코드생성 엔진은 사용되는 테이블들 사이에 동일한 칼럼명을 가진 칼럼이 있을 경우 이를 조인키로 간주합니다.
왜냐하면, 실제 테이블 설계에 있어서 FOREIGN KEY 제약조건이 없더라도 동일한 칼럼명을 가진 칼럼들이 종종 조인키로 사용되기 때문입니다.

또한, 코드생성 엔진은 지정된 테이블들 사이의 모든 동일한 이름들을 조사하여 사용하기 때문에 실제 필요보다 더 많은 칼럼들이 조인키로 사용될 수 있다는 점을 유의하시기 바랍니다.

위 내부태그들 외에 아래 표에 나열된 내부태그들도 사용 가능합니다.

The reference information does not necessarily mean FOREIGN KEY constraints. The code generation engine considers columns with the same column name between the tables used as joining keys.
This is because, in actual table design, columns with the same column name are often used as joining keys even if there are no FOREIGN KEY constraints.

Also, the code generation engine examines all the same names between the specified tables and uses them, so please note that more columns than actually needed may be used as joining keys.

In addition to the above inner tags, the inner tags listed in the table below are also available.

La información de referencia no significa necesariamente restricciones de FOREIGN KEY. El motor de generación de código considera las columnas con el mismo nombre de columna entre las tablas utilizadas como claves de unión.
Esto se debe a que, en el diseño real de tablas, las columnas con el mismo nombre de columna a menudo se utilizan como claves de unión incluso si no hay restricciones de FOREIGN KEY.

Además, el motor de generación de código examina todos los mismos nombres entre las tablas especificadas y los utiliza, por lo que tenga en cuenta que se pueden utilizar más columnas de las necesarias como claves de unión.

Además de las etiquetas internas anteriores, también están disponibles las etiquetas internas enumeradas en la tabla a continuación.

Interation에서 사용 가능한 태그 Tags available in Interation Etiquetas disponibles en Interation
<:if-first=...any text...:>
<:if-not-first=...any text...:>
<:if-last=...any text...:>
<:if-not-last=...any text...:>
일반 태그 General Tags Etiquetas generales
$project-name, $root-package, $file-name 등 모든 일반 태그들 All general tags such as $project-name, $root-package, $file-name Todas las etiquetas generales como $project-name, $root-package, $file-name

for-columns-myFunction

테이블의 모든 칼럼에 대해 사용자 정의 함수와 내부 템플릿 적용 (Join 칼럼 포함) Apply user-defined function and inner template for every column of the table (including join columns) Aplica la función definida por el usuario y la plantilla interna para cada columna de la tabla (incluidas las columnas de unión)

<#for-columns#> 태그와 유사한 방식으로 동작합니다. 다만, 사용자 정의 함수를 호출한 값이 내부 템플릿을 적용한 값과 합쳐져서 출력됩니다.

사용자 함수가 없으면 오류메시지가 결과값으로 출력됩니다.
사용자 함수로부터 null 또는 undefined 또는 빈 문자열이 반환되면 내부 템플릿도 처리되지 않습니다. 즉, 반환되는 값이 길이를 갖는 문자열인 경우에만 내부 템플릿이 적용된 내용과 합쳐져서 반영됩니다.

It works in a similar way to the <#for-columns#> tag. However, the value obtained by calling the user-defined function is combined with the value obtained by applying the inner template and then displayed.

If there is no user function, an error message is output as the result value.
If null, undefined, or an empty string is returned from the user function, the inner template is not processed. That is, the content to which the inner template is applied is combined with the returned value only when the returned value is a string with a length.

Funciona de manera similar a la etiqueta <#for-columns#>. Sin embargo, el valor obtenido al llamar a la función definida por el usuario se combina con el valor obtenido al aplicar la plantilla interna y se muestra.

Si no hay una función de usuario, se muestra un mensaje de error como el valor del resultado.
Si se devuelve null, undefined o una cadena vacía desde la función de usuario, la plantilla interna no se procesa. Es decir, el contenido al que se aplica la plantilla interna se combina con el valor devuelto solo cuando el valor devuelto es una cadena con longitud.

사용자정의함수에 대해서는 아래에 별도로 설명되어 있습니다.

The user-defined function is described separately below.

La función definida por el usuario se describe por separado a continuación.

for-own-columns-myFunction

<#for-columns-myFunction#>과 유사하게 동작합니다. 단, Join한 테이블의 칼럼은 제외하고 테이블의 자체 칼럼에 대해서만 함수와 템플릿을 적용합니다.

It works similarly to <#for-columns-myFunction#>. However, it applies the function and template only to the table's own columns, excluding the columns of the joined table.

Funciona de manera similar a <#for-columns-myFunction#>. Sin embargo, aplica la función y la plantilla solo a las columnas propias de la tabla, excluyendo las columnas de la tabla unida.

for-no-key-own-columns-myFunction

<#for-own-columns-myFunction#>과 유사하게 동작합니다. 단, primary key에 속한 칼럼들은 제외합니다.

It works similarly to <#for-own-columns-myFunction#>. However, it excludes the columns belonging to the primary key.

Funciona de manera similar a <#for-own-columns-myFunction#>. Sin embargo, excluye las columnas que pertenecen a la clave primaria.

for-key-columns-myFunction 또는 or o for-keys-myFunction

테이블의 primary key에 속하는 칼럼들에 대해 사용자 정의 함수와 내부 템플릿 적용 Apply user-defined function and inner template for columns belonging to the primary key of the table Aplica la función definida por el usuario y la plantilla interna para las columnas que pertenecen a la clave primaria de la tabla

<#for-key-columns#> / <#for-keys#> 태그와 유사한 방식으로 동작합니다. 다만, 사용자 정의 함수를 호출한 값이 내부 템플릿을 적용한 값과 합쳐져서 출력됩니다.
<#for-columns-myFunction#> 설명을 참조하세요.

It works in a similar way to the <#for-key-columns#> / <#for-keys#> tag. However, the value obtained by calling the user-defined function is combined with the value obtained by applying the inner template and then displayed.
See the description of <#for-columns-myFunction#>.

Funciona de manera similar a la etiqueta <#for-key-columns#> / <#for-keys#>. Sin embargo, el valor obtenido al llamar a la función definida por el usuario se combina con el valor obtenido al aplicar la plantilla interna y se muestra.
Consulte la descripción de <#for-columns-myFunction#>.

for-no-key-columns-myFunction 또는 or o for-no-keys-myFunction

테이블의 primary key에 속하지 않는 칼럼들에 대해 사용자 정의 함수와 내부 템플릿 적용 (Join 칼럼 포함) Apply user-defined function and inner template for columns not belonging to the primary key of the table (including join columns) Aplica la función definida por el usuario y la plantilla interna para las columnas que no pertenecen a la clave primaria de la tabla (incluidas las columnas de unión)

<#for-no-keys#> 태그와 유사한 방식으로 동작합니다. 다만, 사용자 정의 함수를 호출한 값이 내부 템플릿을 적용한 값과 합쳐져서 출력됩니다.
<#for-columns-myFunction#> 설명을 참조하세요.

It works in a similar way to the <#for-no-keys#> tag. However, the value obtained by calling the user-defined function is combined with the value obtained by applying the inner template and then displayed.
See the description of <#for-columns-myFunction#>.

Funciona de manera similar a la etiqueta <#for-no-keys#>. Sin embargo, el valor obtenido al llamar a la función definida por el usuario se combina con el valor obtenido al aplicar la plantilla interna y se muestra.
Consulte la descripción de <#for-columns-myFunction#>.

사용자 정의 함수 User-defined Functions Funciones definidas por el usuario

위의 <#for-columns-myFunction#>, <#for-key-columns-myFunction#>, <#for-keys-myFunction#>, <#for-own-columns-myFunction#>, <#for-no-key-own-columns-myFunction#>, <#for-no-key-columns-myFunction#>, <#for-no-keys-myFunction#> 태그들은 사용자 정의 함수를 호출합니다.
사용자 정의 함수를 사용하기 전에 먼저 함수를 정의해야 합니다. 함수를 정의하려면 프로젝트를 열고 공통 스크립트 탭을 선택한 후 javascript 코드를 입력한 후 저장하면 됩니다.
DbdbTap은 저장 전에 코드를 검사하여 문법 오류가 있거나, 함수가 정의되지 않았거나, 기타 서비스가 금지하는 코드가 포함되어 있으면 저장을 거부합니다.

The <#for-columns-myFunction#>, <#for-key-columns-myFunction#>, <#for-keys-myFunction#>, <#for-own-columns-myFunction#>, <#for-no-key-own-columns-myFunction#>, <#for-no-key-columns-myFunction#>, and <#for-no-keys-myFunction#> tags call user-defined functions.
Before using a user-defined function, you must first define the function. To define a function, open the project, select the Common Scripts tab, enter the javascript code, and save it.
DbdbTap checks the code before saving it. If there are syntax errors, the function is not defined, or the code contains other codes that the service prohibits, the save is rejected.

Las etiquetas <#for-columns-myFunction#>, <#for-key-columns-myFunction#>, <#for-keys-myFunction#>, <#for-own-columns-myFunction#>, <#for-no-key-own-columns-myFunction#>, <#for-no-key-columns-myFunction#>, y <#for-no-keys-myFunction#> llaman a funciones definidas por el usuario.
Antes de usar una función definida por el usuario, primero debe definir la función. Para definir una función, abra el proyecto, seleccione la pestaña Scripts comunes, ingrese el código javascript y guárdelo.
DbdbTap verifica el código antes de guardarlo. Si hay errores de sintaxis, la función no está definida, o el código contiene otros códigos que el servicio prohíbe, el guardado se rechaza.

공통 스크립트 Common Scripts Scripts comunes

공통 스크립트는 프로젝트의 모든 멤버들이 모든 템플릿에서 사용할 수 있는 자바스크립트 함수들의 모음입니다.
공통 스크립트를 작성, 편집할 권한은 소유자와 매니저에 한정됩니다.
Common scripts are a collection of javascript functions that all members of the project can use in all templates.
The authority to write and edit common scripts is limited to the owner and managers.
Los scripts comunes son una colección de funciones javascript que todos los miembros del proyecto pueden usar en todas las plantillas.
La autoridad para escribir y editar scripts comunes está limitada al propietario y a los gerentes.

공통 스크립트는 타입변환을 재정의하거나 프로젝트의 모든 템플릿에서 칼럼들을 iterate하는 태그가 각 칼럼에 대해 실행할 수 있는 자바스크립트 함수들의 모음입니다.

타입변환 재정의와 관련한 설명은 <#config-type-myFunction#>에서 설명한 내용을 참조하시기 바랍니다.

예시에서, myFunc, myFunc2가 칼럼 iteration 태그에서 사용 가능한 함수들입니다. commonFunction은 필요할 경우 myFunc, myFunc2 등에서 호출할 수 있는 함수로서, 각자의 필요에 따라 생성할 수 있습니다.

주어진 인자는 코드 생성을 위해 판단해야 하는 정보들과 $column_name 태그에서 볼 수 있는 것과 같은 칼럼 또는 테이블 이름 등을 포함하고 있습니다. 그러한 정보들을 이용하여 출력할 텍스트를 생성하고 반환해야 합니다. 만일 반환값이 없거나 빈 문자열, null 또는 undefined이면 해당 칼럼에 대해서는 아무런 처리도 하지 않습니다. 아래 예시의 myFunc가 조건에 따라 칼럼에 대한 출력값을 결정하고 있습니다.

스크립트는 반드시 아래 예시와 같은 형식을 따라야 합니다. 또한, 아래에 정리된 내용을 준수해야 합니다.

Common scripts are a collection of javascript function you define to override type conversion or execute in iteration tags for columns in all templates of the project.

Refer to the description in <#config-type-myFunction#> for information on overriding type conversion.

In the example below, myFunc and myFunc2 are functions that can be used in iteration tags. commonFunction is a function that can be called in myFunc, myFunc2, etc. if necessary, and can be created according to your needs.

The given arguments include information that must be judged for code generation and columns or table names that can be seen in the $column_name tag. You must generate and return the text to display using such information. If there is no return value, an empty string, null, or undefined, no processing is done for that column at all. The myFunc in the example below determines the output value for the column according to the conditions.

The script must follow the format shown below. It must also comply with the contents listed below.

Los scripts comunes son una colección de funciones javascript que define para anular la conversión de tipos o ejecutar en etiquetas de iteración para columnas en todas las plantillas del proyecto.

Consulte la descripción en <#config-type-myFunction#> para información sobre la anulación de la conversión de tipos.

En el ejemplo a continuación, myFunc y myFunc2 son funciones que se pueden usar en etiquetas de iteración. commonFunction es una función que se puede llamar en myFunc, myFunc2, etc. si es necesario, y se puede crear según sus necesidades.

Los argumentos dados incluyen información que debe ser juzgada para la generación de código y columnas o nombres de tablas que se pueden ver en la etiqueta $column_name. Debe generar y devolver el texto a mostrar utilizando dicha información. Si no hay un valor de retorno, una cadena vacía, null o undefined, no se realiza ningún procesamiento para esa columna en absoluto. El myFunc en el ejemplo a continuación determina el valor de salida para la columna de acuerdo con las condiciones.

El script debe seguir el formato que se muestra a continuación. También debe cumplir con el contenido que se enumera a continuación.

  • 전체 스크립트를 '{', '}'로 감싸거나 function문 안에 선언하지 말아야 합니다.
  • 스크립트는 반드시 return문을 포함해야 하며, return문은 조건절 안에 있어서는 안됩니다.
  • 스크립트는 반드시 객체를 반환해야 하고, 객체는 반드시 함수(들)을 포함해야 합니다.
  • 칼럼 iteration 함수는 반드시 1개에서 3개까지의 인자를 받아야 하며, 인수는 칼럼정보, 테이블정보, 일반정보 순으로 받아야 합니다.
  • 타입변환 재정의를 위한 함수는 인수가 없으며 반드시 { language, map }객체를 반환해야 합니다.
    map은 역시 객체로서, 데이터베이스 타입을 키로 하고, 대상 언어의 타입을 값으로 하는 객체여야 합니다.
  • 금지된 식별자들과 for, while, async 키워드를 사용할 수 없습니다.
  • The script must not be enclosed in '{' and '}' or declared inside a function.
  • The script must include a return statement, and the return statement must not be inside a conditional statement.
  • The script must return an object, and the object must include function(s).
  • The column iteration function must receive 1 to 3 arguments, and the arguments must be received in the order of column information, table information, and general information.
  • The function for overriding type conversion must have no arguments and must return an object { language, map }.
    map must also be an object, with the database type as the key and the target language type as the value.
  • Prohibited identifiers and the for, while, async keywords cannot be used.
  • El script no debe estar encerrado en '{' y '}' o declarado dentro de una función.
  • El script debe incluir una declaración de retorno, y la declaración de retorno no debe estar dentro de una declaración condicional.
  • El script debe devolver un objeto, y el objeto debe incluir función(es).
  • La función de iteración de columna debe recibir de 1 a 3 argumentos, y los argumentos deben recibirse en el orden de la información de columna, la información de tabla y la información general.
  • La función para anular la conversión de tipos no debe tener argumentos y debe devolver un objeto { language, map }.
    map también debe ser un objeto, con el tipo de base de datos como clave y el tipo de lenguaje de destino como valor.
  • No se pueden utilizar identificadores prohibidos y las palabras clave for, while, async.
사용자 정의 함수 예 Example of User-defined Function Ejemplo de función definida por el usuario
const commonFunction = (c) => { return c.isNullable && !c.isPrimaryKey; }; return { myFunc: (column, table, commonInfo) => { if(commonFunction(column)) { return 'optional'; } }, myFunc2: (column, table, commonInfo) => { return 'Column is ' + column.column_name; } }

column 인수에 포함되는 정보 Information included in the column argument Información incluida en el argumento de columna

사용자 정의 함수에 전달되는 column 인수는 칼럼의 이름, 성격, 타입에 관한 정보 등이 포함됩니다. The column argument passed to the user-defined function includes information about the name, nature, and type of the column. El argumento de columna pasado a la función definida por el usuario incluye información sobre el nombre, naturaleza y tipo de la columna.
column 객체 속성 Property of Column Object Propiedad del objeto de column 설명 Description Descripción
table_name 테이블 이름 $table_name 형식 Table name in the format $table_name Nombre de tabla en el formato $table_name
type 칼럼 타입 Column type Tipo de columna
dataType 칼럼 타입. 다른 DBMS 타입을 MySQL/MariaDB 타입으로 변환한 것 Column type. Converted from other DBMS types to MySQL/MariaDB types Tipo de columna. Convertido de otros tipos de DBMS a tipos de MySQL/MariaDB
rawType 원래 DBMS 타입 Original DBMS type Tipo de DBMS original
columnType 칼럼 타입. ex) varchar(30), int(11), timestamp /* mariadb-5.3 Column type. ex) varchar(30), int(11), timestamp /* mariadb-5.3 Tipo de columna. ex) varchar(30), int(11), timestamp /* mariadb-5.3
characterMaximumLength varchar, char의 최대 길이 Maximum length of varchar, char Longitud máxima de varchar, char
numericPrecision 숫자의 총 자리수. Total number of digits in a number. Número total de dígitos en un número.
numericScale 부동소수점 수의 소수점 이하 자리수. Number of decimal places in a floating-point number. Número de decimales en un número de punto flotante.
max 칼럼의 최대값 또는 최대 길이 Maximum value or maximum length of the column Valor máximo o longitud máxima de la columna
columnDefault 칼럼 디폴트 값. 데이터베이스에 따라 가져오지 못할 수 있음 Column default value. May not be retrieved depending on the database Valor predeterminado de la columna. Puede que no se recupere dependiendo de la base de datos
comment 칼럼 커멘트 Column comment Comentario de columna
isAutoIncrement auto-increment 칼럼인지 여부(Boolean) Whether it is an auto-increment column(Boolean) Si es una columna de autoincremento(Boolean)
isPrimaryKey 프라이머리 키 칼럼인지 여부(Boolean) Whether it is a primary key column(Boolean) Si es una columna de clave primaria(Boolean)
isNullable 널 가능 칼럼인지 여부(Boolean) Whether it is a nullable column(Boolean) Si es una columna nula(Boolean)
isUnsigned unsigned 칼럼인지 여부(Boolean) Whether it is an unsigned column(Boolean) Si es una columna sin signo(Boolean)
ordinalInTable 테이블에서의 순서(1~N) Order in the table(1~N) Orden en la tabla(1~N)
isBoolean boolean 칼럼인지 여부(Boolean) Whether it is a boolean column(Boolean) Si es una columna booleana(Boolean)
COLUMN_NAME 칼럼 이름을 대문자와 언더스코어로 표현한 문자열 String representing the column name in uppercase with underscore Cadena que representa el nombre de la columna en mayúsculas con guion bajo
COLUMNNAME 칼럼 이름을 대문자로 표현한 문자열 String representing the column name in uppercase Cadena que representa el nombre de la columna en mayúsculas
column_name 칼럼 이름을 소문자와 언더스코어로 표현한 문자열 String representing the column name in lowercase with underscore Cadena que representa el nombre de la columna en minúsculas con guion bajo
Column_name 칼럼 이름을 첫 글자 대문자, 나머지는 소문자와 언더스코어로 표현한 문자열 String representing the column name in lowercase with the first letter capitalized and underscore Cadena que representa el nombre de la columna en minúsculas con la primera letra en mayúsculas y guion bajo
columnname 칼럼 이름을 소문자로 표현한 문자열 String representing the column name in lowercase Cadena que representa el nombre de la columna en minúsculas
ColumnName 칼럼 이름을 파스칼 표기법으로 표현한 문자열 String representing the column name in pascal case Cadena que representa el nombre de la columna en pascal case
columnName 칼럼 이름을 카멜 표기법으로 표현한 문자열 String representing the column name in camel case Cadena que representa el nombre de la columna en camel case
COL_NAME COLUMN_NAME과 같음 Same as COLUMN_NAME Igual que COLUMN_NAME
COLNAME COLUMNNAME과 같음 Same as COLUMNNAME Igual que COLUMNNAME
col_name column_name과 같음 Same as column_name Igual que column_name
Col_name Column_name과 같음 Same as Column_name Igual que Column_name
colname columnname과 같음 Same as columnname Igual que columnname
ColName ColumnName과 같음 Same as ColumnName Igual que ColumnName
colName columnName과 같음 Same as columnName Igual que columnName
rawName 원래 칼럼 이름 Original column name Nombre de columna original
logicalName 논리적 칼럼 이름 Logical column name Nombre de columna lógico
isTypeFloatingPoint 부동소수점 타입인지 여부(Boolean) Whether it is a floating point type(Boolean) Si es un tipo de punto flotante(Boolean)
isTypeInteger 정수 타입인지 여부(Boolean) Whether it is an integer type(Boolean) Si es un tipo entero(Boolean)
isTypeNumber 숫자 타입인지 여부(Boolean) Whether it is a number type(Boolean) Si es un tipo numérico(Boolean)
isTypeDate 날짜 타입인지 여부(Boolean) Whether it is a date type(Boolean) Si es un tipo de fecha(Boolean)
isTypeDateAndTime 날짜와 시간 타입인지 여부(Boolean) Whether it is a date and time type(Boolean) Si es un tipo de fecha y hora(Boolean)
isTypeTime 시간 타입인지 여부(Boolean) Whether it is a time type(Boolean) Si es un tipo de hora(Boolean)
isTypeTemporal 날짜, 시간 등의 타입인지 여부(Boolean) Whether it is a date, time, etc. type(Boolean) Si es un tipo de fecha, hora, etc.(Boolean)
isTypeBlob blob 타입인지 여부(Boolean) Whether it is a blob type(Boolean) Si es un tipo blob(Boolean)
isTypeBinary binary 타입인지 여부(Boolean) Whether it is a binary type(Boolean) Si es un tipo binario(Boolean)
isTypeText text 타입인지 여부(Boolean) Whether it is a text type(Boolean) Si es un tipo de texto(Boolean)
isTypeGeometry geometry 타입인지 여부(Boolean) Whether it is a geometry type(Boolean) Si es un tipo de geometría(Boolean)

table 인수에 포함되는 정보 Information included in the table argument Información incluida en el argumento de tabla

사용자 정의 함수에 전달되는 table 인수는 테이블의 이름, 타입에 관한 정보 등이 포함됩니다. The table argument passed to the user-defined function includes information about the name and type of the table. El argumento de tabla pasado a la función definida por el usuario incluye información sobre el nombre y tipo de la tabla.
table 객체 속성 Property of Table Object Propiedad del objeto de tabla 설명 Description Descripción
name 테이블 이름 Table name Nombre de tabla
alias 테이블 별칭 Table alias Alias de tabla
rawName 원래 테이블 이름 Original table name Nombre de tabla original
logicalName 논리적 테이블 이름 Logical table name Nombre de tabla lógico
comment 테이블 커멘트 Table comment Comentario de tabla
isView 뷰인지 여부(Boolean) Whether it is a view(Boolean) Si es una vista(Boolean)
lastOrdinalPosition 테이블의 마지막 칼럼 순서 Last column order of the table Último orden de columna de la tabla
columnCount 테이블의 칼럼 수 Number of columns in the table Número de columnas en la tabla
TABLE_NAME 테이블 이름을 대문자와 언더스코어로 표현한 문자열 String representing the table name in uppercase with underscore Cadena que representa el nombre de la tabla en mayúsculas con guion bajo
TABLENAME 테이블 이름을 대문자로 표현한 문자열 String representing the table name in uppercase Cadena que representa el nombre de la tabla en mayúsculas
table_name 테이블 이름을 소문자와 언더스코어로 표현한 문자열 String representing the table name in lowercase with underscore Cadena que representa el nombre de la tabla en minúsculas con guion bajo
Table_name 테이블 이름을 첫 글자 대문자, 나머지는 소문자와 언더스코어로 표현한 문자열 String representing the table name in lowercase with the first letter capitalized and underscore Cadena que representa el nombre de la tabla en minúsculas con la primera letra en mayúsculas y guion bajo
tablename 테이블 이름을 소문자로 표현한 문자열 String representing the table name in lowercase Cadena que representa el nombre de la tabla en minúsculas
TableName 테이블 이름을 파스칼 표기법으로 표현한 문자열 String representing the table name in pascal case Cadena que representa el nombre de la tabla en pascal case
tableName 테이블 이름을 카멜 표기법으로 표현한 문자열 String representing the table name in camel case Cadena que representa el nombre de la tabla en camel case

commonInfo 인수에 포함되는 정보 Information included in the commonInfo argument Información incluida en el argumento commonInfo

사용자 정의 함수에 전달되는 commonInfo 인수는 프로젝트 이름, 루트 패키지, 서브 패키지, 그룹명, 템플릿명 등의 정보가 포함됩니다. The commonInfo argument passed to the user-defined function includes information such as project name, root package, sub package, group name, and template name. El argumento commonInfo pasado a la función definida por el usuario incluye información como el nombre del proyecto, el paquete raíz, el paquete secundario, el nombre del grupo y el nombre de la plantilla.
commonInfo 객체 속성 Property of commonInfo Object Propiedad del objeto commonInfo 설명 Description Descripción
programmingLanguage 템플릿에서 사용된 프로그래밍 언어 Programming language used in the template Lenguaje de programación utilizado en la plantilla
userName 코드 생성 요청자의 사용자 이름 User name in the request of the translation Nombre de usuario en la solicitud de la traducción
projectName 프로젝트 이름 Project name Nombre del proyecto
rootPackage 루트 패키지 이름 Root package name Nombre del paquete raíz
subPackage 서브 패키지 이름 Sub package name Nombre del paquete secundario
groupName 템플릿의 그룹 이름 Group name of the template Nombre del grupo de la plantilla
templateName 템플릿 이름 Template name Nombre de la plantilla

공통 스크립트에서 사용할 수 없는 식별자, 키워드 Identifiers and keywords that cannot be used in common scripts Identificadores y palabras clave que no se pueden usar en scripts comunes

사용자와 서비스를 보호하기 위한 보안상의 이유로 다음의 식별자와 키워드는 사용할 수 없습니다. For security reasons to protect users and services, the following identifiers and keywords cannot be used. Por razones de seguridad para proteger a los usuarios y servicios, no se pueden utilizar los siguientes identificadores y palabras clave.

많은 식별자들을 사용할 수 없도록 되어 있지만 칼럼의 속성을 판별하고 문자열을 변환하거나 수학적인 연산에 필요한 일반적인 작업을 수행하여 필요한 코드를 생성하는 데는 문제가 없습니다.

Many identifiers are not allowed to be used, but there is no problem in generating the necessary code by performing common operations such as determining the properties of columns, converting strings, and performing mathematical operations.

Muchos identificadores no se permiten usar, pero no hay problema en generar el código necesario realizando operaciones comunes como determinar las propiedades de las columnas, convertir cadenas y realizar operaciones matemáticas.

  • window
  • document
  • navigator
  • screen
  • history
  • location
  • console
  • frames
  • parent
  • top
  • Function
  • Promise
  • Reflect
  • Proxy
  • eval
  • parseFloat
  • parseInt
  • decodeURI
  • decodeURIComponent
  • encodeURI
  • encodeURIComponent
  • XMLHttpRequest
  • fetch
  • WebSocket
  • Event
  • File
  • Blob
  • FormData
  • URL
  • URLSearchParams
  • Storage
  • CanvasRenderingContext2D
  • AudioContext
  • MediaStream
  • Notification
  • setTimeout
  • setInterval
  • clearTimeout
  • clearInterval
  • onload
  • onerror
  • onclick
  • onresize
  • onscroll
  • Infinity
  • NaN
  • undefined
  • globalThis
  • require
  • module
  • localStorage
  • sessionStorage
  • cookie
  • process
  • global
  • child_process
  • fs
  • net
  • os
  • path
  • vm
  • crypto
  • spawn
  • fork
  • execFile
  • exec
  • export
  • import
  • exports
  • alert
  • prompt
  • confirm
  • async
  • for
  • while

사용자 정의 상수 User-defined Constants Constantes definidas por el usuario

태그 Tag Etiqueta 내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블
지정
Need a
Table
Necesita
una tabla
설명 Description Descripción
<#const-yourConstantName#> <:const-yourConstantName:> $const-yourConstantName No 사용자 정의 상수 User-defined constant Constante definida por el usuario

프로젝트별로 사용할 수 있는 상수를 정의할 수 있습니다.
공통 스크립트 내에 __project_constant_map라는 이름의 함수를 선언하고, 상수 이름을 키로하고 상수 값을 값으로 하는 객체를 반환하면 됩니다.
상수의 타입은 문자열, 숫자, 불리언 등이 될 수 있습니다.

You can define constants that can be used for each project.
Declare a function named __project_constant_map in the common script and return an object with the constant name as the key and the constant value as the value.
The type of the constant can be a string, number, boolean, etc.

Puede definir constantes que se pueden utilizar para cada proyecto.
Declare una función llamada __project_constant_map en el script común y devuelva un objeto con el nombre de la constante como clave y el valor de la constante como valor.
El tipo de la constante puede ser una cadena, un número, un booleano, etc.

사용자 정의 상수 예 Example of User-defined Constants Ejemplo de constantes definidas por el usuario
const getProjectConstants = () => { return { projectVersion: "1.0.0", backendVersion: "1.1.8", frontendVersion: "0.3.5", organization: "Lab is Fun, Inc." }; }; return { __project_constant_map: () => getProjectConstants(), // Other functions... }

사용방법은 <#const-yourConstantName#>, <:const-yourConstantName:>, $const-yourConstantName과 같이 사용하면 됩니다.

You can use it as <#const-yourConstantName#>, <:const-yourConstantName:>, $const-yourConstantName.

Puede usarlo como <#const-yourConstantName#>, <:const-yourConstantName:>, $const-yourConstantName.

** * <#TABLE_NAME#> DTO * Project: <#project-name#> (<#const-projectVersion#>) * Copyright, <#const-organization#> */

칼럼 이름과 속성 Column Name and Properties Nombre de columna y propiedades

다양한 형식으로 출력할 수 있는 칼럼 이름 태그들과 칼럼 커멘트 표시용 태그입니다.
이 태그들은 내부태그로만 사용됩니다.

Tags for displaying column names in various formats and tags for displaying column comments.
These tags can only be used as internal tags.

Etiquetas para mostrar nombres de columnas en varios formatos y etiquetas para mostrar comentarios de columnas.
Estas etiquetas solo se pueden usar como etiquetas internas.

내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블 지정 Need a Table Necesita una tabla 설명 Description Descripción
<:column-raw-name:> $column-raw-name Yes 데이터베이스에서 조회된 그대로의 칼럼 이름 Column name as it is retrieved from the database Nombre de la columna tal como se recupera de la base de datos
<:COLUMN_NAME:> $COLUMN_NAME Yes 대문자와 밑줄로 칼럼명 출력 Column name in all capital with underscores Nombre de la columna en mayúsculas con guiones bajos
<:column_name:> $column_name Yes 소문자와 밑줄로 칼럼명 출력 Column name in all lower case with underscores Nombre de la columna en minúsculas con guiones bajos
<:COLUMN-NAME:> $COLUMN-NAME Yes 대문자와 하이픈으로 칼럼명 출력 Column name in all capital with hyphens Nombre de la columna en mayúsculas con guiones
<:column-name:> $column-name Yes 소문자와 하이픈으로 칼럼명 출력 Column name in all lower case with hyphens Nombre de la columna en minúsculas con guiones
<:ColumnName:> $ColumnName Yes 파스칼 케이스로 칼럼명 출력 Column name in Pascal Case Nombre de columna en Pascal Case
<:columnName:> $columnName Yes camel 케이스로 칼럼명 출력 Column name in camel Case Nombre de columna en caso camello
<:COLUMNNAME:> $COLUMNNAME Yes 대문자만으로 칼럼명 출력 Column name in all capital letters Nombre de la columna en mayúsculas
<:columnname:> $columnname Yes 소문자만으로 칼럼명 출력 Column name in all lower case Nombre de la columna en minúsculas
<:column-logical-name:> $column-logical-name Yes 칼럼의 논리적 이름 출력 Logical name of the column Nombre lógico de la columna
<:column-comment:> $column-comment Yes 칼럼의 주석 출력 Prints the comment of the column Imprime el comentario de la columna
<:max:> $max Yes 칼럼의 최대값 또는 최대 길이 Maximum value or maximum length of the column Valor máximo o longitud máxima de la columna
<:is-nullable:> $is-nullable Yes 칼럼이 NULL을 허용하는지 여부 Whether the column allows NULL Si la columna permite NULL
<:is-not-nullable:> $is-not-nullable Yes 칼럼이 NULL을 허용하지 않는지 여부 Whether the column does not allow NULL Si la columna no permite NULL
<:if-nullable=TEXT:> Yes 칼럼이 NULL을 허용하는 경우 내부 텍스트 출력 Prints inner text if the column allows NULL Imprime el texto interno si la columna permite NULL
<:if-not-nullable=TEXT:> Yes 칼럼이 NULL을 허용하지 않는 경우 내부 텍스트 출력 Prints inner text if the column does not allow NULL Imprime el texto interno si la columna no permite NULL
<:is-primary-key:> $is-primary-key Yes 칼럼이 primary key인지 여부 Whether the column is a primary key Si la columna es una clave primaria
<:is-not-primary-key:> $is-not-primary-key Yes 칼럼이 primary key가 아닌지 여부 Whether the column is not a primary key Si la columna no es una clave primaria
<:if-primary-key=TEXT:> Yes 칼럼이 primary key인 경우 내부 텍스트 출력 Prints inner text if the column is a primary key Imprime el texto interno si la columna es una clave primaria
<:if-not-primary-key=TEXT:> Yes 칼럼이 primary key가 아닌 경우 내부 텍스트 출력 Prints inner text if the column is not a primary key Imprime el texto interno si la columna no es una clave primaria
<:is-auto-increment:> $is-auto-increment Yes 칼럼이 auto increment인지 여부 Whether the column is auto increment Si la columna es auto incremento
<:if-auto-increment=TEXT:> Yes 칼럼이 auto increment인 경우 내부 텍스트 출력 Prints inner text if the column is auto increment Imprime el texto interno si la columna es auto incremento
 

column-raw-name

데이터베이스에서 조회된 그대로의 칼럼 이름 Column name as it is retrieved from the database Nombre de la columna tal como se recupera de la base de datos
CREATE PROCEDURE pr_<#table_name#>_add(<#for-own-columns= IN p_$col_name TYPE OF $table-raw-name.$column-raw-name,#> IN p_reg_user_nid TYPE OF user_info.user_nid, OUT r_msg VARCHAR(400) ) COMMENT 'Add a <#table-raw-name#> record' BEGIN DECLARE C_PROC_NAME varchar(50) DEFAULT 'pr_<#table_name#>_add'; ... END;

데이터베이스에서 조회된 그대로의 칼럼 이름을 출력합니다. SQL문에서 칼럼명을 그대로 사용하고자 할 때 유용합니다.

Prints the column name as it is retrieved from the database. Useful when you want to use the column name as it is in the SQL statement.

Imprime el nombre de la columna tal como se recupera de la base de datos. Útil cuando se desea utilizar el nombre de la columna tal como está en la instrucción SQL.

COLUMN_NAME

대문자와 밑줄로 칼럼명 출력 Column name in all capital with underscores Nombre de la columna en mayúsculas con guiones bajos
SELECT <#for-columns=$COL_NAME<:if-not-last=, :>#> FROM <#table_name#>;

칼럼명을 대문자와 밑줄로 출력합니다. 칼럼명 내의 언더바는 그대로 유지됩니다.
cat_or_dog 칼럼에 적용하면 CAT_OR_DOG이 됩니다.
간단하게 $COL_NAME이라고 표현할 수도 있습니다.

Prints the column name in all capital with underscores. Underscores in the column name are preserved.
If applied to the cat_or_dog column, it becomes CAT_OR_DOG.
It can also be expressed simply as $COL_NAME.

Imprime el nombre de la columna en mayúsculas con guiones bajos. Los guiones bajos en el nombre de la columna se conservan.
Si se aplica a la columna cat_or_dog, se convierte en CAT_OR_DOG.
También se puede expresar simplemente como $COL_NAME.

column_name

소문자와 밑줄로 칼럼명 출력 Column name in all lower case with underscores Nombre de la columna en minúsculas con guiones bajos
SELECT <#for-columns=$col_name<:if-not-last=, :>#> FROM <#table_name#>;

칼럼명을 소문자와 밑줄로 출력합니다. 칼럼명 내의 언더바는 그대로 유지됩니다.
CAT_OR_DOG 칼럼에 적용하면 cat_or_dog이 됩니다.
간단하게 $col_name이라고 표현할 수도 있습니다.

Prints the column name in all lower case with underscores. Underscores in the column name are preserved.
If applied to the CAT_OR_DOG column, it becomes cat_or_dog.
It can also be expressed simply as $col_name.

Imprime el nombre de la columna en minúsculas con guiones bajos. Los guiones bajos en el nombre de la columna se conservan.
Si se aplica a la columna CAT_OR_DOG, se convierte en cat_or_dog.
También se puede expresar simplemente como $col_name.

COLUMN-NAME

대문자와 하이픈으로 칼럼명 출력 Column name in all capital with hyphens Nombre de la columna en mayúsculas con guiones

칼럼명을 대문자와 하이픈으로 출력합니다. 칼럼명 내의 언더바는 하이픈으로 대체됩니다.
cat_or_dog 칼럼에 적용하면 CAT-OR-DOG이 됩니다.
간단하게 $COL-NAME이라고 표현할 수도 있습니다.

Prints the column name in all capital with hyphens. Underscores in the column name are replaced with hyphens.
If applied to the cat_or_dog column, it becomes CAT-OR-DOG.
It can also be expressed simply as $COL-NAME.

Imprime el nombre de la columna en mayúsculas con guiones. Los guiones bajos en el nombre de la columna se reemplazan por guiones.
Si se aplica a la columna cat_or_dog, se convierte en CAT-OR-DOG.
También se puede expresar simplemente como $COL-NAME.

column-name

소문자와 하이픈으로 칼럼명 출력 Column name in all lower case with hyphens Nombre de la columna en minúsculas con guiones

칼럼명을 소문자와 하이픈으로 출력합니다. 칼럼명 내의 언더바는 하이픈으로 대체됩니다.
cat_or_dog 칼럼에 적용하면 cat-or-dog이 됩니다.
간단하게 $col-name이라고 표현할 수도 있습니다.

Prints the column name in all lower case with hyphens. Underscores in the column name are replaced with hyphens.
If applied to the cat_or_dog column, it becomes cat-or-dog.
It can also be expressed simply as $col-name.

Imprime el nombre de la columna en minúsculas con guiones. Los guiones bajos en el nombre de la columna se reemplazan por guiones.
Si se aplica a la columna cat_or_dog, se convierte en cat-or-dog.
También se puede expresar simplemente como $col-name.

ColumnName

파스칼 케이스로 칼럼명 출력 Column name in Pascal Case Nombre de columna en Pascal Case
public class <#TableName#>Vo { // ... <#for-columns=public $java-type get$ColName() { return this.$colName; } #> }

칼럼명을 파스칼 케이스로 출력합니다. 칼럼명 내의 언더바는 삭제됩니다.
cat_or_dog 칼럼에 적용하면 CatOrDog이 됩니다.
간단하게 $ColName이라고 표현할 수도 있습니다.

Prints the column name in Pascal case. Underscores in the column name are removed.
If applied to the cat_or_dog column, it becomes CatOrDog.
It can also be expressed simply as $ColName.

Imprime el nombre de la columna en caso pascal. Los guiones bajos en el nombre de la columna se eliminan.
Si se aplica a la columna cat_or_dog, se convierte en CatOrDog.
También se puede expresar simplemente como $ColName.

columnName

camel 케이스로 칼럼명 출력 Column name in camel Case Nombre de columna en caso camello
public class <#TableName#>Vo { // ... <#for-columns=public $java-type get$ColName() { return this.$colName; } #> }

칼럼명을 camel 케이스로 출력합니다. 칼럼명 내의 언더바는 삭제됩니다.
cat_or_dog 칼럼에 적용하면 catOrDog이 됩니다.
간단하게 $colName이라고 표현할 수도 있습니다.

Prints the column name in camel case. Underscores in the column name are removed.
If applied to the cat_or_dog column, it becomes catOrDog.
It can also be expressed simply as $colName.

Imprime el nombre de la columna en caso camello. Los guiones bajos en el nombre de la columna se eliminan.
Si se aplica a la columna cat_or_dog, se convierte en catOrDog.
También se puede expresar simplemente como $colName.

COLUMNNAME

대문자만으로 칼럼명 출력 Column name in all capital letters Nombre de la columna en mayúsculas

대문자만으로 칼럼명을 출력합니다. 칼럼명 내의 언더바는 삭제됩니다.
cat_or_dog 칼럼에 적용하면 CATORDOG이 됩니다.
간단하게 $COLNAME이라고 표현할 수도 있습니다.

Prints the column name in all capital letters. Underscores in the column name are removed.
If applied to the cat_or_dog column, it becomes CATORDOG.
It can also be expressed simply as $COLNAME.

Imprime el nombre de la columna en mayúsculas. Los guiones bajos en el nombre de la columna se eliminan.
Si se aplica a la columna cat_or_dog, se convierte en CATORDOG.
También se puede expresar simplemente como $COLNAME.

columnname

소문자만으로 칼럼명 출력 Column name in all lower case Nombre de la columna en minúsculas

소문자만으로 칼럼명을 출력합니다. 칼럼명 내의 언더바는 삭제됩니다.
cat_or_dog 칼럼에 적용하면 catordog이 됩니다.
간단하게 $colname이라고 표현할 수도 있습니다.

Prints the column name in all lower case. Underscores in the column name are removed.
If applied to the cat_or_dog column, it becomes catordog.
It can also be expressed simply as $colname.

Imprime el nombre de la columna en minúsculas. Los guiones bajos en el nombre de la columna se eliminan.
Si se aplica a la columna cat_or_dog, se convierte en catordog.
También se puede expresar simplemente como $colname.

column-logical-name

칼럼의 논리적 이름 출력 Logical name of the column Nombre lógico de la columna

칼럼의 논리적 이름을 출력합니다. 논리적 이름은 스키마 정보를 가져온 후 사용자가 사이트 내 데이터베이스 화면에서 추가로 입력한 논리명입니다.

Prints the logical name of the column. The logical name is the name entered by the user on the database screen of the site after importing the schema information.

Imprime el nombre lógico de la columna. El nombre lógico es el nombre ingresado por el usuario en la pantalla de la base de datos del sitio después de importar la información del esquema.

column-comment

칼럼의 주석 출력 Prints the comment of the column Imprime el comentario de la columna
@Data public class ProjectInfoVo { //... <#for-columns=protected $java-type $colName; // $column-comment #> }

칼럼의 주석을 출력합니다.

Prints the comment of the column.

Imprime el comentario de la columna.

max

칼럼의 최대값 또는 최대 길이 Maximum value or maximum length of the column Valor máximo o longitud máxima de la columna

칼럼의 최대값 또는 최대 길이를 출력합니다.
숫자형 데이터의 경우 numeric scale과 precision이 주어진 경우 최대값을 계산하여 사용합니다.
문자열 데이터의 경우 문자열의 최대 길이를 출력합니다.
날짜, 시간, BLOB, TEXT 등의 데이터는 각각의 고유 타입에 따라 최대 길이를 출력합니다.
그 외 numeric scale과 precision이 확정되지 않은 숫자형 데이터나 기타 데이터 타입의 경우는 최대값을 계산할 수 없으므로 7777777777을 출력합니다. 이 숫자를 출력하는 이유는 null이 아닌 값을 출력하기 위한 것이며, 단순한 place holder의 역할을 위해서입니다.

Prints the maximum value or maximum length of the column.
For numeric data, the maximum value is calculated if the numeric scale and precision are given.
For string data, the maximum length of the string is output.
For data such as date, time, BLOB, and TEXT, the maximum length is output according to each unique type.
For other numeric data where the numeric scale and precision are not determined, or for other data types, the maximum value is calculated as 7777777777. The reason for outputting this number is to output a non-null value, and it is for the role of a simple place holder.

Imprime el valor máximo o la longitud máxima de la columna.
Para datos numéricos, se calcula el valor máximo si se proporciona la escala y precisión numéricas.
Para datos de cadena, se muestra la longitud máxima de la cadena.
Para datos como fecha, hora, BLOB y TEXTO, se muestra la longitud máxima según cada tipo único.
Para otros datos numéricos donde la escala y precisión numéricas no están determinadas, o para otros tipos de datos, el valor máximo se calcula como 7777777777. La razón de mostrar este número es mostrar un valor no nulo, y es para el papel de un simple marcador de posición.

is-nullable

칼럼이 NULL을 허용하는지 여부 Whether the column allows NULL Si la columna permite NULL

칼럼이 NULL을 허용하는지 여부를 출력합니다.
칼럼이 NULL을 허용하면 1, 그렇지 않으면 0를 출력합니다. 1은 'true', 0은 'false'로 해석할 수 있습니다. 1과 0을 사용하는 이유는 어떤 언어에서도 쉽게 처리할 수 있기 때문입니다.

Prints whether the column allows NULL.
If the column allows NULL, it outputs 1, otherwise it outputs 0. 1 can be interpreted as 'true' and 0 as 'false'. The reason for using 1 and 0 is because it can be easily handled in any language.

Imprime si la columna permite NULL.
Si la columna permite NULL, se muestra 1, de lo contrario se muestra 0. 1 se puede interpretar como 'true' y 0 como 'false'. La razón de usar 1 y 0 es porque se puede manejar fácilmente en cualquier lenguaje.

is-not-nullable

칼럼이 NULL을 허용하지 않는지 여부 Whether the column does not allow NULL Si la columna no permite NULL

칼럼이 NULL을 허용하지 않는지 여부를 출력합니다.
칼럼이 NULL을 허용하지 않으면 1, 그렇지 않으면 0를 출력합니다. 1은 'true', 0은 'false'로 해석할 수 있습니다.

Prints whether the column does not allow NULL.
If the column does not allow NULL, it outputs 1, otherwise it outputs 0. 1 can be interpreted as 'true' and 0 as 'false'.

Imprime si la columna no permite NULL.
Si la columna no permite NULL, se muestra 1, de lo contrario se muestra 0. 1 se puede interpretar como 'true' y 0 como 'false'.

if-nullable

칼럼이 NULL을 허용하는 경우 내부 텍스트 출력 Prints inner text if the column allows NULL Imprime el texto interno si la columna permite NULL

칼럼이 NULL을 허용하는 경우 내부 텍스트를 출력하고, 그렇지 않으면 출력하지 않습니다.

Prints inner text if the column allows NULL, otherwise it does not print.

Imprime el texto interno si la columna permite NULL, de lo contrario no imprime.

if-not-nullable

칼럼이 NULL을 허용하지 않는 경우 내부 텍스트 출력 Prints inner text if the column does not allow NULL Imprime el texto interno si la columna no permite NULL

칼럼이 NULL을 허용하지 않는 경우 내부 텍스트를 출력하고, 허용하면 출력하지 않습니다.

Prints inner text if the column does not allow NULL, otherwise it does not print.

Imprime el texto interno si la columna no permite NULL, de lo contrario no imprime.

is-primary-key

칼럼이 primary key인지 여부 Whether the column is a primary key Si la columna es una clave primaria

칼럼이 primary key인지 여부를 출력합니다.
칼럼이 primary key이면 1, 그렇지 않으면 0를 출력합니다. 1은 'true', 0은 'false'로 해석할 수 있습니다.

Prints whether the column is a primary key.
If the column is a primary key, it outputs 1, otherwise it outputs 0. 1 can be interpreted as 'true' and 0 as 'false'.

Imprime si la columna es una clave primaria.
Si la columna es una clave primaria, se muestra 1, de lo contrario se muestra 0. 1 se puede interpretar como 'true' y 0 como 'false'.

is-not-primary-key

칼럼이 primary key가 아닌지 여부 Whether the column is not a primary key Si la columna no es una clave primaria

칼럼이 primary key가 아닌지 여부를 출력합니다.
칼럼이 primary key가 아니면 1, primary key이면 0를 출력합니다.

Prints whether the column is not a primary key.
If the column is not a primary key, it outputs 1, otherwise it outputs 0.

Imprime si la columna no es una clave primaria.
Si la columna no es una clave primaria, se muestra 1, de lo contrario se muestra 0.

if-primary-key

칼럼이 primary key인 경우 내부 텍스트 출력 Prints inner text if the column is a primary key Imprime el texto interno si la columna es una clave primaria

칼럼이 primary key인 경우 내부 텍스트를 출력하고, 그렇지 않으면 출력하지 않습니다.

Prints inner text if the column is a primary key, otherwise it does not print.

Imprime el texto interno si la columna es una clave primaria, de lo contrario no imprime.

if-not-primary-key

칼럼이 primary key가 아닌 경우 내부 텍스트 출력 Prints inner text if the column is not a primary key Imprime el texto interno si la columna no es una clave primaria

칼럼이 primary key가 아닌 경우 내부 텍스트를 출력하고, 그렇지 않으면 출력하지 않습니다.

Prints inner text if the column is not a primary key, otherwise it does not print.

Imprime el texto interno si la columna no es una clave primaria, de lo contrario no imprime.

is-auto-increment

칼럼이 auto increment인지 여부 Whether the column is auto increment Si la columna es auto incremento

칼럼이 auto increment인지 여부를 출력합니다.
칼럼이 auto increment이면 1, 그렇지 않으면 0를 출력합니다. 1은 'true', 0은 'false'로 해석할 수 있습니다.

Prints whether the column is auto increment.
If the column is auto increment, it outputs 1, otherwise it outputs 0. 1 can be interpreted as 'true' and 0 as 'false'.

Imprime si la columna es auto incremento.
Si la columna es auto incremento, se muestra 1, de lo contrario se muestra 0. 1 se puede interpretar como 'true' y 0 como 'false'.

if-auto-increment

칼럼이 auto increment인 경우 내부 텍스트 출력 Prints inner text if the column is auto increment Imprime el texto interno si la columna es auto incremento

칼럼이 auto increment인 경우 내부 텍스트를 출력하고, 그렇지 않으면 출력하지 않습니다.

Prints inner text if the column is auto increment, otherwise it does not print.

Imprime el texto interno si la columna es auto incremento, de lo contrario no imprime.

데이터 타입 출력 Print Data Types Imprimir tipos de datos

템플릿에 지정된 프로그래밍 언어에 따라 칼럼의 데이터 타입을 출력합니다. 예를 들어, 테이블 스키마에서 칼럼의 데이터 타입이 'varchar(100)'이라면, Java 언어에서는 'String', Go 언어에서는 'string'으로 출력됩니다.
이 태그들은 내부태그로만 사용됩니다.

Displays the data type of a column according to the programming language specified in the template. For example, if the data type of a column in the table schema is 'varchar(100)', it will be displayed as 'String' in Java language and 'string' in Go language.
There is no external tag expression for these tags.

Muestra el tipo de datos de una columna según el lenguaje de programación especificado en la plantilla. Por ejemplo, si el tipo de datos de una columna en el esquema de la tabla es 'varchar(100)', se mostrará como 'String' en el lenguaje Java y 'string' en el lenguaje Go.
No hay expresión de etiqueta externa para estas etiquetas.

엔진은 데이터베이스 칼럼의 타입을 기초로하여 사용하는 언어의 타입으로 변환하여 출력합니다.
주목할 점은, 데이터베이스에서의 칼럼 타입이 날짜, 시간과 관련된 것이거나, polygon과 같은 geospatial한 데이터인 경우에는 각 언어의 문자열 타입으로 변환된다는 것입니다.

The engine converts the type of a database column to the type of the language used and displays it.
Note that if the column type in the database is related to date and time, or if it is geospatial data such as polygon, it is converted to a string type in each language.

El motor convierte el tipo de una columna de base de datos al tipo del lenguaje utilizado y lo muestra.
Tenga en cuenta que si el tipo de columna en la base de datos está relacionado con la fecha y la hora, o si es un dato geoespacial como un polígono, se convierte en un tipo de 'text' en cada lenguaje.

내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블 지정 Need a Table Necesita una tabla 설명 Description Descripción
<:data-type:> $data-type Yes 데이터베이스 내에서의 칼럼 타입. 속성 미포함. 실제 데이터베이스의 칼럼 타입을 MariaDB/MySQL 타입으로 전환한 것 Data type of a column in database. No attributes. Converted from actual database column type to MariaDB/MySQL type Tipo de datos de una columna en la base de datos. Sin atributos. Convertido del tipo de columna real de la base de datos al tipo de MariaDB/MySQL
<:raw-type:> $raw-type Yes 데이터베이스 내에서의 실제 칼럼 타입. 속성 미포함 Actual data type of a column in database. No attributes Tipo de datos real de una columna en la base de datos. Sin atributos
<:column-type:> $column-type Yes 데이터베이스 내에서의 칼럼 타입. 속성 포함 Data type of a column in database including attributes Tipo de datos de una columna en la base de datos incluyendo atributos
<:jdbc-type:> $jdbc-type Yes 칼럼의 JDBC 데이터 타입 JDBC data type of a column Tipo de datos JDBC de una columna
<:java-type:> $java-type Yes 칼럼의 Java 데이터 타입 Data type of a column in Java language Tipo de datos de una columna en el lenguaje Java
<:kotlin-type:> $kotlin-type Yes 칼럼의 Kotlin 데이터 타입 Data type of a column in Kotlin language Tipo de datos de una columna en el lenguaje Kotlin
<:cpp-type:> $cpp-type Yes 칼럼의 C++ 데이터 타입 Data type of a column in C++ language Tipo de datos de una columna en el lenguaje C++
<:csharp-type:> $csharp-type Yes 칼럼의 C# 데이터 타입 Data type of a column in C# language Tipo de datos de una columna en el lenguaje C#
<:swift-type:> $swift-type Yes 칼럼의 Swift 데이터 타입 Data type of a column in Swift language Tipo de datos de una columna en el lenguaje Swift
<:typescript-type:> $typescript-type Yes 칼럼의 TypeScript 데이터 타입 Data type of a column in TypeScript language Tipo de datos de una columna en el lenguaje TypeScript
<:dart-type:> $dart-type Yes 칼럼의 Dart 데이터 타입 Data type of a column in Dart language Tipo de datos de una columna en el lenguaje Dart
<:go-type:> $go-type Yes 칼럼의 Go 데이터 타입 Data type of a column in Go language Tipo de datos de una columna en el lenguaje Go
<:gql-type:> $gql-type Yes 칼럼의 GraphQL 데이터 타입 Data type of a column in GraphQL Tipo de datos de una columna en GraphQL
<:scala-type:> $scala-type Yes 칼럼의 Scala 데이터 타입 Data type of a column in Scala language Tipo de datos de una columna en el lenguaje Scala
<:rust-type:> $rust-type Yes 칼럼의 Rust 데이터 타입 Data type of a column in Rust language Tipo de datos de una columna en el lenguaje Rust
<:python-type:> $python-type Yes 칼럼의 Python 데이터 타입 Data type of a column in Python language Tipo de datos de una columna en el lenguaje Python
 

data-type

데이터베이스 내에서의 칼럼 타입. 속성 미포함. 실제 데이터베이스의 칼럼 타입을 MariaDB/MySQL 타입으로 전환한 것 Data type of a column in database. No attributes. Converted from actual database column type to MariaDB/MySQL type Tipo de datos de una columna en la base de datos. Sin atributos. Convertido del tipo de columna real de la base de datos al tipo de MariaDB/MySQL

데이터베이스 내에서의 칼럼 타입을 MariaDB/MySQL 타입으로 전환한 타입을 출력합니다.
예를 들어 PostgreSQL의 'varchar'는 데이터베이스 내부에서 'character varying'으로 표현됩니다.
DbdbTap은 이를 MariaDB/MySQL의 'varchar'으로 변환하여 사용하게 됩니다.
이 태그는 바로 이렇게 변환된 타입을 출력합니다.
속성을 포함하지 않습니다.

Prints the type converted from the actual database column type to the MariaDB/MySQL type.
For example, 'varchar' in PostgreSQL is represented as 'character varying' in the database.
DbdbTap will convert this to 'varchar' in MariaDB/MySQL and use it.
This tag outputs the type converted in this way.
Does not include attributes.

Imprime el tipo convertido del tipo de columna real de la base de datos al tipo de MariaDB/MySQL.
Por ejemplo, 'varchar' en PostgreSQL se representa como 'character varying' en la base de datos.
DbdbTap convertirá esto a 'varchar' en MariaDB/MySQL y lo usará.
Esta etiqueta imprime el tipo convertido de esta manera.
No incluye atributos.

raw-type

데이터베이스 내에서의 실제 칼럼 타입. 속성 미포함 Actual data type of a column in database. No attributes Tipo de datos real de una columna en la base de datos. Sin atributos

데이터베이스 내에서 표현되는 칼럼의 원시 타입을 출력합니다.
이러한 표현 방식을 정확하게 파악하기 위해 사용할 수 있습니다.
속성을 포함하지 않습니다.

Prints the raw type of a column represented in the database.
Can be used to accurately understand this representation.
Does not include attributes.

Imprime el tipo real de una columna representado en la base de datos.
Se puede utilizar para comprender con precisión esta representación.
No incluye atributos.

column-type

데이터베이스 내에서의 칼럼 타입. 속성 포함 Data type of a column in database including attributes Tipo de datos de una columna en la base de datos incluyendo atributos

데이터베이스 내에서의 칼럼 타입을 출력합니다. 속성을 포함합니다.

Prints the data type of a column in the database including attributes.

Imprime el tipo de datos de una columna en la base de datos incluyendo atributos.

jdbc-type

칼럼의 JDBC 데이터 타입 JDBC data type of a column Tipo de datos JDBC de una columna

칼럼의 데이터 타입에 대응되는 JDBC 데이터 타입을 출력합니다.

Prints the JDBC data type corresponding to the data type of a column.

Imprime el tipo de datos JDBC correspondiente al tipo de datos de una columna.

java-type

칼럼의 Java 데이터 타입 Data type of a column in Java language Tipo de datos de una columna en el lenguaje Java

칼럼의 데이터 타입에 대응되는 Java 데이터 타입을 출력합니다.

Prints the Java data type corresponding to the data type of a column.

Imprime el tipo de datos Java correspondiente al tipo de datos de una columna.

kotlin-type

칼럼의 Kotlin 데이터 타입 Data type of a column in Kotlin language Tipo de datos de una columna en el lenguaje Kotlin

칼럼의 데이터 타입에 대응되는 Kotlin 데이터 타입을 출력합니다.

Prints the Kotlin data type corresponding to the data type of a column.

Imprime el tipo de datos Kotlin correspondiente al tipo de datos de una columna.

cpp-type

칼럼의 C++ 데이터 타입 Data type of a column in C++ language Tipo de datos de una columna en el lenguaje C++

칼럼의 데이터 타입에 대응되는 C++ 데이터 타입을 출력합니다.

Prints the C++ data type corresponding to the data type of a column.

Imprime el tipo de datos C++ correspondiente al tipo de datos de una columna.

csharp-type

칼럼의 C# 데이터 타입 Data type of a column in C# language Tipo de datos de una columna en el lenguaje C#

칼럼의 데이터 타입에 대응되는 C# 데이터 타입을 출력합니다.

Prints the C# data type corresponding to the data type of a column.

Imprime el tipo de datos C# correspondiente al tipo de datos de una columna.

swift-type

칼럼의 Swift 데이터 타입 Data type of a column in Swift language Tipo de datos de una columna en el lenguaje Swift

칼럼의 데이터 타입에 대응되는 Swift 데이터 타입을 출력합니다.

Prints the Swift data type corresponding to the data type of a column.

Imprime el tipo de datos Swift correspondiente al tipo de datos de una columna.

typescript-type

칼럼의 TypeScript 데이터 타입 Data type of a column in TypeScript language Tipo de datos de una columna en el lenguaje TypeScript

칼럼의 데이터 타입에 대응되는 TypeScript 데이터 타입을 출력합니다.

Prints the TypeScript data type corresponding to the data type of a column.

Imprime el tipo de datos TypeScript correspondiente al tipo de datos de una columna.

dart-type

칼럼의 Dart 데이터 타입 Data type of a column in Dart language Tipo de datos de una columna en el lenguaje Dart

칼럼의 데이터 타입에 대응되는 Dart 데이터 타입을 출력합니다.

Prints the Dart data type corresponding to the data type of a column.

Imprime el tipo de datos Dart correspondiente al tipo de datos de una columna.

go-type

칼럼의 Go 데이터 타입 Data type of a column in Go language Tipo de datos de una columna en el lenguaje Go

칼럼의 데이터 타입에 대응되는 Go 데이터 타입을 출력합니다.

Prints the Go data type corresponding to the data type of a column.

Imprime el tipo de datos Go correspondiente al tipo de datos de una columna.

gql-type

칼럼의 GraphQL 데이터 타입 Data type of a column in GraphQL Tipo de datos de una columna en GraphQL

칼럼의 데이터 타입에 대응되는 GraphQL 데이터 타입을 출력합니다.

Prints the GraphQL data type corresponding to the data type of a column.

Imprime el tipo de datos GraphQL correspondiente al tipo de datos de una columna.

scala-type

칼럼의 Scala 데이터 타입 Data type of a column in Scala language Tipo de datos de una columna en el lenguaje Scala

칼럼의 Scala 데이터 타입을 출력합니다.

Prints the data type of a column in Scala language.

Imprime el tipo de datos de una columna en el lenguaje Scala.

rust-type

칼럼의 Rust 데이터 타입 Data type of a column in Rust language Tipo de datos de una columna en el lenguaje Rust

칼럼의 Rust 데이터 타입을 출력합니다.

Prints the data type of a column in Rust language.

Imprime el tipo de datos de una columna en el lenguaje Rust.

python-type

칼럼의 Python 데이터 타입 Data type of a column in Python language Tipo de datos de una columna en el lenguaje Python

칼럼의 Python 데이터 타입을 출력합니다.

Prints the data type of a column in Python language.

Imprime el tipo de datos de una columna en el lenguaje Python.

칼럼 Iteration 관련 추가적인 처리 Additional processing for column iteration Procesamiento adicional para la iteración de columnas

<:for-*columns=...#> 태그를 사용하여 칼럼을 반복하면서 출력할 때, 칼럼이름이나 데이터 타입을 출력하는 것 외에 아래의 태그들을 사용하여 추가적으로 표현할 수 있는 내용들이 있습니다.

When iterating through columns using the <:for-*columns=...#> tag, there are additional contents that can be expressed using the following tags in addition to outputting column names or data types.

Al iterar a través de columnas utilizando la etiqueta <:for-*columns=...#>, hay contenidos adicionales que se pueden expresar utilizando las siguientes etiquetas además de la salida de nombres de columnas o tipos de datos.

태그 Tag Etiqueta 내부태그 Internal Tag Etiqueta interna 내부태그(2) Internal Tag(2) Etiqueta interna(2) 테이블
지정
Need a
Table
Necesita
una tabla
설명 Description Descripción
<#csv-columns-as-ALIAS#> <:csv-columns-as-ALIAS:> $csv-columns-as-ALIAS Yes 모든 칼럼에 대해 'column as alias' 형식으로 만들고 콤마로 연결 Make 'column as alias' for every column and join with comma Hace 'column as alias' para cada columna y une con coma
<:ordinal-number:> $ordinal-number Yes 칼럼 iteration에서의 순번 Ordinal number in the iteration of columns Número ordinal en la iteración de columnas
<:ordinal-in-table:> $ordinal-in-table Yes 테이블 스키마 내 칼럼 순번 Ordinal number of columns in the table schema Número ordinal de columnas en el esquema de la tabla
<:if-first:=...> Yes 첫번째 칼럼에서만 출력 Print only for the first column Imprime solo para la primera columna
<:if-last=...:> Yes 마지막 칼럼에서만 출력 Print only for the last column Imprime solo para la última columna
<:if-not-first=...:> Yes 첫번째 칼럼을 제외하고 출력 Print except for the first column Imprime excepto para la primera columna
<:if-not-last=...:> Yes 마지막 칼럼을 제외하고 출력 Print except for the last column Imprime excepto para la última columna
 

csv-columns-as-ALIAS

모든 칼럼에 대해 'column as alias' 형식으로 만들고 콤마로 연결 Make 'column as alias' for every column and join with comma Hace 'column as alias' para cada columna y une con coma
SELECT <#csv-columns-as-colName#> FROM <#table_name#> <#alias#><#for-join-tables=, $table_name $alias#>; WHERE 1=1 <#for-join-keys=AND $alias1.$col_name1=$alias2.$col_name2 #>;

ALIAS 부분은 칼럼명을 대체할 별칭을 지정합니다. 형식은 칼럼 이름 출력용 태그와 동일하게 사용합니다.
예를 들어, <#csv-columns-as-columnName#>, 또는 <#csv-columns-as-column_name#>과 같이 사용합니다.

The ALIAS part specifies the alias to replace the column name. The format is used in the same way as the tag for outputting column names.
For example, use it as <#csv-columns-as-columnName#>, or <#csv-columns-as-column_name#>.

La parte ALIAS especifica el alias para reemplazar el nombre de la columna. El formato se utiliza de la misma manera que la etiqueta para la salida de los nombres de columna.
Por ejemplo, úselo como <#csv-columns-as-columnName#>, o <#csv-columns-as-column_name#>.

SQL문에서 SELECT와 FROM 사이에 사용할 수 있는 칼럼 목록을 CSV 형식으로 출력합니다.
각 칼럼은 기본적으로 '칼럼명 AS 별칭' 형식으로 출력됩니다.
그러나 칼럼명이 geospatial 데이터 타입인 경우에는 'ST_AsText(칼럼명) AS 별칭' 형식으로,
Date형식인 경우에는 'date_format(칼럼명, '%Y-%m-%d') AS 별칭' 형식으로,
Time형식인 경우에는 'date_format(칼럼명, '%H:%i:%s') AS 별칭' 형식으로,
Datetime이나 Timestamp 형식인 경우에는 'date_format(칼럼명, '%Y-%m-%d %H:%i:%s') AS 별칭' 형식으로 출력됩니다.
이 때, 칼럼명은 $alias.$column_name형식으로 출력됩니다.

Outputs a list of columns that can be used between SELECT and FROM in SQL statement in CSV format.
Each column is output in the format of 'column_name AS alias' by default.
However, if the column name is a geospatial data type, the output will be in the format of 'ST_AsText(column_name) AS alias'.
If it is a Date type, the output will be in the format of 'date_format(column_name, '%Y-%m-%d') AS alias'.
If it is a Time type, the output will be in the format of 'date_format(column_name, '%H:%i:%s') AS alias'.
If it is a Datetime or Timestamp type, the output will be in the format of 'date_format(column_name, '%Y-%m-%d %H:%i:%s') AS alias'.
In this case, the column name's output will be $alias.$column_name.

Muestra una lista de columnas que se pueden usar entre SELECT y FROM en una declaración SQL en formato CSV.
Cada columna se muestra en el formato de 'column_name AS alias' por defecto.
Sin embargo, si el nombre de la columna es un tipo de datos geoespacial, la salida será en el formato de 'ST_AsText(column_name) AS alias'.
Si es un tipo de Date, la salida será en el formato de 'date_format(column_name, '%Y-%m-%d') AS alias'.
Si es un tipo de Time, la salida será en el formato de 'date_format(column_name, '%H:%i:%s') AS alias'.
Si es un tipo de Datetime o Timestamp, la salida será en el formato de 'date_format(column_name, '%Y-%m-%d %H:%i:%s') AS alias'.
En este caso, la salida del nombre de la columna será $alias.$column_name.

ordinal-number

칼럼 iteration에서의 순번 Ordinal number in the iteration of columns Número ordinal en la iteración de columnas
SELECT <#for-columns=$col_name<:if-not-last=,:> -- $ordinal-number #> FROM $table_name

칼럼 iteration에서의 칼럼의 순번을 출력합니다. 1부터 시작합니다.

Prints the ordinal number of the column in the iteration of columns. It starts from 1.

Imprime el número ordinal de la columna en la iteración de columnas. Comienza desde 1.

ordinal-in-table

테이블 스키마 내 칼럼 순번 Ordinal number of columns in the table schema Número ordinal de columnas en el esquema de la tabla
UPDATE $table_name SET <#for-no-keys=$col_name=param_$col_name<:if-not-last=,:> -- $ordinal-in-table #> WHERE <#for-keys=<:if-not-first= AND :>$col_name=param_$col_name#>;

테이블 스키마 내에서 칼럼의 순번을 출력합니다. Iteration에서의 출력 순서와는 다릅니다.

Prints the ordinal number of columns in the table schema. It is different from the output order in the iteration.

Imprime el número ordinal de columnas en el esquema de la tabla. Es diferente del orden de salida en la iteración.

<:if-first=...:>

첫번째 칼럼에서만 출력 Print only for the first column Imprime solo para la primera columna

<:for-*columns=...#> 태그가 Iteration 하는 동안 루프의 순번을 판단하여 첫번째인 경우에만 '=' 부호 뒤에 주어진 내용을 있는 그대로 출력합니다.

내부 태그로만 사용됩니다.

While the <:for-*columns=...#> tag is iterating, it determines the loop number and prints the content given after the '=' sign as it is only for the first one.

Used only as an internal tag.

Mientras la etiqueta <:for-*columns=...#> está iterando, determina el número del bucle e imprime el contenido dado después del signo '=' tal como está solo para el primero.

Solo se usa como etiqueta interna.

<:if-last=...:>

마지막 칼럼에서만 출력 Print only for the last column Imprime solo para la última columna

<:for-*columns=...#> 태그가 Iteration 하는 동안 루프의 순번을 판단하여 마지막인 경우에만 '=' 부호 뒤에 주어진 내용을 있는 그대로 출력합니다.

내부 태그로만 사용됩니다.

While the <:for-*columns=...#> tag is iterating, it determines the loop number and prints the content given after the '=' sign as it is only for the last one.

Used only as an internal tag.

Mientras la etiqueta <:for-*columns=...#> está iterando, determina el número del bucle e imprime el contenido dado después del signo '=' tal como está solo para el último.

Solo se usa como etiqueta interna.

<:if-not-first=...:>

첫번째 칼럼을 제외하고 출력 Print except for the first column Imprime excepto para la primera columna
SELECT * FROM $table_name WHERE <#for-keys=<:if-not-first= AND :>$col_name=param_$col_name#>;

<:for-*columns=...#> 태그가 Iteration 하는 동안 루프의 순번을 판단하여 첫번째인 경우를 제외하고 '=' 부호 뒤에 주어진 내용을 있는 그대로 출력합니다.

내부 태그로만 사용됩니다.

While the <:for-*columns=...#> tag is iterating, it determines the loop number and prints the content given after the '=' sign as it is except for the first one.

Used only as an internal tag.

Mientras la etiqueta <:for-*columns=...#> está iterando, determina el número del bucle e imprime el contenido dado después del signo '=' tal como está excepto por el primero.

Solo se usa como etiqueta interna.

<:if-not-last=...:>

마지막 칼럼을 제외하고 출력 Print except for the last column Imprime excepto para la última columna
SELECT <#for-columns=$col_name<:if-not-last=,:> #> FROM $table_name;

<:for-*columns=...#> 태그가 Iteration 하는 동안 루프의 순번을 판단하여 마지막인 경우를 제외하고 '=' 부호 뒤에 주어진 내용을 있는 그대로 출력합니다.

내부 태그로만 사용됩니다.

While the <:for-*columns=...#> tag is iterating, it determines the loop number and prints the content given after the '=' sign as it is except for the last one.

Used only as an internal tag.

Mientras la etiqueta <:for-*columns=...#> está iterando, determina el número del bucle e imprime el contenido dado después del signo '=' tal como está excepto por el último.

Solo se usa como etiqueta interna.