kreteshq / kretes

A Programming Environment for TypeScript & Deno
https://kretes.dev/
Other
676 stars 35 forks source link

kretes_1.database is not a function #108

Closed michaelKurowski closed 4 years ago

michaelKurowski commented 4 years ago

Kretes: 0.71 OS: Ubuntu 18.04.4 LTS

Using database as in documentation, throws an error: image

As database exported member from kretes is not recognized as a function, so passing template literals to it doesn't work.

zaiste commented 4 years ago

@michaelKurowski could you run pgcli as shown in this video and show me your results when executing the \d command ?

2020-10-16 18 23 07

michaelKurowski commented 4 years ago
mkurowski@mkurowski-Latitude-5480:~/OSS/kretes-example-app/kretes_demo$ nix-shell --run 'sh'
sh-4.4$ pgcli
Server: PostgreSQL 12.4
Version: 3.0.0
Chat: https://gitter.im/dbcli/pgcli
Home: http://pgcli.com
postgres> \d
+----------+--------+--------+---------+
| Schema   | Name   | Type   | Owner   |
|----------+--------+--------+---------|
+----------+--------+--------+---------+
SELECT 0
Time: 0.037s
postgres>
zaiste commented 4 years ago

@michaelKurowski in pgcli could you run

create table widgets (
  id serial primary key,
  name text,
  amount integer
);

and then try to trigger the browse route again ?

zaiste commented 4 years ago

@michaelKurowski I've updated the docs. Feel free to reopen if the error doesn't go away on your side.