@lowdefy/docs 4.0.0-alpha.5 → 4.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.0.0-alpha.6](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.5...v4.0.0-alpha.6) (2022-01-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **docs:** Added redis connection documentation. ([ee1620b](https://github.com/lowdefy/lowdefy/commit/ee1620bb41d8aa3f32e05e9b7e03c7986365c59f))
12
+
13
+
14
+ ### Features
15
+
16
+ * Add _diff to client operators as well as server. ([4e23fec](https://github.com/lowdefy/lowdefy/commit/4e23fec8a4985d7453dfcf750298bc0bedeb34a2))
17
+
18
+
19
+
20
+
21
+
6
22
  # [4.0.0-alpha.5](https://github.com/lowdefy/lowdefy/compare/v4.0.0-alpha.4...v4.0.0-alpha.5) (2021-11-27)
7
23
 
8
24
  **Note:** Version bump only for package @lowdefy/docs
@@ -0,0 +1,147 @@
1
+ # Copyright 2020-2021 Lowdefy, Inc
2
+
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ _ref:
16
+ path: templates/general.yaml.njk
17
+ vars:
18
+ pageId: Redis
19
+ pageTitle: Redis
20
+ section: Connections
21
+ filePath: connections/Redis.yaml
22
+ content:
23
+ - id: markdown_intro
24
+ type: MarkdownWithCode
25
+ properties:
26
+ content: |
27
+ [`Redis`](http://redis.io/) is an open-source, in-memory key-value data structure store. Redis offers a set of versatile in-memory data structures (strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams) that allow the creation of many custom applications. Key use cases for Redis include database, caching, session management and message broker.
28
+
29
+ Lowdefy integrates with Redis using the one of the recommended [Node.js clients (node-redis)](https://github.com/redis/node-redis).
30
+
31
+ - id: markdown_connection
32
+ type: MarkdownWithCode
33
+ properties:
34
+ content: |
35
+ ## Connections
36
+
37
+ Connection types:
38
+ - Redis
39
+
40
+ ### Redis
41
+
42
+ #### Properties
43
+ - `connection: object | string `: __Required__ - Connection object or string to pass to the [`redis client`](https://github.com/redis/node-redis) redis client.
44
+
45
+ The connection object accepts will be passed to the redis client verbatim, so check out the [configuration instructions](https://github.com/redis/node-redis/blob/master/docs/client-configuration.md).
46
+
47
+ #### Examples
48
+
49
+ ###### Redis with connection object:
50
+ ```yaml
51
+ connections:
52
+ - id: redis
53
+ type: Redis
54
+ properties:
55
+ connection:
56
+ username:
57
+ _secret: REDIS_USERNAME
58
+ password:
59
+ _secret: REDIS_PASSWORD
60
+ database:
61
+ _secret: REDIS_DATABASE
62
+ socket:
63
+ host:
64
+ _secret: REDIS_HOST
65
+ port:
66
+ _secret: REDIS_PORT
67
+ ```
68
+ Environment variables:
69
+ ```
70
+ LOWDEFY_SECRET_REDIS_USERNAME = user
71
+ LOWDEFY_SECRET_REDIS_PASSWORD = password
72
+ LOWDEFY_SECRET_REDIS_DATABASE = 4
73
+ LOWDEFY_SECRET_REDIS_HOST = redis.server.com
74
+ LOWDEFY_SECRET_REDIS_PORT = 5000
75
+ ```
76
+
77
+ ###### Redis with connection string:
78
+ ```yaml
79
+ connections:
80
+ - id: redis
81
+ type: Redis
82
+ properties:
83
+ connection:
84
+ _secret: REDIS_CONNECTION_STRING
85
+ ```
86
+ Environment variables:
87
+ ```
88
+ LOWDEFY_SECRET_REDIS_CONNECTION_STRING = redis://user:password@redis:server.com:5000/4'
89
+ ```
90
+ - id: markdown_requests
91
+ type: MarkdownWithCode
92
+ properties:
93
+ content: |
94
+ ## Requests
95
+
96
+ Request types:
97
+ - Redis
98
+
99
+ ### Redis
100
+
101
+ #### Properties
102
+
103
+ - `command: string`: **Required** - Redis command to be executed, accepts all of the [out-of-the-box Redis commands](https://redis.io/commands).
104
+ - `parameters: array`: An array of parameters to be passed to the redis command.
105
+ - `modifiers: object`: The redis modififers to be passed to the redis command.
106
+
107
+ #### Examples
108
+
109
+ ###### Setting a key-value pair in redis:
110
+
111
+ ```yaml
112
+ id: redisRequest
113
+ type: Redis
114
+ connectionId: redis
115
+ properties:
116
+ command: set
117
+ parameters:
118
+ - key
119
+ - value
120
+ ```
121
+
122
+ ###### Getting a value from redis:
123
+
124
+ ```yaml
125
+ id: redisRequest
126
+ type: Redis
127
+ connectionId: redis
128
+ properties:
129
+ command: get
130
+ parameters:
131
+ - key
132
+ ```
133
+
134
+ ###### Setting a key-value pair only if key does not exist:
135
+
136
+ ````yaml
137
+ id: redisRequest
138
+ type: Redis
139
+ connectionId: redis
140
+ properties:
141
+ command: set
142
+ parameters:
143
+ - key
144
+ - value
145
+ modififers:
146
+ nx: true
147
+ ```
package/menus.yaml CHANGED
@@ -515,6 +515,9 @@
515
515
  - id: PostgreSQL
516
516
  type: MenuLink
517
517
  pageId: PostgreSQL
518
+ - id: Redis
519
+ type: MenuLink
520
+ pageId: Redis
518
521
  - id: SendGridMail
519
522
  type: MenuLink
520
523
  pageId: SendGridMail
@@ -19,7 +19,6 @@ _ref:
19
19
  pageId: _diff
20
20
  pageTitle: _diff
21
21
  filePath: operators/_diff.yaml
22
- env: Server Only
23
22
  methods:
24
23
  - name: deep
25
24
  types: |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/docs",
3
- "version": "4.0.0-alpha.5",
3
+ "version": "4.0.0-alpha.6",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -40,5 +40,5 @@
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "995fcdb020927f3cdc626fc99c15a2e4137bd962"
43
+ "gitHead": "2530e31af795b6a3c75ac8f72c8dbe0ab5d1251b"
44
44
  }
package/pages.yaml CHANGED
@@ -143,6 +143,7 @@
143
143
  - _ref: connections/MySQL.yaml
144
144
  # - _ref: connections/OracleDB.yaml
145
145
  - _ref: connections/PostgreSQL.yaml
146
+ - _ref: connections/Redis.yaml
146
147
  - _ref: connections/SendGridMail.yaml
147
148
  - _ref: connections/SQLite.yaml
148
149
  - _ref: connections/Stripe.yaml