Skip to main content

2. Quick Lookup

Note

This page skips the API overview and organizes links by usage scenarios for quick lookup.

Insert,Delete,Update​

Basic Query​

Arguments​

Pagination​

Dynamic SQL​

  • Rules Manual: Dynamic SQL Rules, Nested Rules, Result Processing, etc.
  • Inject predefined SQL fragments via MACRO rules in SQL statements (assess SQL injection security risks yourself).
  • Build SQL text via IFTEXT rules or ${...} syntax in SQL statements (assess SQL injection security risks yourself).
  • Enhance SQL statements via AND, OR, SET, CASE rules.
  • Use IN rule to automatically generate corresponding (?,?,?,?) in SQL statements based on collection parameter size.
  • Use IFAND, IFOR, IFSET, IFIN rules to control rule validity via a condition parameter.
  • Rules can also process a segment of SQL not just a parameter.
  • Nested rules: @{case, ... @{and, ...}} enable logical processing capabilities in SQL via nesting.
  • Use <if>, <choose>, <when>, <otherwise> tags in Mapper File for conditional judgment.
  • Use <trim>, <where>, <set> tags in Mapper File to enhance specific SQL statement generation.
  • Use <foreach> tag in Mapper File to handle loop requirements.

Object mapping​

Stored procedures​

Executing SQL​

Results​

Type Handler​

Redis support​

MongoDB support​

ElasticSearch support​

Database transactions​

Framework integrations​