models/usessiondb.py¶
models.usessiondb ¶
USessionDB
USessionDB ¶
Bases: DBBase
USessionDB Collection
Parameters:
Name | Type | Description | Default |
---|---|---|---|
token |
str
|
If is |
None
|
Attributes:
Name | Type | Description |
---|---|---|
token |
str
|
An session token. |
Source code in models/usessiondb.py
add ¶
save
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data |
dict
|
The data to insert. |
required |
Returns:
Type | Description |
---|---|
InsertOneResult
|
Return the inserted data. |
Source code in models/usessiondb.py
get ¶
index ¶
To make collection's index
Indexs
created_at
ipinfo
uid
alive