Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:APIJSON APIJSON Demo DemoSQLConfig Boot

From Leeroopedia
Knowledge Sources
Domains Database, SQL_Generation, Configuration
Last Updated 2026-10-14 00:00 GMT

Overview

Concrete tool for configuring SQL generation with MySQL dialect defaults in the standard APIJSON Boot server variant.

Description

The DemoSQLConfig class (Boot variant) extends APIJSONSQLConfig<Long> to configure the default database (MySQL), schema (sys), and SimpleCallback for dynamic SQL config creation. It is the single-datasource variant of the SQL config.

Usage

Use this class when the standard APIJSON Boot server needs to generate SQL statements.

Code Reference

Source Location

Signature

public class DemoSQLConfig extends APIJSONSQLConfig<Long> {
    public DemoSQLConfig();
    public DemoSQLConfig(RequestMethod method, String table);
    static {
        DEFAULT_DATABASE = DATABASE_MYSQL;
        DEFAULT_SCHEMA = "sys";
        SIMPLE_CALLBACK = new SimpleCallback<String>() { ... };
    }
}

Import

import apijson.demo.DemoSQLConfig;

I/O Contract

See Implementation:APIJSON_APIJSON_Demo_DemoSQLConfig for the I/O contract.

Usage Examples

See Implementation:APIJSON_APIJSON_Demo_DemoSQLConfig usage examples.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment