You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`DEL`|`stable`|`DELETE FROM ... WHERE key = ...`|
15
+
|`GET`|`stable`|`SELECT value FROM ... WHERE key = ...`|
16
+
|`KEYS`|`limited-stable`| although, only `*`-globs are supported with `ILIKE` and `%`, because it is the most common scenario for me (to select keys starting with something) |
17
+
|`MGET`|`alpha`|`SELECT value FROM ... WHERE key in (...)`, it might be slow for thousands of keys |
18
+
|`PING`|`stable`|`SELECT 1`|
19
+
|`QUIT`|`stable`| N/A (provided by `redcon`) |
20
+
|`SET`|`stable`|`INSERT` or `UPDATE`, i.e. ["UPSERT" method](https://www.postgresql.org/docs/14/sql-insert.html)|
Copy file name to clipboardexpand all lines: README.md
+3-8
Original file line number
Diff line number
Diff line change
@@ -47,14 +47,9 @@ So I decided to implement PostgreSQL backend for Redis' interface.
47
47
48
48
When you first start postgredis, it will create a table with two columns: unique `key` and `value`. They both are in [text](https://www.postgresql.org/docs/14/datatype-character.html) format. Unique `key` helps with concise "upsert" queries. Thanks to [pgx](https://github.com/jackc/pgx) I don't have think about how to maintain a connection, I just start a [pool](https://github.com/jackc/pgx/tree/master/pgxpool). There is also a logging of sql queries, which is good for debugging.
49
49
50
-
These Redis commands are supported:
51
-
52
-
-`SET` - `INSERT` or `UPDATE`, i.e. ["UPSERT" method](https://www.postgresql.org/docs/14/sql-insert.html)
53
-
-`GET` - `SELECT value FROM ... WHERE key = ...`
54
-
-`DEL` - `DELETE FROM ... WHERE key = ...`
55
-
-`KEYS` - although, only `*`-globs are supported with `ILIKE` and `%`, because it is the most common scenario for me (to select keys starting with something)
0 commit comments