providerrefactor part1
This commit is contained in:
13
src/providers/sqlite3/queries/articleDelete.js
Normal file
13
src/providers/sqlite3/queries/articleDelete.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import * as source from '../../mssql/queries/articleDelete.js';
|
||||
import { translateQueries } from './translate.js';
|
||||
|
||||
const queries = translateQueries(source, 'articleDelete');
|
||||
export const {
|
||||
DELETE_ARTICLELIST, DELETE_BY_ID, DELETE_OPTIONSLIST, GET_CHILD_COUNT,
|
||||
GET_LIST_IDS,
|
||||
} = queries;
|
||||
|
||||
export const DELETE_PICS_BY_ARTICLE = `
|
||||
DELETE FROM pic
|
||||
WHERE id IN (SELECT pic_id FROM articlepic WHERE article_id = @articleId)
|
||||
`;
|
||||
Reference in New Issue
Block a user