Skip to content

Instantly share code, notes, and snippets.

View javierlinked's full-sized avatar
🎯
Focusing

Javier javierlinked

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am javierlinked on github.
  • I am javierlinked (https://keybase.io/javierlinked) on keybase.
  • I have a public key ASC6LGV5b5kgTfcyecGWhB6kgv2_f2Serf2fGQtWybsLCAo

To claim this, I am signing this object:

/*
* This exercise has been updated to use Solidity version 0.8.5
* See the latest Solidity updates at
* https://solidity.readthedocs.io/en/latest/080-breaking-changes.html
*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.16 <0.9.0;
contract SimpleBank {
@javierlinked
javierlinked / client.ts
Created January 15, 2023 22:43
retriable middleware for Prisma v4
import { PrismaClient, Prisma } from "@prisma/client";
import { Env } from "../utils";
import log from "npmlog";
/**
* As described in https://www.prisma.io/docs/guides/performance-and-optimization/connection-management#prismaclient-in-long-running-applications
* This function creates a Prisma Client that will retry queries if they fail.
* @param env @type {Env}
* @param connectionString @type {string}
* @returns Prisma Client @type {PrismaClient}