SQLs.singleUpdate() method chain

Explain the SQLs.singleUpdate() method chain for constructing UPDATE statements.

Updated Mar 3, 2026
One-click install
npx skills add https://github.com/PillArmy/army --skill sqls-singleupdate-method-chain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: SQLs.singleUpdate() method chain
Source: https://github.com/PillArmy/army/tree/main/.trae/skills/SQLs-single-update-method-chain
Command: npx skills add https://github.com/PillArmy/army --skill sqls-singleupdate-method-chain

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides a comprehensive guide to the Army Criteria API's SQLs.singleUpdate() method chain, enabling users to understand, explain, or document the full process of constructing an UPDATE statement.

Core Features & Use Cases

  • Understanding the SQLs.singleUpdate() Method Chain: This Skill covers the entire process from SQLs.singleUpdate() to asUpdate(), including WITH, UPDATE, SET, WHERE, AND, and asUpdate() stages.
  • Source Code Reference: Based on the actual source code of StandardUpdate.java, UpdateStatement.java, StandardUpdates.java, and StandardUpdateUnitTests.java.
  • Use Case: A developer can use this Skill to understand how to construct complex UPDATE statements using the Army Criteria API.

Quick Start

To start using this Skill, simply navigate to the 'SQLs-single-update-method-chain' directory and review the SKILL.md file for a detailed explanation of the method chain.

Frequently Asked Questions about SQLs.singleUpdate() method chain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I construct an UPDATE statement using the Army Criteria API method chain?

To construct an UPDATE statement with the Army Criteria API, chain methods from SQLs.singleUpdate() through WITH, UPDATE, SET, WHERE, AND, and finally asUpdate() to build the complete query.

What is the SQLs.singleUpdate() method chain used for in the Army framework?

The SQLs.singleUpdate() method chain in the Army framework is used to construct complex SQL UPDATE statements programmatically, covering the entire process from initialization to the final asUpdate() execution stage.

How does the Army Criteria API handle SET and WHERE clauses in an UPDATE statement?

The Army Criteria API handles SET and WHERE clauses by chaining corresponding methods sequentially after SQLs.singleUpdate(), allowing developers to specify column updates and filtering conditions before calling asUpdate().

Can I review the Army framework source code to understand how the UPDATE method chain works?

Yes, you can review the Army framework source code for the UPDATE method chain, specifically StandardUpdate.java, UpdateStatement.java, StandardUpdates.java, and StandardUpdateUnitTests.java files, which provide implementation details.

What are the limitations of using SQLs.singleUpdate() for database modifications?

The metadata does not explicitly detail limitations of SQLs.singleUpdate(), but it is designed specifically for constructing UPDATE statements within the Army Criteria API architecture rather than handling raw SQL queries.