Home / Function/ commentLikesConfig() — drizzle-orm Function Reference

commentLikesConfig() — drizzle-orm Function Reference

Architecture documentation for the commentLikesConfig() function in libsql-batch.test.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  f6a989b6_9c1d_ea5f_70d0_69087e1d5b94["commentLikesConfig()"]
  cddbfccd_6dad_87a9_dbc4_c051b29bc7ef["libsql-batch.test.ts"]
  f6a989b6_9c1d_ea5f_70d0_69087e1d5b94 -->|defined in| cddbfccd_6dad_87a9_dbc4_c051b29bc7ef
  style f6a989b6_9c1d_ea5f_70d0_69087e1d5b94 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integration-tests/tests/sqlite/libsql-batch.test.ts lines 112–121

export const commentLikesConfig = relations(commentLikesTable, ({ one }) => ({
	comment: one(commentsTable, {
		fields: [commentLikesTable.commentId],
		references: [commentsTable.id],
	}),
	author: one(usersTable, {
		fields: [commentLikesTable.creator],
		references: [usersTable.id],
	}),
}));

Domain

Subdomains

Frequently Asked Questions

What does commentLikesConfig() do?
commentLikesConfig() is a function in the drizzle-orm codebase, defined in integration-tests/tests/sqlite/libsql-batch.test.ts.
Where is commentLikesConfig() defined?
commentLikesConfig() is defined in integration-tests/tests/sqlite/libsql-batch.test.ts at line 112.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free