MCPcopy Create free account
hub / github.com/shabados/database / BaseModel

Class BaseModel

lib/models/BaseModel.js:8–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6const { Model, snakeCaseMappers } = require( 'objection' )
7
8class BaseModel extends Model {
9 // To avoid too many SQL variables error
10 static get defaultEagerAlgorithm() {
11 return Model.JoinEagerAlgorithm
12 }
13
14 static get useLimitInFirst() {
15 return true
16 }
17
18 static get columnNameMappers() {
19 return snakeCaseMappers()
20 }
21}
22
23module.exports = BaseModel

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…