Generated
Executes constructor.
constructor
The db value.
db
The function result.
Objective: In module packages/db/src/repositories/api-keys.repository.ts, run constructor.
packages/db/src/repositories/api-keys.repository.ts
Behavior: accepts db; returns a value.
Private
Executes create.
create
The d value.
d
Objective: In module packages/db/src/repositories/api-keys.repository.ts, run create.
Behavior: Async; accepts d; returns a value; invokes this.db .insert(apiUsageLogs) .values({ apiKeyId: d.apiKeyId.
this.db .insert(apiUsageLogs) .values({ apiKeyId: d.apiKeyId
Returns the result of findByKey.
findByKey
The apiKeyId value.
apiKeyId
The limit value.
limit
Objective: In module packages/db/src/repositories/api-keys.repository.ts, retrieve data through findByKey.
Behavior: Async; accepts apiKeyId and limit; returns a value; invokes this.db .select() .from(apiUsageLogs) .where(eq(apiUsageLogs.
this.db .select() .from(apiUsageLogs) .where(eq(apiUsageLogs
Executes
constructor.