# CRUD Operations

Create, Read, Update, and Delete records with type-safe queries and ergonomic APIs.

## Create

Use the `data!` macro for concise record creation.

### Builder Pattern

For more control, use the `DataBuilder` directly.

## Read

Find records with type-safe queries.

## Update

Update records with field operations like increment, decrement, and more.

#### 💡 Available Operations

- • `increment!(n)` - Add to numeric field
- • `decrement!(n)` - Subtract from numeric field
- • `.multiply("field", n)` - Multiply numeric field
- • `.divide("field", n)` - Divide numeric field
- • `.push("field", val)` - Append to array
- • `.set_null("field")` - Set to NULL
- • `.unset("field")` - Remove field

## Delete

Remove records safely with type-safe filters.

## Upsert

Create a record if it doesn't exist, or update it if it does.

## Relations

Connect to existing records or create nested records in a single operation.