Skip to content

Commit

Permalink
0.22.8 (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks authored Sep 27, 2022
1 parent 7e8a4d8 commit aa65cfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edgedb",
"version": "0.22.7",
"version": "0.22.8",
"description": "The official Node.js client library for EdgeDB",
"homepage": "https://edgedb.com/docs",
"author": "EdgeDB <[email protected]>",
Expand Down
29 changes: 3 additions & 26 deletions qb/playground.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,14 @@
// tslint:disable:no-console
import {setupTests} from "./test/setupTeardown";
import e from "./dbschema/edgeql-js";
import {createClient, Duration, IsolationLevel} from "edgedb";
import type {typeutil} from "edgedb/dist/reflection";
import {createClient} from "edgedb";

async function run() {
await setupTests();

const baseClient = createClient();
const client = baseClient
.withConfig({
// 10 seconds
session_idle_transaction_timeout: Duration.from({seconds: 10}),
// 0 seconds === no timeout
query_execution_timeout: Duration.from({seconds: 0}),
allow_bare_ddl: "NeverAllow",
allow_user_specified_id: false,
apply_access_policies: true,
})
.withRetryOptions({
attempts: 3,
backoff: (attemptNo: number) => {
// exponential backoff
return 2 ** attemptNo * 100 + Math.random() * 100;
},
})
.withTransactionOptions({
isolation: IsolationLevel.Serializable, // only supported value
deferrable: false,
readonly: false,
});
const client = createClient();

const query = e.datetime(new Date());
const query = e.set(...[]);

console.log(query.toEdgeQL());
const result = await query.run(client);
Expand Down

0 comments on commit aa65cfe

Please sign in to comment.