Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Gehring committed Nov 1, 2016
1 parent 759e710 commit 909aebb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ $writer->save($fileName);

```php
$pdo = new PDO('sqlite::memory:');
$df = DataFrame::fromSQL($pdo, 'SELECT foo, bar, baz FROM table_name;');
$df = DataFrame::fromSQL('SELECT foo, bar, baz FROM table_name;', $pdo);
```

### Committing to a database:

```php
$pdo = new PDO('sqlite::memory:');
$affected = $df->toSQL($pdo, 'table_name');
$affected = $df->toSQL('table_name', $pdo);
echo sprintf('%d rows committed to database.', $affected);
```

Expand Down

0 comments on commit 909aebb

Please sign in to comment.