Skip to content

Data Sources ​

Multiple data sources let you connect to different databases for broader multi-dimensional data analysis. Pagination dialects are built in for:

MySQL, MariaDB, PostgreSQL, TiDB, Oracle, SQLServer 2012, DaMeng, KingBase, ClickHouse, Impala, StarRocks

For databases not on the list (Apache Druid, Presto, etc.), select Other and provide a custom pagination statement to build the dialect.

TIP

If you only use the default data source configured in Spring Boot, no extra configuration is needed — simply skip this step (the MySQL dialect is used for pagination by default).

Configuration Options ​

OptionDescription
CodeMust be unique
NameData source name
DriverJDBC driver — make sure the corresponding database driver dependency is added to your project
DB TypeDetermines the pagination dialect; if your database is not in the dropdown list, select Other and provide a custom pagination statement
Connection StringDatabase connection string
UsernameDatabase username
PasswordDatabase password
Test ConnectionVerify connectivity with one click before saving
Pagination SQLRequired when DB Type is Other
Connection PoolHikariCP parameters in key=value format, one per line
Changes do not take effect immediately after saving — a restart is required
Remark

Custom Pagination Statement ​

The pagination statement supports the following placeholders:

VariableDescription
@sqlOriginal query SQL
@sizePage size
@skipRows to skip
@sortSort fields

Example (the general MySQL-style dialect):

sql
select * from (@sql) _t @sort limit @size offset @skip

Contributors

The avatar of contributor named as YuePeng YuePeng
The avatar of contributor named as Claude Fable 5.1 Claude Fable 5.1

Changelog

Released under the Apache-2.0 License.