Insert a record
db_insertInsert a record into an Oracle table using named binds, with SQL injection protection and optional dry-run preview.
Instructions
Insert a single record into an Oracle database table using parameterized named binds.
Auto-generates an INSERT with named bind variables from the provided data object. Column names are validated to prevent SQL injection. After insert, the full row is fetched back via ROWID.
dry_run mode: Set dry_run=true to preview the generated SQL without executing it.
Example: table_name: "users" data: { "name": "Alice", "email": "alice@example.com", "active": true } dry_run: false
Args:
table_name (string): Target table name
data (object): Column-value pairs to insert
dry_run (boolean): Preview SQL without executing (default: false)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Column-value pairs to insert. Example: {"name": "Alice", "age": 30, "active": true} | |
| dry_run | No | If true, return the generated SQL without executing it. Useful for previewing before committing changes. | |
| table_name | Yes | Target table name (e.g., 'users'). Oracle names are uppercase by default. |