Skip to content

Commit 7729ee1

Browse files
committed
chore: wip
1 parent 86d9b16 commit 7729ee1

File tree

1 file changed

+0
-14
lines changed
  • storage/framework/core/database/src

1 file changed

+0
-14
lines changed

storage/framework/core/database/src/utils.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,6 @@ export function getDialect() {
4949

5050
export const now = sql`now()`
5151

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-
6652
export const db = new Kysely<Database>({
6753
dialect: getDialect(),
6854
})

0 commit comments

Comments
 (0)