Skip to content

Commit cf21e77

Browse files
committed
Typo fixes and metadata types simplfied
1 parent ddfdb8c commit cf21e77

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

README.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,11 @@ interface QueryResult {
4242
_array: any[];
4343
/** The lengh of the dataset */
4444
length: number;
45-
/** A convenience function to acess the index based the row object
46-
* @param idx the row index
47-
* @returns the row structure identified by column names
48-
*/
49-
item: (idx: number) => any;
5045
};
5146
/**
5247
* Query metadata, avaliable only for select query results
5348
*/
54-
metadata?: ResultsetMetadata;
49+
metadata?: ColumnMetadata[];
5550
}
5651

5752
/**
@@ -68,11 +63,6 @@ declare type ColumnMetadata = {
6863
columnIndex: number;
6964
};
7065

71-
/**
72-
* Collection of columns that represents the resultset of a query
73-
*/
74-
declare type ResultsetMetadata = ColumnMetadata[];
75-
7666
interface BatchQueryResult {
7767
status?: 0 | 1;
7868
rowsAffected?: number;
@@ -151,7 +141,7 @@ if (!result.status) {
151141
```
152142

153143
In some scenarios, dynamic applications may need to get some metadata information about the returned resultset.
154-
This can be done testing the returned data directly, but in some cases may not be enought, like when data is stored outside
144+
This can be done testing the returned data directly, but in some cases may not be enough, like when data is stored outside
155145
storage datatypes, like booleans or datetimes. When fetching data directly from tables or views linked to table columns, SQLite is able
156146
to identify the table declared types:
157147

0 commit comments

Comments
 (0)