Updates
This commit is contained in:
parent
a90706de5d
commit
e1ca42137a
@ -1,21 +1,5 @@
|
||||
interface SQLInsertGenReturn {
|
||||
query: string;
|
||||
values: string[];
|
||||
}
|
||||
type DataFn = () => {
|
||||
placeholder: string;
|
||||
value: string | number | Float32Array<ArrayBuffer>;
|
||||
};
|
||||
type DataType = {
|
||||
[k: string]: string | number | DataFn | undefined | null;
|
||||
};
|
||||
type Params = {
|
||||
data: DataType[];
|
||||
tableName: string;
|
||||
dbFullName?: string;
|
||||
};
|
||||
import { SQLInsertGenParams, SQLInsertGenReturn } from "../../../types";
|
||||
/**
|
||||
* # SQL Insert Generator
|
||||
*/
|
||||
export default function sqlInsertGenerator({ tableName, data, dbFullName, }: Params): SQLInsertGenReturn | undefined;
|
||||
export {};
|
||||
export default function sqlInsertGenerator({ tableName, data, dbFullName, }: SQLInsertGenParams): SQLInsertGenReturn | undefined;
|
||||
|
||||
16
dist/package-shared/types/index.d.ts
vendored
16
dist/package-shared/types/index.d.ts
vendored
@ -2488,3 +2488,19 @@ export interface GithubUserPayload {
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
export interface SQLInsertGenReturn {
|
||||
query: string;
|
||||
values: string[];
|
||||
}
|
||||
export type SQLInsertGenDataFn = () => {
|
||||
placeholder: string;
|
||||
value: string | number | Float32Array<ArrayBuffer>;
|
||||
};
|
||||
export type SQLInsertGenDataType = {
|
||||
[k: string]: string | number | SQLInsertGenDataFn | undefined | null;
|
||||
};
|
||||
export type SQLInsertGenParams = {
|
||||
data: SQLInsertGenDataType[];
|
||||
tableName: string;
|
||||
dbFullName?: string;
|
||||
};
|
||||
|
||||
@ -1,20 +1,4 @@
|
||||
interface SQLInsertGenReturn {
|
||||
query: string;
|
||||
values: string[];
|
||||
}
|
||||
|
||||
type DataFn = () => {
|
||||
placeholder: string;
|
||||
value: string | number | Float32Array<ArrayBuffer>;
|
||||
};
|
||||
|
||||
type DataType = { [k: string]: string | number | DataFn | undefined | null };
|
||||
|
||||
type Params = {
|
||||
data: DataType[];
|
||||
tableName: string;
|
||||
dbFullName?: string;
|
||||
};
|
||||
import { SQLInsertGenParams, SQLInsertGenReturn } from "../../../types";
|
||||
|
||||
/**
|
||||
* # SQL Insert Generator
|
||||
@ -23,7 +7,7 @@ export default function sqlInsertGenerator({
|
||||
tableName,
|
||||
data,
|
||||
dbFullName,
|
||||
}: Params): SQLInsertGenReturn | undefined {
|
||||
}: SQLInsertGenParams): SQLInsertGenReturn | undefined {
|
||||
const finalDbName = dbFullName ? `${dbFullName}.` : "";
|
||||
|
||||
try {
|
||||
|
||||
@ -3180,3 +3180,23 @@ export interface GithubUserPayload {
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface SQLInsertGenReturn {
|
||||
query: string;
|
||||
values: string[];
|
||||
}
|
||||
|
||||
export type SQLInsertGenDataFn = () => {
|
||||
placeholder: string;
|
||||
value: string | number | Float32Array<ArrayBuffer>;
|
||||
};
|
||||
|
||||
export type SQLInsertGenDataType = {
|
||||
[k: string]: string | number | SQLInsertGenDataFn | undefined | null;
|
||||
};
|
||||
|
||||
export type SQLInsertGenParams = {
|
||||
data: SQLInsertGenDataType[];
|
||||
tableName: string;
|
||||
dbFullName?: string;
|
||||
};
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@moduletrace/datasquirel",
|
||||
"version": "5.7.40",
|
||||
"version": "5.7.41",
|
||||
"description": "Cloud-based SQL data management tool",
|
||||
"main": "dist/index.js",
|
||||
"bin": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user