import "./polyfill"; import MySqlQueryBuilder from "./MySqlQueryBuilder"; import { ClientServerOptions, GetGenericDatabaseWithOptions } from "../postgrest"; import { Fetch, GenericSchema } from "../postgrest/types"; /** * MySQL client. */ export default class MySqlClient["options"]> { protected url: string; protected headers: Headers; protected fetch?: Fetch; /** * Creates a MySQL client. * * @param url - URL of the MySQL endpoint * @param options - Named parameters * @param options.headers - Custom headers * @param options.fetch - Custom fetch */ constructor(url: string, { headers, fetch, }?: { headers?: HeadersInit; fetch?: Fetch; }); from(relation: TableName): MySqlQueryBuilder; from(relation: ViewName): MySqlQueryBuilder; }