mirror of
https://github.com/strapi/strapi.git
synced 2025-07-22 00:17:15 +00:00
13 lines
258 B
JavaScript
13 lines
258 B
JavaScript
'use strict';
|
|
|
|
const KnexBuilder = require('knex/lib/query/querybuilder');
|
|
const KnexRaw = require('knex/lib/raw');
|
|
|
|
const isKnexQuery = (value) => {
|
|
return value instanceof KnexBuilder || value instanceof KnexRaw;
|
|
};
|
|
|
|
module.exports = {
|
|
isKnexQuery,
|
|
};
|