UNPKG
@userlab/dx
Version:
latest (1.1.1)
1.1.1
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Build efficient GraphQL backend
userlab/dx
userlab/dx
@userlab/dx
/
lib
/
src
/
db
/
dbTransaction.d.ts
4 lines
(3 loc)
•
196 B
TypeScript
View Raw
1
2
3
4
import
{
Client
}
from
'pg'
;
import
{
DBOptions
}
from
'../types'
;
export
declare
const
dbTransaction
:
(
func
: (connection: Client) =>
Promise
<
string
>, { dbConfig }:
DBOptions
) =>
Promise
<
string
>;