gdo/result

Types

pub type ExecutionResult {
  ExecutionResult(
    rows_affected: Int,
    last_insert_id: option.Option(Int),
  )
}

Constructors

  • ExecutionResult(
      rows_affected: Int,
      last_insert_id: option.Option(Int),
    )
pub type QueryResult {
  QueryResult(rows: List(row.Row))
}

Constructors

Values

pub fn empty_query_result() -> QueryResult
pub fn execution_result(
  rows_affected rows_affected: Int,
  last_insert_id last_insert_id: option.Option(Int),
) -> ExecutionResult
pub fn last_insert_id(
  result: ExecutionResult,
) -> option.Option(Int)
pub fn query_result(rows rows: List(row.Row)) -> QueryResult
pub fn row_count(result: QueryResult) -> Int
pub fn rows(result: QueryResult) -> List(row.Row)
pub fn rows_affected(result: ExecutionResult) -> Int
Search Document