Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mrjgreen/database
Browse files Browse the repository at this point in the history
* 'master' of github.com:mrjgreen/database:
  Update README.md
  • Loading branch information
Joe Green committed Mar 2, 2015
2 parents dc4840e + bf7ace7 commit df30e97
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Features:
* Sub Queries
* Nested Queries
* Bulk Inserts
* MySQL `SELECT * INTO OUTFILE '...'`
* Lazy Connections
* PSR Compatible Logging
* Database Connection Resolver
Expand Down Expand Up @@ -80,6 +81,7 @@ $connection->query("SELECT id, username FROM customers");
- [Group By, Order By and Having](#group-by-order-by-and-having)
- [Joins](#joins)
- [Sub Selects](#sub-selects)
- [MySQL Outfile](#mysql-outfile)
- [Insert](#insert)
- [Insert Ignore](#insert-ignore)
- [Replace](#replace)
Expand Down Expand Up @@ -350,6 +352,22 @@ $count = $connection->table('users')->avg('age');
$count = $connection->table('users')->sum('age');
```

####MySQL Outfile

```PHP
$connection
->table('users')
->select('*')
->where('bar', '=', 'baz')
->intoOutfile('filename', function(\Database\Query\OutfileClause $out){
$out
->enclosedBy(".")
->escapedBy("\\")
->linesTerminatedBy("\n\r")
->fieldsTerminatedBy(',');
})->query();
```

###Insert
```PHP
$data = array(
Expand Down

0 comments on commit df30e97

Please sign in to comment.