Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
multum authored Oct 26, 2019
1 parent 1b45a8a commit 7b9a0ba
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ const metalize = new Metalize({
const tables = await metalize.read.tables(['public.users', 'public.events']);
console.log(tables);
/**
{
'public.users': {
Map {
'public.users' => {
columns: [ ... ],
primaryKey: { ... },
foreignKeys: [ ... ],
unique: [ ... ],
indexes: [ ... ]
},
'public.events': { ... }
'public.events' => { ... }
}
*/
```
Expand Down Expand Up @@ -87,24 +87,24 @@ const metalize = new Metalize({
const tables = await metalize.read.tables(['public.users', 'public.events']);
console.log(tables);
/**
{
'public.users': {
Map {
'public.users' => {
columns: [ ... ],
primaryKey: { ... },
foreignKeys: [ ... ],
unique: [ ... ],
indexes: [ ... ],
checks: [ ... ]
},
'public.events': { ... }
'public.events' => { ... }
}
*/

const sequences = await metalize.read.sequences(['public.users_seq']);
console.log(sequences);
/**
{
'public.users_seq': {
Map {
'public.users_seq' => {
start: '1',
min: '1',
max: '9999',
Expand Down

0 comments on commit 7b9a0ba

Please sign in to comment.