larryvnz
larryvnz
DTDrizzle Team
Created by Ed on 12/6/2024 in #help
New error just started appearing in Drizzle Studio...
driver: 'aws-data-api', dialect: 'postgresql', Hotfix patch (run in root folder of your project)
sed -i '' 's/const proxy = async (params) => {/const proxy = async (params) => {\n params.sql = params.sql.replace(\/\\$(\\d)\/g, '\'':$1'\'');/g' node_modules/drizzle-kit/bin.cjs
sed -i '' 's/const proxy = async (params) => {/const proxy = async (params) => {\n params.sql = params.sql.replace(\/\\$(\\d)\/g, '\'':$1'\'');/g' node_modules/drizzle-kit/bin.cjs
3 replies
DTDrizzle Team
Created by CaptainFantastic on 8/13/2024 in #help
Error using drizzle-kit studio
here's my hacky workaround plugged into node_modules/drizzle-kit/bin.cjs const proxy = async (params) => { params.sql = params.sql.replace('con.contype AS constraint_type', 'cast(con.contype AS VARCHAR) AS constraint_type'); ....
6 replies