6989a98d75
- Arkitektur: docs/auth/passwordless-architecture.md - Backend: iom/quixzoom-auth-service/ (FastAPI + Redis) - Webb: quixzoom-market-pages/se/login/ (QR-kod + polling) - App: iom/quixzoom-app/src/features/auth/ (push + deep links) Flöde: QR-kod → app-godkännande → webb-inloggad
38 lines
774 B
Markdown
38 lines
774 B
Markdown
[](https://travis-ci.org/[YOUR_GITHUB_USERNAME]/[YOUR_PROJECT_NAME])
|
|
|
|
pg-hstore
|
|
===========
|
|
|
|
A node package for serializing and deserializing JSON data to hstore format
|
|
|
|
## Install pg-hstore
|
|
|
|
```bash
|
|
$ npm install pg-hstore
|
|
```
|
|
|
|
## Usage
|
|
### stringify
|
|
|
|
```javascript
|
|
var hstore = require('pg-hstore')();
|
|
var source = { foo: "oof", bar: "rab", baz: "zab" };
|
|
hstore.stringify(source, function(result) {
|
|
...
|
|
// result = '"foo"=>"oof", "bar"=>"rab", "baz"=>"zab"'
|
|
...
|
|
});
|
|
```
|
|
|
|
### parse
|
|
|
|
```javascript
|
|
var hstore = require('pg-hstore')();
|
|
var source = '"foo"=>"oof", "bar"=>"rab", "baz"=>"zab"';
|
|
hstore.parse(source, function(result) {
|
|
...
|
|
// result = { foo: "oof", bar: "rab", baz: "zab" }
|
|
...
|
|
});
|
|
```
|