Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SQL DSL (Domain Specific Language) for Kotlin and Java. Supports rendering for MyBatis or Spring JDBC Templates

License

NotificationsYou must be signed in to change notification settings

mybatis/mybatis-dynamic-sql

Repository files navigation

Build StatusCoverage StatusMaven centralSonatype Nexus (Snapshots)LicenseQuality Gate StatusSecurity Rating

What Is This?

This library is a framework for generating dynamic SQL statements. Think of it as a typesafe SQL templating library,with additional support for MyBatis3 and Spring JDBC Templates.

The library will generate full DELETE, INSERT, SELECT, and UPDATE statements formatted for use by MyBatis or Spring.The most common use case is to generate statements, and a matching set of parameters, that can be directly usedby MyBatis. The library will also generate statements and parameter objects that are compatible with Spring JDBCtemplates.

The library works by implementing an SQL-like DSL that creates an object containing a full SQL statement and anyparameters required for that statement. The SQL statement object can be used directly by MyBatis as a parameter to a mapper method.

The library also contains extensions for Kotlin that enable an idiomatic Kotlin DSL.

See the following pages for further information:

PageComments
Quick StartShows a complete example of building code for this library
MyBatis3 SupportInformation about specialized support forMyBatis3. The examples on this page are similar to the code generated byMyBatis Generator
Kotlin Support with MyBatis3Information about the Kotlin extensions and Kotlin DSL when using MyBatis3 as the runtime
Spring SupportInformation about specialized support for Spring JDBC Templates
Kotlin Support with SpringInformation about the Kotlin extensions and Kotlin DSL when using Spring JDBC Template as the runtime
Spring Batch SupportInformation about specialized support for Spring Batch using theMyBatis Spring Integration

Requirements

The library has no dependencies. Java 8 or higher is required.


[8]ページ先頭

©2009-2025 Movatter.jp