Version v0.18 of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. For up-to-date documentation, see the latest version.
Script DSL
任意のSQLスクリプトを実行するためのDSL
概要
Script DSLは任意のSQLスクリプトを実行できます。
execute
実行したいSQLスクリプトをexecuteに渡します。
val query: Query<Unit> = ScriptDsl.execute("""
drop table if exists example;
create table example (id integer not null primary key, value varchar(20));
insert into example (id, value) values(1, 'test');
""".trimIndent())
最終更新
August 15, 2021
: Add heading IDs (5798dd3)