better-buddy-share-backend
Preparing search index...
dao/db/StreamStatsTypesDAO
StreamStatsTypesDAO
Class StreamStatsTypesDAO
Hierarchy (
View Summary
)
BaseDAO
StreamStatsTypesDAO
Implements
IStreamStatsDAO
Index
Constructors
constructor
Properties
db
Methods
count
Statistic
Types
create
Statistic
Type
delete
Statistic
Type
By
Id
execute
Query
execute
Query
Multiple
get
All
Statistic
Types
get
Statistic
Type
By
Id
get
Statistic
Type
By
Name
map
Cache
Error
map
Error
map
Postgres
Error
scalar
statistic
Type
Exists
By
Id
statistic
Type
Exists
By
Name
update
Statistic
Type
Constructors
constructor
new
StreamStatsTypesDAO
(
dbClient
:
IDbClient
)
:
StreamStatsTypesDAO
Parameters
dbClient
:
IDbClient
Returns
StreamStatsTypesDAO
Properties
Protected
Readonly
db
db
:
IDbClient
Methods
count
Statistic
Types
countStatisticTypes
()
:
Promise
<
number
>
Returns
Promise
<
number
>
create
Statistic
Type
createStatisticType
(
name
:
string
,
description
:
string
|
null
,
)
:
Promise
<
StreamStatisticsType
|
null
>
Parameters
name
:
string
description
:
string
|
null
Returns
Promise
<
StreamStatisticsType
|
null
>
delete
Statistic
Type
By
Id
deleteStatisticTypeById
(
stream_statistic_type_id
:
number
)
:
Promise
<
boolean
>
Parameters
stream_statistic_type_id
:
number
Returns
Promise
<
boolean
>
Protected
execute
Query
executeQuery
<
T
>
(
query
:
string
,
params
?:
any
[]
)
:
Promise
<
T
|
null
>
Type Parameters
T
Parameters
query
:
string
Optional
params
:
any
[]
Returns
Promise
<
T
|
null
>
Protected
execute
Query
Multiple
executeQueryMultiple
<
T
>
(
query
:
string
,
params
?:
any
[]
)
:
Promise
<
T
[]
>
Type Parameters
T
Parameters
query
:
string
Optional
params
:
any
[]
Returns
Promise
<
T
[]
>
get
All
Statistic
Types
getAllStatisticTypes
()
:
Promise
<
StreamStatisticsType
[]
>
Returns
Promise
<
StreamStatisticsType
[]
>
get
Statistic
Type
By
Id
getStatisticTypeById
(
stream_statistic_type_id
:
number
,
)
:
Promise
<
StreamStatisticsType
|
null
>
Parameters
stream_statistic_type_id
:
number
Returns
Promise
<
StreamStatisticsType
|
null
>
get
Statistic
Type
By
Name
getStatisticTypeByName
(
name
:
string
)
:
Promise
<
StreamStatisticsType
|
null
>
Parameters
name
:
string
Returns
Promise
<
StreamStatisticsType
|
null
>
Protected
map
Cache
Error
mapCacheError
(
error
:
any
)
:
DaoError
Parameters
error
:
any
Returns
DaoError
Protected
map
Error
mapError
(
error
:
any
)
:
DaoError
Parameters
error
:
any
Returns
DaoError
Protected
map
Postgres
Error
mapPostgresError
(
error
:
any
)
:
DaoError
Parameters
error
:
any
Returns
DaoError
Protected
scalar
scalar
<
T
=
any
>
(
query
:
string
,
params
?:
any
[]
)
:
Promise
<
T
>
Type Parameters
T
=
any
Parameters
query
:
string
Optional
params
:
any
[]
Returns
Promise
<
T
>
statistic
Type
Exists
By
Id
statisticTypeExistsById
(
stream_statistic_type_id
:
number
)
:
Promise
<
boolean
>
Parameters
stream_statistic_type_id
:
number
Returns
Promise
<
boolean
>
statistic
Type
Exists
By
Name
statisticTypeExistsByName
(
name
:
string
)
:
Promise
<
boolean
>
Parameters
name
:
string
Returns
Promise
<
boolean
>
update
Statistic
Type
updateStatisticType
(
stream_statistic_type_id
:
number
,
name
:
string
,
description
:
string
|
null
,
)
:
Promise
<
StreamStatisticsType
|
null
>
Parameters
stream_statistic_type_id
:
number
name
:
string
description
:
string
|
null
Returns
Promise
<
StreamStatisticsType
|
null
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
db
Methods
count
Statistic
Types
create
Statistic
Type
delete
Statistic
Type
By
Id
execute
Query
execute
Query
Multiple
get
All
Statistic
Types
get
Statistic
Type
By
Id
get
Statistic
Type
By
Name
map
Cache
Error
map
Error
map
Postgres
Error
scalar
statistic
Type
Exists
By
Id
statistic
Type
Exists
By
Name
update
Statistic
Type
better-buddy-share-backend
Loading...