Skip to content

Commit

Permalink
Readme DoubleBind
Browse files Browse the repository at this point in the history
  • Loading branch information
isublimity committed Jul 3, 2018
1 parent 1c0a00c commit ecf411b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,17 @@ $Bindings = [
'from_table' => 'table'
];

$statement = $db->selectAsync($select, $Bindings);
$statement = $db->selectAsync("SELECT FROM {table} WHERE datetime=:datetime limit {limit}", $Bindings);

// Double bind in {KEY}
$keys=[
'A'=>'{B}',
'B'=>':C',
'C'=>123,
'Z'=>[':C',':B',':C']
];
$this->client->selectAsync('{A} :Z', $keys)->sql() // == "123 ':C',':B',':C' FORMAT JSON",


```

Expand Down

0 comments on commit ecf411b

Please sign in to comment.