You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the docs, I'm unable to sync my models to my DB.
I'm starting with a brand new DB, with no tables so I ran denogres --init to bootstrap models in my project.
I created models/UserModel.ts with the following:
Finally, I run denogres --db-sync to create the users table with all the appropriate columns, but I simply get the following error:
> denogres --db-sync
To avoid all potential prompts, please consider running your command with the -x flag.
Sending fatal alert BadCertificate
TLS connection failed with message: invalid peer certificate contents: invalid peer certificate: UnknownIssuer
Defaulting to non-encrypted connection
error: Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'application_name')
tableListObj[el.table_name][el.column_name] = {
^
at https://deno.land/x/[email protected]/src/functions/introspect.ts:153:52
at Array.forEach (<anonymous>)
at introspect (https://deno.land/x/[email protected]/src/functions/introspect.ts:144:14)
at async sync (https://deno.land/x/[email protected]/src/functions/sync.ts:30:22)
I'm importing from https://deno.land/x/[email protected]/mod.ts, and deno --version prints the following:
Following the docs, I'm unable to sync my models to my DB.
I'm starting with a brand new DB, with no tables so I ran
denogres --init
to bootstrap models in my project.I created
models/UserModel.ts
with the following:and then re-export that model in
models/model.ts
:Finally, I run
denogres --db-sync
to create the users table with all the appropriate columns, but I simply get the following error:I'm importing from
https://deno.land/x/[email protected]/mod.ts
, anddeno --version
prints the following:The text was updated successfully, but these errors were encountered: