@qualithm/rqlite-client - v0.2.3
    Preparing search index...

    Function toRows

    • Convert a QueryResult (array format) into an array of row objects.

      Each row is a Record<string, SqlValue> keyed by column name.

      Parameters

      • result: { columns: string[]; values: unknown[][] }

      Returns Record<string, unknown>[]

      const result = await client.query("SELECT id, name FROM users")
      if (result.ok) {
      const rows = toRows(result.value)
      // [{ id: 1, name: "Alice" }, { id: 2, name: "Bob" }]
      }