npm drizzle-orm 0.17.4

latest releases: 0.36.1-bc6e8f5, 0.36.1, 0.36.0-96d338b...
21 months ago

We have released SQLite Proxy Driver


Perfect way to setup custom logic for database calls instead of predefined drivers

Should work well with serverless apps 🚀

// Custom Proxy HTTP driver
  const db = drizzle(async (sql, params, method) => {
    try {
      const rows = await axios.post('http://localhost:3000/query', { sql, params, method });

      return { rows: rows.data };
    } catch (e: any) {
      console.error('Error from sqlite proxy server: ', e.response.data)
      return { rows: [] };
    }
  });

For more example you can check full documentation

Don't miss a new drizzle-orm release

NewReleases is sending notifications on new releases.