import { ParseJSONResultsPlugin } from "kysely";
import { JSONColumnPlugin } from "./plugins/json-column-plugin.js";
import { ViewInsertReturningErrorPlugin } from "./plugins/view-insert-returning-error-plugin.js";
import { buildJsonColumnConfig } from "./json-column-config.js";
import { LixSchemaViewMap } from "../schema-view-map.js";
export function createDefaultPlugins() {
    const jsonColumnsConfig = buildJsonColumnConfig({ includeChangeView: true });
    const viewNames = Object.keys(LixSchemaViewMap);
    return [
        new ParseJSONResultsPlugin(),
        JSONColumnPlugin(jsonColumnsConfig),
        new ViewInsertReturningErrorPlugin(viewNames),
    ];
}
//# sourceMappingURL=plugins.js.map