@@ -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-
7666interface BatchQueryResult {
7767 status? : 0 | 1 ;
7868 rowsAffected? : number ;
@@ -151,7 +141,7 @@ if (!result.status) {
151141```
152142
153143In 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
155145storage datatypes, like booleans or datetimes. When fetching data directly from tables or views linked to table columns, SQLite is able
156146to identify the table declared types:
157147
0 commit comments