Prisma, after prisma db push I always have to turn off IDE - prisma

Prisma, after npx prisma db push I always have to turn off IDE and turn on IDE
Otherwise, autoComplete suggestionComplete does not appear and redline appears in the node js code section.
I use GoLand
there is no workaround?

I would suggest you try the GO Client with VS Code and check if you get the same error.
On a side note: Prisma Client GO is not officially maintained anymore, here's the GitHub Issue which describes this in detail: #707

Related

Getting VS code server to run on Sagemaker Studio

I am currently in the process of exploring the possible use of VS Code Server on Sagemaker Studio. Of course, if you sign up through Code Server preview, I was able to set and start it up. However, when I tried to serve it locally, I encountered a blank page after modifying the /default/proxy/XXX part of the url like how we access tensorboard.
Just wondering on whether are there any tinkerers out there that managed to get it working? (and yes, I understand that somebody managed to get it running https://coder.com/docs/code-server/latest/CONTRIBUTING. but wondering whether anybody managed to use the native installation to work properly? Any possible steps that i may be missing?
Check out the blog post here for hosting code-server on SageMaker Studio - https://aws.amazon.com/blogs/machine-learning/host-code-server-on-amazon-sagemaker/
And associated git repo here - https://github.com/aws-samples/amazon-sagemaker-codeserver

"MongoError: no primary found in replicaset" when trying to connect to mongodb database locally or through our galaxy server

I know this question has been asked before, but none of those solutions seem to have worked for me so far.
We've migrated our database over to and IBM cloud hosted mongoDB. I've got the connection working successfully for our .NET applications that use the Mongo.Driver library, but i can't get it work for our meteor app... Here's the connection string I have currently:
mongodb://admin:[PASSWORD]#url1.databases.appdomain.cloud:31928,url2.databases.appdomain.cloud:31928,url3.databases.appdomain.cloud:31928/dyo?authSource=admin;tls=true;tlsInsecure=true;connect=replicaSet;replicaSet=replset
I then run the connection string in this command:
SET MONGO_URL=[connection string shown above] && meteor --settings settings.json
And then we just get the error you see in the title over and over again. This happens on our galaxy server and locally. I feel like i should get this working locally first before deploying to our Galaxy server. Does anyone have any tips as to what could be happening here? I'm new to working with mongodb's and am at a loss
More info:
MongoDB version: 4.4
Meteor version: 1.4.4.1
I ended up fixing our connection issue by including ssl=true in the connection URL and removing all the parameters relating to TLS. I believe this has to do with our older version of meteor we are running, since ssl=true is actually deprecated later on...
Here's a github issue i also created if anyone has the same issue and needs more guidance in the future:
https://github.com/meteor/meteor/issues/12224

Error Please install pg package manually with AWS Lambda serverless framework

recently i had a big headache deploying my serveless application.
I have a lambda function that connect to a Postgresql database. To deploy my application i use serverless framework.
So, after doing my code when testing my code i got the follow error:
Please install pg package manually
But, i have installed pg on my package.json.
All the same the error still happened.
So, why do i have this error if the pg is installed correctly?
After hours and hours of searching and changing my code, i decided to refactor it starting from the bottom.
I took off all plugins in serverless, put the raw code and everything worked fine.
With this i had a direction. Some of my serverless plugins was breaking my connection with Postgresql.
So, after testing i got that the break was happening because of serverless-bundle plugin that i use to optimize my app.
After searching, i got the answer on the package website.
To use the Sequelize package along with pg, you'll need to ignore it from Webpack and using the dialectModule option. Read more here.
In your serverless.yml:
custom:
bundle:
ignorePackages:
- pg-native
And in your Lambda code:
const sequelize = new Sequelize(
process.env.DB_NAME,
process.env.DB_USERNAME,
process.env.DB_PASSWORD,
{
host: process.env.DB_HOST,
dialect: process.env.DB_DIALECT,
dialectModule: pg
}
);
So, that's it!

How to connect Intellij IDEA 2019.2.3 and MongoDB

I would like to ask where I should add configuration of servers in Intellij IDEA 2019.2.3. I already check it in older version and it is not the same.
I tried to connect it like in this tutorial
https://adilmca.wordpress.com/2016/02/20/installation-and-configuration-of-jetbrains-ides-for-mongodb/
In new version when I press add server there is no Mongo. Is it possible? Where can I find it?
Thanks so much.
Tried it on IDEA 2019.2.3, it works fine here. It's an 3rd-party plugin. You can use it by accessing: View->Tool Windows-> Mongo Explorer. See the plugin docs for more information.
PS: There are some issues in 2019.1+, and the author of Mongo Plugin seems out of contact for a while.
you can try this plugin Mongo DB Browser for latest versions (2021.3+) of IDEs

Visual Studio (Mac) Could not add Entity Framework

I am trying to build a basic web app, and I want to connect it to a database. I have a heroku account so I started trying to get it hooked up to a Postgres DB and ran into issues around SSL and external connections. I tried to update my code and realized that I was missing the references to SQL so tried adding Entity Framework through the package manager.
It goes through the checking compatibility and then tells me
Could not add Entity Framework
I am new to this so not sure what I can provide to help get the answer.
Am I just going about it wrong, is EF not what I need to make a simple DB connection?