Content-Length: 294652 | pFad | http://github.com/postgresml/postgresml/commit/a7d7fca1a2c8289518bdcc445dc4f3f1b1e2ff57

57 Updated docs (#950) · postgresml/postgresml@a7d7fca · GitHub
Skip to content

Commit a7d7fca

Browse files
authored
Updated docs (#950)
1 parent 36ee1bf commit a7d7fca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pgml-sdks/rust/pgml/javascript/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Once you have the JavaScript SDK installed, you can use the following sample cod
7676
const pgml = require("pgml");
7777

7878
const main = async () => {
79-
collection = pgml.newCollection("my_javascript_collection");
79+
const collection = pgml.newCollection("my_javascript_collection");
8080
```
8181
8282
**Explanation:**
@@ -199,12 +199,12 @@ By default, collections will read and write to the database specified by `DATABA
199199
200200
**Create a Collection that uses the default `DATABASE_URL` environment variable.**
201201
```javascript
202-
collection = pgml.newCollection("test_collection")
202+
const collection = pgml.newCollection("test_collection")
203203
```
204204
205205
**Create a Collection that reads from a different database than that set by the environment variable `DATABASE_URL`.**
206206
```javascript
207-
collection = pgml.newCollection("test_collection", CUSTOM_DATABASE_URL)
207+
const collection = pgml.newCollection("test_collection", CUSTOM_DATABASE_URL)
208208
```
209209
210210
### Upserting Documents

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgresml/postgresml/commit/a7d7fca1a2c8289518bdcc445dc4f3f1b1e2ff57

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy