mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
bbaf619f63
swc_bundler: - [x] Fix wrapped esms. (denoland/deno#9307) - [x] Make test secure.
21 lines
654 B
TypeScript
21 lines
654 B
TypeScript
// Loaded from https://deno.land/x/denodb@v1.0.18/lib/translators/translator.ts
|
|
|
|
|
|
import type { Query, QueryDescription } from "../query-builder.ts";
|
|
import type { FieldAlias } from "../data-types.ts";
|
|
|
|
/** Translator interface for translating `QueryDescription` objects to regular queries. */
|
|
export class Translator {
|
|
/** Translate a query description into a regular query. */
|
|
translateToQuery(query: QueryDescription): Query {
|
|
return "";
|
|
}
|
|
|
|
/** Format a field to the database format, e.g. `userName` to `user_name`. */
|
|
formatFieldNameToDatabase(
|
|
fieldName: string | FieldAlias,
|
|
): string | FieldAlias {
|
|
return fieldName;
|
|
}
|
|
}
|