Database Flashcards

1
Q

Command to display tables in sqlite terminal?

A

.table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to start sqlite database

A

sqlite3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to start, stop, and check the status of mysql server

A
  1. mysql.server start
  2. mysql.server stop
  3. mysql.server status
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you login to mysql

A

mysql -u -p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you create a new promise using bluebird?

A
var promise = require('bluebird');
new Promise(function(resolve, reject) {
});
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you describe .then in promise

A

Then is a continuation method for promises which takes a function that takes the value from the previous promise.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is Promise.all

A

This method is useful for when you want to wait for more than one promise to complete. It takes an iterable or a promise of an iterable. Examples of this could be for when you want to do multiple API calls and process them together or when you want to iterate over an array and process the result.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly