Skip to content

Commit

Permalink
Improve README.
Browse files Browse the repository at this point in the history
  • Loading branch information
shellyln committed Aug 17, 2020
1 parent 0e591be commit cb72962
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v0.1.1
* `[FIX]` Fix CSV resolver: Column names should be not dangerous names.
* Improve README.


## v0.1.0
* First stable release🎉

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const { soql, insert, update, remove, transaction } = build({

### Query
```ts
const result = await soql`
const result = await soql<Partial<Contact>>`
Select
acc.id aid
, acc.Region reg
Expand Down Expand Up @@ -214,7 +214,7 @@ const result = await soql`

### Aggregate
```ts
const aggregationResult = await soql`
const aggregationResult = await soql<ContactAgg>`
Select
count()
, count(id) cnt
Expand Down Expand Up @@ -243,7 +243,7 @@ const updated = await update('Contact', inserted);

await remove('Contact', updated);

const selected = await soql`Select Id, Name from Contact`;
const selected = await soql<Partial<Contact>>`Select Id, Name from Contact`;
const updated2 = await update('Contact', selected);
```

Expand All @@ -268,7 +268,7 @@ await transaction(async (commands, tr) => {
const inserted = await insert('Contact', [{
Name: 'foo',
}]);
const selected = await soql`Select Id, Name from Contact`;
const selected = await soql<Partial<Contact>>`Select Id, Name from Contact`;
const updated = await update('Contact', selected);
await remove('Contact', updated);
});
Expand Down
2 changes: 1 addition & 1 deletion src/_spec/foo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ describe("foo", function() {
disablePrint ?? console.log(JSON.stringify(z, null, 2));
expect(1).toEqual(1);

const zz = await soql`
const zz = await soql<Partial<{id: string}>>`
Select
count(),
count(id) cnt,
Expand Down

0 comments on commit cb72962

Please sign in to comment.