Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
91 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// <reference path='../../typescript/pg-promise' /> | ||
|
||
import * as pgPromise from 'pg-promise'; | ||
|
||
var pgp = pgPromise(); | ||
var db = pgp('connection'); | ||
|
||
var ps1 = new pgp.PreparedStatement('', ''); | ||
var ps2 = new pgp.PreparedStatement({name: '', text: ''}); | ||
var ps3 = new pgp.PreparedStatement(ps1); | ||
|
||
db.one(ps1.get()); | ||
db.one(ps1); | ||
|
||
db.one(ps1.create(undefined)); | ||
db.one(ps1.create(null)); | ||
db.one(ps1.create()); | ||
db.one(ps1.create([123])); | ||
|
||
db.one({ | ||
name: '', | ||
text: '' | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters