EctoLibSql.Query (EctoLibSql v0.8.8)

Copy Markdown View Source

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 = ?"}

Summary

Types

t()

Query struct for EctoLibSql.

Types

t()

@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.