@@ -150,25 +150,24 @@ describe('rowset', () => {
150150 } )
151151
152152 it ( 'contains extended metadata' , done => {
153- // custom connection with sqliteMode enabled
154- const connection = new SQLiteCloudConnection ( getChinookConfig ( CHINOOK_DATABASE_URL + '?sqliteMode=1' ) )
153+ // custom connection used to required sqliteMode enabled but since feb/2/24 it's enabled by default
154+ const connection = getChinookTlsConnection ( )
155155 connection . sendCommands ( 'SELECT * FROM tracks LIMIT 10;' , ( error , rowset ) => {
156156 expect ( rowset ) . toBeInstanceOf ( SQLiteCloudRowset )
157157 expect ( rowset . metadata . version ) . toBe ( 2 )
158158 expect ( rowset . metadata . numberOfRows ) . toBe ( 10 )
159159 expect ( rowset . metadata . numberOfColumns ) . toBe ( 9 )
160160 expect ( rowset . metadata . columns ) . toMatchObject ( [
161- { column : 'TrackId' , database : 'main' , name : 'TrackId' , table : 'tracks' , type : 'INTEGER' } ,
162- { column : 'Name' , database : 'main' , name : 'Name' , table : 'tracks' , type : 'NVARCHAR(200)' } ,
163- { column : 'AlbumId' , database : 'main' , name : 'AlbumId' , table : 'tracks' , type : 'INTEGER' } ,
164- { column : 'MediaTypeId' , database : 'main' , name : 'MediaTypeId' , table : 'tracks' , type : 'INTEGER' } ,
165- { column : 'GenreId' , database : 'main' , name : 'GenreId' , table : 'tracks' , type : 'INTEGER' } ,
166- { column : 'Composer' , database : 'main' , name : 'Composer' , table : 'tracks' , type : 'NVARCHAR(220)' } ,
167- { column : 'Milliseconds' , database : 'main' , name : 'Milliseconds' , table : 'tracks' , type : 'INTEGER' } ,
168- { column : 'Bytes' , database : 'main' , name : 'Bytes' , table : 'tracks' , type : 'INTEGER' } ,
169- { column : 'UnitPrice' , database : 'main' , name : 'UnitPrice' , table : 'tracks' , type : 'NUMERIC(10,2)' }
161+ { column : 'TrackId' , database : 'main' , name : 'TrackId' , table : 'tracks' , type : 'INTEGER' , primaryKey : 1 , autoIncrement : 1 , notNull : 1 } ,
162+ { column : 'Name' , database : 'main' , name : 'Name' , table : 'tracks' , type : 'NVARCHAR(200)' , primaryKey : 0 , autoIncrement : 0 , notNull : 1 } ,
163+ { column : 'AlbumId' , database : 'main' , name : 'AlbumId' , table : 'tracks' , type : 'INTEGER' , primaryKey : 0 , autoIncrement : 0 , notNull : 0 } ,
164+ { column : 'MediaTypeId' , database : 'main' , name : 'MediaTypeId' , table : 'tracks' , type : 'INTEGER' , primaryKey : 0 , autoIncrement : 0 , notNull : 1 } ,
165+ { column : 'GenreId' , database : 'main' , name : 'GenreId' , table : 'tracks' , type : 'INTEGER' , primaryKey : 0 , autoIncrement : 0 , notNull : 0 } ,
166+ { column : 'Composer' , database : 'main' , name : 'Composer' , table : 'tracks' , type : 'NVARCHAR(220)' , primaryKey : 0 , autoIncrement : 0 , notNull : 0 } ,
167+ { column : 'Milliseconds' , database : 'main' , name : 'Milliseconds' , table : 'tracks' , type : 'INTEGER' , primaryKey : 0 , autoIncrement : 0 , notNull : 1 } ,
168+ { column : 'Bytes' , database : 'main' , name : 'Bytes' , table : 'tracks' , type : 'INTEGER' , primaryKey : 0 , autoIncrement : 0 , notNull : 0 } ,
169+ { column : 'UnitPrice' , database : 'main' , name : 'UnitPrice' , table : 'tracks' , type : 'NUMERIC(10,2)' , primaryKey : 0 , autoIncrement : 0 , notNull : 1 }
170170 ] )
171- connection . close ( )
172171 done ( )
173172 } )
174173 } )
0 commit comments