Skip to content

Commit

Permalink
Document executeFromFile() method
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijastuden committed Feb 8, 2017
1 parent ff31138 commit ad7ef4a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ $num = $this->connection->count('writers', null, '*');
$num = $this->connection->count('writers', null, 'name')
```

## Running Queries from File

In order to run all queries from a file, use `executeFromFile()` method:

```php
$connection->executeFromFile('/path/to/file');
```

**Note:** This method is not implemented to handle large data dumps. Use `mysqldump` instead, or another specialized backup utility instead.

## Connection Factory

Quickest way to connect is to use `ConnectionFactory` class:
Expand Down

0 comments on commit ad7ef4a

Please sign in to comment.