Skip to content

Commit df06631

Browse files
committed
Document Driver names for languages
1 parent a32cb34 commit df06631

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

src/site/es/xdoc/dynamic-sql.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,16 @@ AND title like ‘someTitle’]]></source>
188188
añadir un driver de lenguaje y usar dicho lenguaje para escribir tus sentencias SQL.
189189
</p>
190190
<p>Hay dos lenguajes predefinidos:</p>
191-
<ul>
192-
<li>xml</li>
193-
<li>raw</li>
194-
</ul>
191+
<table>
192+
<thead>
193+
<tr><td>Alias</td><td>Driver</td>
194+
</tr>
195+
</thead>
196+
<tbody>
197+
<tr><td>xml</td><td>XmlLanguageDriver</td></tr>
198+
<tr><td>raw</td><td>RawLanguageDriver</td></tr>
199+
</tbody>
200+
</table>
195201
<p>El lenguaje <code>xml</code> es el lenguaje por defecto. Permite ejecutar todos los tags dinámicos que hemos visto en las secciones anteriores.</p>
196202
<p>El lenguaje <code>raw</code> es en realidad la ausencia de lenguaje. Con esta configuración MyBatis sólo realiza la sustitución de parámetros
197203
y pasa la sentencia al driver de base de datos. Como supondrás el lenguaje <code>raw</code> es más rápido que el <code>xml</code>.

src/site/xdoc/dynamic-sql.xml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,20 @@ AND title like ‘someTitle’]]></source>
187187
so you can plug a language driver and use that language to write your dynamic
188188
SQL queries.</p>
189189
<p>There are two built-in languages:</p>
190-
<ul>
191-
<li>xml</li>
192-
<li>raw</li>
193-
</ul>
190+
<table>
191+
<thead>
192+
<tr><td>Alias</td><td>Driver</td>
193+
</tr>
194+
</thead>
195+
<tbody>
196+
<tr><td>xml</td><td>XmlLanguageDriver</td></tr>
197+
<tr><td>raw</td><td>RawLanguageDriver</td></tr>
198+
</tbody>
199+
</table>
194200
<p>The <code>xml</code> language is the default one. It is able to execute all the dynamic tags we saw in the previous sections.</p>
195201
<p>The <code>raw</code> language is in fact the absence of language. When using this setting MyBatis just performs the
196202
parameter substitution and passes the statement to the database driver. As you may guess, the <code>raw</code> language
197-
is faster than the <code>xml</code> language.
203+
is much faster than the <code>xml</code> language.
198204
</p>
199205
<p>You can change the default language for your project by configuring it in the mybatis-config.xml file:</p>
200206
<source><![CDATA[<settings>

0 commit comments

Comments
 (0)