This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Configure test database | |
USE master; | |
CREATE DATABASE TestDBR; | |
USE TestDBR; | |
CREATE TABLE Inventory (id INT, name NVARCHAR(50), quantity INT) | |
INSERT INTO Inventory VALUES (1, 'banana', 150); INSERT INTO Inventory VALUES (2, 'orange', 154); | |
-- Grant public master access | |
USE master; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface PrimitivesObject { | |
[key: string]: string | number; | |
} | |
function printPrimitives(data: PrimitivesObject) { | |
Object.entries(data).forEach(entry => console.log(`Key: ${entry[0]}, Value: ${entry[1]}`)); | |
} | |
printPrimitives({ | |
a: 1, |