Skip to content

Commit 30e4df8

Browse files
committed
readme
1 parent 3ca7949 commit 30e4df8

File tree

1 file changed

+19
-23
lines changed

1 file changed

+19
-23
lines changed

README.md

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,25 @@ mio-insert TABLE [DROP_CREATE] [INDEXES] < some.csv
2929

3030
For extended help, type the command name with no arguments.
3131

32+
## mio-query
33+
34+
`mio-query` will run the specified `SQL` query and output the results to STDOUT.
35+
36+
`SQL` may be a file that contains SQL or it can be an actual SQL string like
37+
'select Id from Account'.
38+
39+
## mio-insert
40+
41+
`mio-insert` will insert CSV data from STDIN into the specified `TABLE`. Column
42+
names in the CSV must match exactly table field names.
43+
44+
`DROP_CREATE` is an optional path to a file of DDL statements to drop/create the
45+
table. If specified this will be run before inserting the data.
46+
47+
`INDEXES` is an option path to a file of DDL statements to drop/create indexes.
48+
If specified this will be run after inserting the data, since it's generally
49+
faster to insert data and then create indexes.
50+
3251
## Confguration
3352

3453
mysqlio looks for a file named `mysqlio-config.js` in the current directory.
@@ -63,26 +82,3 @@ exports = module.exports = {
6382
}
6483
};
6584
```
66-
67-
## mio-query
68-
69-
`mio-query` will run the specified `SQL` query and output the results to STDOUT.
70-
71-
`SQL` may be a file that contains SQL or it can be an actual SQL string like
72-
'select Id from Account'.
73-
74-
## mio-insert
75-
76-
`mio-insert` will insert CSV data from STDIN into the specified `TABLE`. Column
77-
names in the CSV must match exactly table field names.
78-
79-
`DROP_CREATE` is an optional path to a file of DDL statements to drop/create the
80-
table. If specified this will be run before inserting the data.
81-
82-
`INDEXES` is an option path to a file of DDL statements to drop/create indexes.
83-
If specified this will be run after inserting the data, since it's generally
84-
faster to insert data and then create indexes.
85-
86-
## Misc
87-
88-
https://stackoverflow.com/questions/8899802/how-do-i-do-a-bulk-insert-in-mysql-using-node-js

0 commit comments

Comments
 (0)