Durchsuchen nach
Kategorie: Datenbanken

Datenbanken wie MySQL und MongoDB kommen hier vor.

How to add a document to a certain MongoDB document

How to add a document to a certain MongoDB document

When you are searching on the internet how you can upload a document into a MongoDB database the most instruction uses Node.js. But you can also use Python for this case. The problem was in my case that I have saved a document for the tax and revenue office on an external drive, that I have scanned before. In Germany, you always get a normal letter from the tax and revenue office, yes old Germany :-(. This letter you file…

Weiterlesen Weiterlesen

MongoDB Overview about your field names

MongoDB Overview about your field names

If you have a large collection with a lot of fields inside, then there is command where you can check all your field names. Why I should check it? Human aren’t perfect, human makes errors. Yes, your boss does not want to hear this, but in fact every one makes errors. In my case I get this output of my Spanish database (database about Spanish cities) ‚\t‘,‚Abogado‘,‚Academia de inglés‘,‚Acuario‘,‚Aeropuerto‘,‚Agencia de alquiler de equipos‘,‚Agencia de excursiones en canao y kayak‘,‚Agencia de…

Weiterlesen Weiterlesen

How to update MongoDB Compass? (In my case: AlmaLinux)

How to update MongoDB Compass? (In my case: AlmaLinux)

What is MongoDB Compass GUI? MongoDB Compass is a free graphical tool for querying and managing your database. Under the hood, it is built with Electron—a framework that uses Chromium and Node.js. 💡 What is Electron? Electron allows developers to build desktop applications using web technologies like JavaScript, HTML, and CSS. The biggest advantage is that it is cross-platform, meaning it runs seamlessly on Windows, macOS, and Linux. Electron allows developers to build desktop applications using web technologies like JavaScript,…

Weiterlesen Weiterlesen

MongoDB Export a collection (general)

MongoDB Export a collection (general)

MongoDB is a NoSQL database, that stores information in documents instead of tables, and it can store a lot of information. It looks like that: test> db.test.find()[ { _id: ObjectId(’69edadcfb6b4cff75744ba89′), name: ‚Morgentest‘ } ] You see MongoDB follows the JSON standard for documents. Ok, MongoDB stores this for human-readable information, but there is a special format that is called BSON that MongoDB uses, but this is not the subject of this blog entry. If you have a full database (or…

Weiterlesen Weiterlesen

1.000 Einträge in meiner Datenbank über Spanien

1.000 Einträge in meiner Datenbank über Spanien

In meiner Datenbank, über die ich in den letzten Tagen berichtet hatte, habe ich heute am Montag den 1.000 Eintrag geschafft. Damit ist Spanien recht gut dokumentiert. Natürlich geht es immer weiter. Ich habe noch sehr viele Dokumente aus der Anfangszeit, wo ich die Einträge als reine Strings gespeichert habe. Diese werde ich nun so nach und nach in Arrays umwandeln, damit vielen Scripte, in Python auch sehr gut funktionieren und eine hohe Trefferquote bringen. In manchen Regionen ist die…

Weiterlesen Weiterlesen