Skip to content

Commit 7587b69

Browse files
authored
Merge pull request #9 from nitaking/add-await
awaitコマンドを対応させる
2 parents 72564e6 + 4d153ee commit 7587b69

File tree

12 files changed

+2129
-32
lines changed

12 files changed

+2129
-32
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,33 @@ sequelize-tinker
2727
<!-- usage -->
2828
# Commands
2929

30+
```shell script
31+
$ sequelize-tinker
32+
>> Start sequelize-tinker!
33+
...
34+
>> models
35+
# [ 'Task', 'User' ]
36+
```
37+
38+
```shell script
39+
$ sequelize-tinker
40+
>> Start sequelize-tinker!
41+
...
42+
>> User.findOne({ raw: true })
43+
Executing (default): SELECT `id`, `firstName`, `lastName`, `createdAt`, `updatedAt` FROM `Users` AS `User` LIMIT 1;
44+
{ id: 1,
45+
firstName: 'John',
46+
lastName: 'Doe',
47+
createdAt: 2020-02-01T12:50:17.000Z,
48+
updatedAt: 2020-02-01T12:50:17.000Z }
49+
50+
```
51+
3052
<!-- commands -->
3153
# Todo
3254
3355
- [x] Custom Sequelize model's directory path setting.
56+
- [x] Available await command.
3457
- [ ] Option
3558
- [ ] Default output JSON.stringify
3659
- [ ] Command

example/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
## Setup
22

33
```shell script
4-
sequelize db:create
5-
sequelize db:migrate
4+
npx sequelize-cli db:create
5+
npx sequelize-cli db:migrate
6+
npx sequelize-cli db:seed:all
67
```
78

89
## Try sequelize-tinker !

0 commit comments

Comments
 (0)