| 1 | module mssql |
| 2 | |
| 3 | pub struct Row { |
| 4 | pub mut: |
| 5 | vals []string |
| 6 | } |
| 7 | |
| 8 | // val returns the value at `index`. |
| 9 | pub fn (row Row) val(index int) string { |
| 10 | return row.vals[index] |
| 11 | } |
| 12 | |
| 13 | // values returns all row values. |
| 14 | pub fn (row Row) values() []string { |
| 15 | return row.vals.clone() |
| 16 | } |
| 17 | |
| 18 | pub struct Result { |
| 19 | pub mut: |
| 20 | rows []Row |
| 21 | // the number of rows affected by sql statement |
| 22 | num_rows_affected int |
| 23 | } |
| 24 |