We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86d9b16 commit 7729ee1Copy full SHA for 7729ee1
storage/framework/core/database/src/utils.ts
@@ -49,20 +49,6 @@ export function getDialect() {
49
50
export const now = sql`now()`
51
52
-export function getModelName(model: Model, modelPath: string): string {
53
- if (model.name) return model.name
54
-
55
- const baseName = path.basename(modelPath)
56
57
- return baseName.replace(/\.ts$/, '')
58
-}
59
60
-export function getTableName(model: Model, modelPath: string): string {
61
- if (model.table) return model.table
62
63
- return snakeCase(plural(getModelName(model, modelPath)))
64
65
66
export const db = new Kysely<Database>({
67
dialect: getDialect(),
68
})
0 commit comments