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 BigData

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 and table-name mapping in the APIJSON BigData server variant.

Description

The DemoSQLConfig class (BigData variant) extends APIJSONSQLConfig<Long> to configure the default database (MySQL), schema (sys), table-name mappings, and a SimpleCallback for dynamic SQL config creation. It supports column hiding and table key mapping for security.

Usage

Use this class when the APIJSON BigData server needs to generate SQL statements for MySQL-compatible databases.

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";
        // TABLE_KEY_MAP.put(...);
        SIMPLE_CALLBACK = new SimpleCallback<String>() { ... };
    }
}

Import

import apijson.demo.DemoSQLConfig;

I/O Contract

See Implementation:APIJSON_APIJSON_Demo_DemoSQLConfig for the I/O contract; the BigData variant follows the same pattern with MySQL defaults.

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