Skip to content

Commit

Permalink
Merge pull request #23 from oliver-oloughlin/dev
Browse files Browse the repository at this point in the history
updated README for v0.1.2
  • Loading branch information
oliver-oloughlin authored May 26, 2023
2 parents 63e7867 + db17784 commit fad0b34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Optional and nullable properties are allowed. If you wish to use Zod, you can
create your Zod object schema and use its type as your model.

```ts
import type { Model } from "https://deno.land/x/kvdex@v0.1.1/mod.ts"
import type { Model } from "https://deno.land/x/kvdex@v0.1.2/mod.ts"

interface User extends Model {
username: string
Expand All @@ -35,7 +35,7 @@ The "createDb" function is used for creating a new database instance. It takes a
Deno KV instance and a schema builder function as arguments.

```ts
import { createDb } from "https://deno.land/x/kvdex@v0.1.1/mod.ts"
import { createDb } from "https://deno.land/x/kvdex@v0.1.2/mod.ts"

const kv = await Deno.openKv()

Expand Down Expand Up @@ -381,7 +381,7 @@ result will be an object containing: id, versionstamp and all the entries in the
document value.

```ts
import { flatten } from "https://deno.land/x/kvdex@v0.1.1/mod.ts"
import { flatten } from "https://deno.land/x/kvdex@v0.1.2/mod.ts"

// We assume the document exists in the KV store
const doc = await db.users.find(123n)
Expand Down

0 comments on commit fad0b34

Please sign in to comment.