agentsclimarketplace

Bx jdbc

Skill ortus-boxlang/skills/boxlang-modules/bx-jdbc

BoxLang AI skills repository and Claude Plugin

Install
npx -y skills add ortus-boxlang/skills --skill bx-jdbc

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use this skill when selecting and installing JDBC driver modules for BoxLang database connectivity: bx-derby, bx-mysql, bx-mariadb, bx-mssql, bx-postgresql, bx-sqlite, bx-oracle, bx-hypersql. Each module packages the appropriate JDBC driver.

SKILL.md

3.5 KB, 861 tokens by cl100k_base, as published. Nobody here has run it

bx-jdbc: JDBC Driver Modules

BoxLang provides separate installable JDBC driver modules — one per database vendor. Install only the driver you need.

Available JDBC Driver Modules

ModuleDatabaseInstall Command
bx-derbyApache Derby (embedded/server)install-bx-module bx-derby
bx-hypersqlHyperSQL (in-memory/file)install-bx-module bx-hypersql
bx-mysqlMySQL 8+install-bx-module bx-mysql
bx-mariadbMariaDBinstall-bx-module bx-mariadb
bx-mssqlMicrosoft SQL Serverinstall-bx-module bx-mssql
bx-oracleOracle DBinstall-bx-module bx-oracle
bx-postgresqlPostgreSQLinstall-bx-module bx-postgresql
bx-sqliteSQLite (embedded file)install-bx-module bx-sqlite

Installation

# OS runtime (global install)
install-bx-module bx-postgresql

# CommandBox / web server project
box install bx-postgresql

Datasource Configuration (boxlang.json)

After installing the JDBC driver module, configure a datasource:

{
  "datasources": {
    "myDB": {
      "driver": "postgresql",
      "host": "localhost",
      "port": 5432,
      "database": "myapp",
      "username": "appuser",
      "password": "secret"
    }
  }
}

Datasource in Application.bx

class {
    this.name = "MyApp"

    // Single datasource
    this.datasource = {
        driver   : "mysql",
        host     : "db.example.com",
        port     : 3306,
        database : "myapp",
        username : server.system.environment.DB_USER,
        password : server.system.environment.DB_PASS
    }

    // Named datasources
    this.datasources = {
        primary : {
            driver   : "postgresql",
            host     : "db.example.com",
            port     : 5432,
            database : "maindb",
            username : server.system.environment.PG_USER,
            password : server.system.environment.PG_PASS
        },
        reporting : {
            driver   : "postgresql",
            host     : "read-replica.example.com",
            port     : 5432,
            database : "reportdb",
            username : server.system.environment.PG_USER,
            password : server.system.environment.PG_PASS
        }
    }
}

Querying After Driver is Installed

// Default datasource
result = queryExecute( "SELECT * FROM users WHERE active = :active", { active: true } )

// Named datasource
result = queryExecute(
    "SELECT * FROM orders WHERE created_at > :since",
    { since: dateAdd( "d", -7, now() ) },
    { datasource: "reporting" }
)

Driver-Specific Notes

SQLite (embedded, no server needed)

{
  "datasources": {
    "localDB": {
      "driver": "sqlite",
      "database": "/path/to/myapp.db"
    }
  }
}

Derby (embedded)

{
  "datasources": {
    "testDB": {
      "driver": "derby",
      "database": "/path/to/derby-db",
      "create": true
    }
  }
}

Common Pitfalls

  • ❌ Don't hardcode DB credentials — use environment variables (server.system.environment.MY_VAR)
  • ✅ Install only ONE driver module per database vendor
  • ✅ Driver module must match the driver key in your datasource config
  • ❌ Module bx-mysql is for MySQL — use bx-mariadb for MariaDB (different driver)

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 327,069. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.