# `EctoLibSql.Query`
[🔗](https://github.com/ocean/ecto_libsql/blob/v0.9.1/lib/ecto_libsql/query.ex#L1)

Represents a database query in the EctoLibSql adapter.

This struct holds the SQL statement and metadata about the query,
implementing the `DBConnection.Query` protocol for compatibility
with the DBConnection framework.

## Fields

- `:statement` - The SQL query string
- `:name` - Optional name for the query
- `:prepared` - Whether the query is prepared
- `:param_types` - Expected parameter types
- `:type` - Query type (default: `:binary`)

## Examples

    %EctoLibSql.Query{statement: "SELECT * FROM users WHERE id = ?"}

# `t`

```elixir
@type t() :: %EctoLibSql.Query{
  name: String.t() | nil,
  param_types: [atom()] | nil,
  prepared: boolean() | nil,
  statement: String.t() | nil,
  type: :binary | :text
}
```

Query struct for EctoLibSql.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
