@@ -37,15 +37,15 @@ type ConnectionInfo = { password :: String, user :: String, port :: Number, db :
37
37
connect :: forall eff. ConnectionInfo -> Aff (db :: DB | eff) Client
38
38
```
39
39
40
- Makes a connection to the database
40
+ Makes a connection to the database.
41
41
42
42
#### ` execute `
43
43
44
44
``` purescript
45
45
execute :: forall eff a. Query a -> [SqlValue] -> Client -> Aff (db :: DB | eff) Unit
46
46
```
47
47
48
- Runs a query and returns nothing
48
+ Runs a query and returns nothing.
49
49
50
50
#### ` execute_ `
51
51
@@ -61,7 +61,7 @@ Runs a query and returns nothing
61
61
query :: forall eff a p. (IsForeign a) => Query a -> [SqlValue] -> Client -> Aff (db :: DB | eff) [F a]
62
62
```
63
63
64
- Runs a query and returns all results
64
+ Runs a query and returns all results.
65
65
66
66
#### ` query_ `
67
67
@@ -93,7 +93,7 @@ Just like `queryOne` but does not make any param replacement
93
93
queryValue :: forall eff a. (IsForeign a) => Query a -> [SqlValue] -> Client -> Aff (db :: DB | eff) (Maybe a)
94
94
```
95
95
96
- Runs a query and returns a single value, if any
96
+ Runs a query and returns a single value, if any.
97
97
98
98
#### ` queryValue_ `
99
99
@@ -112,6 +112,16 @@ withConnection :: forall eff a. ConnectionInfo -> (Client -> Aff (db :: DB | eff
112
112
Connects to the database, calls the provided function with the client
113
113
and returns the results.
114
114
115
+ #### ` end `
116
+
117
+ ``` purescript
118
+ end :: forall eff. Client -> Eff (db :: DB | eff) Unit
119
+ ```
120
+
121
+
122
+
123
+ ## Module Database.Postgres.SqlValue
124
+
115
125
#### ` SqlValue `
116
126
117
127
``` purescript
@@ -148,10 +158,10 @@ instance isSqlValueInt :: IsSqlValue Int
148
158
```
149
159
150
160
151
- #### ` end `
161
+ #### ` isSqlValueMaybe `
152
162
153
163
``` purescript
154
- end :: forall eff. Client -> Eff (db :: DB | eff) Unit
164
+ instance isSqlValueMaybe :: (IsSqlValue a) => IsSqlValue (Maybe a)
155
165
```
156
166
157
167
0 commit comments