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
{{ message }}
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
Just attempted a quick cockroach db connect and query. Initially it failed on the Postgres version check. I tweaked that function and queries started working.
varpatio=require("../patio");//set camelize = true if you want snakecase database columns as camelcasepatio.camelize=true;// insecure mode password doesnt matterconstDB=patio.connect("cockroach://root:[email protected]:26257/bank");// console.log(DB);constAccounts=patio.addModel("accounts");// This works...returnDB.fetch("SELECT * FROM accounts").all().chain((data)=>{console.log(data);}).chain(()=>{console.log("go sync")returnAccounts.sync().chain(()=>{console.log('synced...')returnAccounts.naked().all().chain((state)=>{console.log(state);}).chain(process.exit,function(err){console.log(err)process.exit(1);});},function(err){console.log(err);process.exit();});});
Just attempted a quick cockroach db connect and query. Initially it failed on the Postgres version check. I tweaked that function and queries started working.
Pushed to the
cockroach
branch. https://github.com/C2FO/patio/compare/cockroach?expand=1The text was updated successfully, but these errors were encountered: