Skip to content
25 changes: 25 additions & 0 deletions .wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -767,3 +767,28 @@ ORM
orm
OGM
ogm
wikipedia
getStatistics
nodesCreated
ResponseError
JedisDataException
getMessage
FalkorDBError
eprintln
RunningQueries
WaitingQueries
helpText
sendCommand
setuser
userInfo
getuser
deluser
logEntries
substrings
timezones
deserialization
subnet
acl
elif
Ok
msg
204 changes: 186 additions & 18 deletions commands/acl.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,37 @@ Usage: `ACL HELP`

#### Example

```
> ACL HELP
```
{% capture shell_0 %}
ACL HELP
{% endcapture %}

{% capture python_0 %}
from falkordb import FalkorDB
client = FalkorDB()
help_text = client.execute_command('ACL', 'HELP')
print(help_text)
{% endcapture %}

{% capture javascript_0 %}
import { FalkorDB } from 'falkordb';
const client = await FalkorDB.connect();
const helpText = await client.sendCommand(['ACL', 'HELP']);
console.log(helpText);
{% endcapture %}

{% capture java_0 %}
FalkorDB client = new FalkorDB();
Object helpText = client.sendCommand("ACL", "HELP");
System.out.println(helpText);
{% endcapture %}

{% capture rust_0 %}
let client = FalkorDB::connect_default();
let help_text = client.execute_command(&["ACL", "HELP"])?;
println!("{:?}", help_text);
{% endcapture %}

{% include code_tabs.html id="acl_help_tabs" shell=shell_0 python=python_0 javascript=javascript_0 java=java_0 rust=rust_0 %}

#### Output

Expand Down Expand Up @@ -55,9 +83,37 @@ Usage: `ACL SETUSER <username> [rule1] [rule2] ...`

#### Example

```
> ACL SETUSER john on >password123 +GRAPH.LIST +GRAPH.RO_QUERY ~*
```
{% capture shell_1 %}
ACL SETUSER john on >password123 +GRAPH.LIST +GRAPH.RO_QUERY ~*
{% endcapture %}

{% capture python_1 %}
from falkordb import FalkorDB
client = FalkorDB()
result = client.execute_command('ACL', 'SETUSER', 'john', 'on', '>password123', '+GRAPH.LIST', '+GRAPH.RO_QUERY', '~*')
print(result)
{% endcapture %}

{% capture javascript_1 %}
import { FalkorDB } from 'falkordb';
const client = await FalkorDB.connect();
const result = await client.sendCommand(['ACL', 'SETUSER', 'john', 'on', '>password123', '+GRAPH.LIST', '+GRAPH.RO_QUERY', '~*']);
console.log(result);
{% endcapture %}

{% capture java_1 %}
FalkorDB client = new FalkorDB();
Object result = client.sendCommand("ACL", "SETUSER", "john", "on", ">password123", "+GRAPH.LIST", "+GRAPH.RO_QUERY", "~*");
System.out.println(result);
{% endcapture %}

{% capture rust_1 %}
let client = FalkorDB::connect_default();
let result = client.execute_command(&["ACL", "SETUSER", "john", "on", ">password123", "+GRAPH.LIST", "+GRAPH.RO_QUERY", "~*"])?;
println!("{:?}", result);
{% endcapture %}

{% include code_tabs.html id="setuser_tabs" shell=shell_1 python=python_1 javascript=javascript_1 java=java_1 rust=rust_1 %}

### ACL GETUSER

Expand All @@ -68,9 +124,37 @@ Usage: `ACL GETUSER <username>`

#### Example

```
> ACL GETUSER john
```
{% capture shell_2 %}
ACL GETUSER john
{% endcapture %}

{% capture python_2 %}
from falkordb import FalkorDB
client = FalkorDB()
user_info = client.execute_command('ACL', 'GETUSER', 'john')
print(user_info)
{% endcapture %}

{% capture javascript_2 %}
import { FalkorDB } from 'falkordb';
const client = await FalkorDB.connect();
const userInfo = await client.sendCommand(['ACL', 'GETUSER', 'john']);
console.log(userInfo);
{% endcapture %}

{% capture java_2 %}
FalkorDB client = new FalkorDB();
Object userInfo = client.sendCommand("ACL", "GETUSER", "john");
System.out.println(userInfo);
{% endcapture %}

{% capture rust_2 %}
let client = FalkorDB::connect_default();
let user_info = client.execute_command(&["ACL", "GETUSER", "john"])?;
println!("{:?}", user_info);
{% endcapture %}

{% include code_tabs.html id="getuser_tabs" shell=shell_2 python=python_2 javascript=javascript_2 java=java_2 rust=rust_2 %}

#### Output

Expand All @@ -90,9 +174,37 @@ Usage: `ACL DELUSER <username>`

#### Example

```
> ACL DELUSER john
```
{% capture shell_3 %}
ACL DELUSER john
{% endcapture %}

{% capture python_3 %}
from falkordb import FalkorDB
client = FalkorDB()
result = client.execute_command('ACL', 'DELUSER', 'john')
print(result)
{% endcapture %}

{% capture javascript_3 %}
import { FalkorDB } from 'falkordb';
const client = await FalkorDB.connect();
const result = await client.sendCommand(['ACL', 'DELUSER', 'john']);
console.log(result);
{% endcapture %}

{% capture java_3 %}
FalkorDB client = new FalkorDB();
Object result = client.sendCommand("ACL", "DELUSER", "john");
System.out.println(result);
{% endcapture %}

{% capture rust_3 %}
let client = FalkorDB::connect_default();
let result = client.execute_command(&["ACL", "DELUSER", "john"])?;
println!("{:?}", result);
{% endcapture %}

{% include code_tabs.html id="deluser_tabs" shell=shell_3 python=python_3 javascript=javascript_3 java=java_3 rust=rust_3 %}

### ACL LIST

Expand All @@ -102,9 +214,37 @@ Usage: `ACL LIST`

#### Example

```
> ACL LIST
```
{% capture shell_4 %}
ACL LIST
{% endcapture %}

{% capture python_4 %}
from falkordb import FalkorDB
client = FalkorDB()
users = client.execute_command('ACL', 'LIST')
print(users)
{% endcapture %}

{% capture javascript_4 %}
import { FalkorDB } from 'falkordb';
const client = await FalkorDB.connect();
const users = await client.sendCommand(['ACL', 'LIST']);
console.log(users);
{% endcapture %}

{% capture java_4 %}
FalkorDB client = new FalkorDB();
Object users = client.sendCommand("ACL", "LIST");
System.out.println(users);
{% endcapture %}

{% capture rust_4 %}
let client = FalkorDB::connect_default();
let users = client.execute_command(&["ACL", "LIST"])?;
println!("{:?}", users);
{% endcapture %}

{% include code_tabs.html id="list_tabs" shell=shell_4 python=python_4 javascript=javascript_4 java=java_4 rust=rust_4 %}

#### Output

Expand All @@ -124,9 +264,37 @@ Usage: `ACL LOG [count]`

#### Example

```
> ACL LOG 10
```
{% capture shell_5 %}
ACL LOG 10
{% endcapture %}

{% capture python_5 %}
from falkordb import FalkorDB
client = FalkorDB()
log_entries = client.execute_command('ACL', 'LOG', '10')
print(log_entries)
{% endcapture %}

{% capture javascript_5 %}
import { FalkorDB } from 'falkordb';
const client = await FalkorDB.connect();
const logEntries = await client.sendCommand(['ACL', 'LOG', '10']);
console.log(logEntries);
{% endcapture %}

{% capture java_5 %}
FalkorDB client = new FalkorDB();
Object logEntries = client.sendCommand("ACL", "LOG", "10");
System.out.println(logEntries);
{% endcapture %}

{% capture rust_5 %}
let client = FalkorDB::connect_default();
let log_entries = client.execute_command(&["ACL", "LOG", "10"])?;
println!("{:?}", log_entries);
{% endcapture %}

{% include code_tabs.html id="log_tabs" shell=shell_5 python=python_5 javascript=javascript_5 java=java_5 rust=rust_5 %}

## Notes

Expand Down
10 changes: 1 addition & 9 deletions commands/graph.constraint-drop.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,7 @@ nav_order: 8

# GRAPH.CONSTRAINT DROP

---
syntax: |
GRAPH.CONSTRAINT DROP key
MANDATORY|UNIQUE
NODE label | RELATIONSHIP reltype
PROPERTIES propCount prop [prop...]
---

Deleted a graph constraint.
Deletes a graph constraint.

[Examples](#examples)

Expand Down
Loading