# sqldog
Keep aware of the sql file is executed or not.

When develop project which depends on databases at your local machine, sometimes there are sqlfiles come from others or version control system like git and svn. Sqldog could help to manage this sql files. It can remember whether the file is executed or not. And it's convenient to use sqldog for executing sql files you want.  

Current it's only support Mysql.

### Install

[sqldog](https://www.npmjs.com/package/sqldog) on npm already.

```
npm install -g sqldog

```

### General commands
* Initialize current dir as a sql dog watched dir
```
sqldog init
```
  
* Execute a sql file. If this file was executed by sqldog previously, this action will be rejected ad you will get a message.
```
sqldog exec sql_file_name
```
  
* Of course , you can execute a sql file althouth it was executed.
```
sqldog exec -f sql_file_name
```
  
* Get the status of the current sqldog dir.
```
sqldog status
```
  


### License
MIT

# sqldog
Keep aware of the sql file is executed or not.

When develop project which depends on databases at your local machine, sometimes there are sqlfiles come from others or version control system like git and svn. Sqldog could help to manage this sql files. It can remember whether the file is executed or not. And it's convenient to use sqldog for executing sql files you want.  

Current it's only support Mysql.

### Install

[sqldog](https://www.npmjs.com/package/sqldog) on npm already.

```
npm install -g sqldog
```

### General commands
* Initialize current dir as a sql dog watched dir
```
sqldog init
```
  
* Execute a sql file. If this file was executed by sqldog previously, this action will be rejected ad you will get a message.
```
sqldog exec sql_file_name
```
  
* Of course , you can execute a sql file althouth it was executed.
```
sqldog exec -f sql_file_name
```
  
* Get the status of the current sqldog dir.
```
sqldog status
```
  


### License
MIT

Remove empty line after install command
Remove empty line after install command
