create() {
        return __awaiter(this, void 0, void 0, function* () {
            yield alasql_1.default.promise(`insert into friends (friendFrom, friendTo) 
             values (${this.fromFriend.id}, ${this.toFriend.id})`);
            // Retrieve the identifier of the new row
            this.id = alasql_1.default.autoval('friends', 'id');
        });
    }
// For a new Friend instance, inserts the user data into the database
For a new Friend instance, inserts the user data into the database
For a new Friend instance inserts the user data into the database
create() {
        return __awaiter(this, void 0, void 0, function* () {
            yield alasql_1.default.promise(`insert into friends (friendFrom, friendTo) 
             values (${this.fromFriend.id}, ${this.toFriend.id})`);
            this.id = alasql_1.default.autoval('friends', 'id');
        });
    }
create ( ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { yield alasql_1 . default . promise ( ` ${ this . fromFriend . id } ${ this . toFriend . id } ` ) ; this . id = alasql_1 . default . autoval ( 'friends' , 'id' ) ; } ) ; }
For a new Friend instance, inserts the user data into the database
For a new Friend instance inserts the user data into the database
// Retrieve the identifier of the new row