Preparing search index...
The search index is not available
Realtime Web Suite Server package
Realtime Web Suite Server package
DBServiceInstance
Class DBServiceInstance
Hierarchy (
view full
)
RWSService
DBServiceInstance
Index
Constructors
constructor
Properties
_RELOADABLE
client
connected
opts
_instances
Methods
clone
Database
collection
Exists
connect
ToDB
create
Base
Mongo
Client
create
Base
Mongo
ClientDB
create
Time
Series
Collection
delete
find
By
find
One
By
get
Collection
Handler
get
Reloadable
insert
reload
Service
update
watch
Collection
get
Singleton
Constructors
constructor
new DBService
Instance
(
opts
?
)
:
DBServiceInstance
Parameters
opts
:
IDBClientCreate
= null
Returns
DBServiceInstance
Properties
_RELOADABLE
_RELOADABLE
:
boolean
= false
Private
client
client
:
PrismaClient
<
PrismaClientOptions
,
never
,
DefaultArgs
>
Private
connected
connected
:
boolean
= false
Private
opts
opts
:
IDBClientCreate
= null
Static
Protected
_instances
_instances
:
{
[
key
:
string
]
:
RWSService
;
}
= {}
Type declaration
[
key
:
string
]:
RWSService
Methods
clone
Database
clone
Database
(
source
,
target
)
:
Promise
<
void
>
Parameters
source
:
string
target
:
string
Returns
Promise
<
void
>
collection
Exists
collection
Exists
(
collection_name
)
:
Promise
<
boolean
>
Parameters
collection_name
:
string
Returns
Promise
<
boolean
>
Private
connect
ToDB
connect
ToDB
(
opts
?
)
:
void
Parameters
opts
:
IDBClientCreate
= null
Returns
void
Private
create
Base
Mongo
Client
create
Base
Mongo
Client
(
)
:
Promise
<
MongoClient
>
Returns
Promise
<
MongoClient
>
Private
create
Base
Mongo
ClientDB
create
Base
Mongo
ClientDB
(
)
:
Promise
<
Db
>
Returns
Promise
<
Db
>
create
Time
Series
Collection
create
Time
Series
Collection
(
collection_name
)
:
Promise
<
Collection
<
ITimeSeries
>
>
Parameters
collection_name
:
string
Returns
Promise
<
Collection
<
ITimeSeries
>
>
delete
delete
(
collection
,
conditions
)
:
Promise
<
void
>
Parameters
collection
:
string
conditions
:
any
Returns
Promise
<
void
>
find
By
find
By
(
collection
,
conditions
,
fields
?
,
ordering
?
)
:
Promise
<
IRWSModel
[]
>
Parameters
collection
:
string
conditions
:
any
fields
:
string
[]
= null
ordering
:
{
[
fieldName
:
string
]
:
string
;
}
= null
[
fieldName
:
string
]:
string
Returns
Promise
<
IRWSModel
[]
>
find
One
By
find
One
By
(
collection
,
conditions
,
fields
?
,
ordering
?
)
:
Promise
<
IRWSModel
>
Parameters
collection
:
string
conditions
:
any
fields
:
string
[]
= null
ordering
:
{
[
fieldName
:
string
]
:
string
;
}
= null
[
fieldName
:
string
]:
string
Returns
Promise
<
IRWSModel
>
Private
get
Collection
Handler
get
Collection
Handler
(
collection
)
:
any
Parameters
collection
:
string
Returns
any
get
Reloadable
get
Reloadable
(
)
:
string
Returns
string
insert
insert
(
data
,
collection
,
isTimeSeries
?
)
:
Promise
<
any
>
Parameters
data
:
any
collection
:
string
isTimeSeries
:
boolean
= false
Returns
Promise
<
any
>
reload
Service
reload
Service
<
T
>
(
this
,
...
params
)
:
InstanceType
<
T
>
Type Parameters
T
extends
(
new
(
...
args
)
=>
RWSService
)
Parameters
this
:
T
Rest
...
params
:
any
[]
Returns
InstanceType
<
T
>
update
update
(
data
,
collection
)
:
Promise
<
IRWSModel
>
Parameters
data
:
any
collection
:
string
Returns
Promise
<
IRWSModel
>
watch
Collection
watch
Collection
(
collectionName
,
preRun
)
:
Promise
<
any
>
Parameters
collectionName
:
string
preRun
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
Promise
<
any
>
Static
get
Singleton
get
Singleton
<
T
>
(
this
)
:
InstanceType
<
T
>
Type Parameters
T
extends
(
new
(
...
args
)
=>
RWSService
)
Parameters
this
:
T
Returns
InstanceType
<
T
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_RELOADABLE
client
connected
opts
_instances
clone
Database
collection
Exists
connect
ToDB
create
Base
Mongo
Client
create
Base
Mongo
ClientDB
create
Time
Series
Collection
delete
find
By
find
One
By
get
Collection
Handler
get
Reloadable
insert
reload
Service
update
watch
Collection
get
Singleton
src
errors
index.ts
RWSErrorCodes
tests
index.ts
RWSTestSuite
services
AWSService.ts
AWSServiceInstance
AWSService
AppConfigService.ts
AppConfigService
getAppConfig
AuthService.ts
AuthServiceInstance
AuthService
ConsoleService.ts
ConsoleServiceInstance
ConsoleService
DBService.ts
DBServiceInstance
DBService
EFSService.ts
EFSServiceInstance
EFSService
LambdaService.ts
LambdaServiceInstance
LambdaService
MD5Service.ts
MD5ServiceInstance
MD5Service
ProcessService.ts
ProcessServiceInstance
ProcessService
ServerService.ts
RWSServer
_service.ts
RWSService
S3Service.ts
S3ServiceInstance
S3Service
TraversalService.ts
TraversalServiceInstance
TraversalService
UtilsService.ts
UtilsServiceInstance
UtilsService
VectorStoreService.ts
VectorStoreServiceInstance
VectorStoreService
commands
_command.ts
RWSCommand
ICmdParams
index.ts
RWSAppCommands
controllers
_controller.ts
RWSController
IRequestParams
models
convo
ConvoLoader.ts
RWSConvo
IChainCallOutput
IConvoDebugXMLData
IEmbeddingsHandler
ISplitterParams
VectorStore.ts
RWSVectorStore
prompts
_prompt.ts
RWSPrompt
ILLMChunk
IRWSPromptJSON
IRWSPromptRequestExecutor
IRWSPromptStreamExecutor
IRWSSinglePromptRequestExecutor
ChainStreamType
types
TimeSeriesModel.ts
TimeSeriesModel
interfaces
ITimeSeries.ts
ITimeSeries
_model.ts
RWSModel
IRWSModel
sockets
_socket.ts
RWSSocket
RWSJSONMessage
interfaces
IAppConfig.ts
IAppConfig
IAuthUser.ts
IAuthUser
IContextToken.ts
IContextToken
IDbUser.ts
IDbUser
ITheSocket.ts
ITheSocket
ServerTypes.ts
RWSServerPair
RWSServerStarter
ServerControlSet
WsRoutes
routing
routes.ts
IHTTProute
IPrefixedHTTProutes
RWSHTTPRoutingEntry
index.ts
RWSTrackType
RWSannotations
init.ts
serverInit
install.ts
setupPrisma
setupRWS
Generated using
TypeDoc