Skip to content

Commit

Permalink
upgrade to deno 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
manyuanrong committed May 16, 2020
1 parent 5c1fce2 commit 8d32e64
Show file tree
Hide file tree
Showing 14 changed files with 205 additions and 189 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ before_install:
- export PATH="/home/travis/.deno/bin:$PATH"

script:
- deno -A -c tsconfig.json ./test.ts
- deno test --unstable --allow-net -c tsconfig.json test.ts
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build Status](https://www.travis-ci.org/manyuanrong/dso.svg?branch=master)](https://www.travis-ci.org/manyuanrong/dso)
![GitHub](https://img.shields.io/github/license/manyuanrong/dso.svg)
![GitHub release](https://img.shields.io/github/release/manyuanrong/dso.svg)
![(Deno)](https://img.shields.io/badge/deno-0.24.0-green.svg)
![(Deno)](https://img.shields.io/badge/deno-1.0.0-green.svg)

`dso` is a simple ORM Library based on [deno_mysql](https://github.com/manyuanrong/deno_mysql)

Expand All @@ -19,7 +19,7 @@ import {
Join,
Model,
Where
} from "https://deno.land/x/dso@0.5.0/mod.ts";
} from "https://deno.land/x/dso@v1.0.0/mod.ts";

// Define a database model
@Model("users")
Expand Down
12 changes: 6 additions & 6 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
export {
assert,
assertEquals,
assertThrowsAsync
} from "https://deno.land/std@v0.35.0/testing/asserts.ts";
assertThrowsAsync,
} from "https://deno.land/std@v0.51.0/testing/asserts.ts";
export {
Client,
ClientConfig,
Connection
} from "https://deno.land/x/mysql@1.5.0/mod.ts";
Connection,
} from "https://deno.land/x/mysql@2.1.0/mod.ts";
export {
Join,
Order,
Query,
replaceParams,
Where
} from "https://deno.land/x/sql_builder@1.4.0/mod.ts";
Where,
} from "https://deno.land/x/sql_builder@1.5.0/mod.ts";

import "./src/Reflect.ts";
12 changes: 10 additions & 2 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
export { Client, ClientConfig, Join, Order, Query, replaceParams, Where } from "./deps.ts";
export {
Client,
ClientConfig,
Join,
Order,
Query,
replaceParams,
Where,
} from "./deps.ts";
export { dso } from "./src/dso.ts";
export * from "./src/field.ts";
export * from "./src/model.ts";
export * from "./src/util.ts";
export * from "./src/util.ts";
Loading

0 comments on commit 8d32e64

Please sign in to comment.