![]() These databases store and process data on the server and to retrieve any data, you need to download it from the server. There are libraries called Connectors which make receiving and sending things to that server easier. Meaning to work with them, you don't include the entire engine in your code, but rather, the engine and all the data is hosted somewhere on a server, and you connect to that server over the internet. There is a database engine and a web server in them. Mysql and other hosted databases are programs. It is good for storing the app's configuration data or any other user-side data. It uses the user's machine to process the data and stores it on the user's disk. Notice that SQLite is a library, not a program. You specify a file path, it will create it and you can do whatever you do in a database (design, relations, SQL commands, etc.) That works really well (some caveats of course).Ī database engine is a piece of code that reads and writes data to files on disk in a special way that is fast and has some features. I usually use SQLite for development/ unit testing, and use PostgreSQL in production. To give you a bit of background: I've done a lot of work with Python/SqlAlchemy lately (coming from a C++/C# background), and have become a huge fan. Make sure you really need C++ here, compared to Python you will need a lot more time to get things running. Venturing out into database territory is a lot harder with C++. ![]() Look closely at the SQL queries it generates (set echo to True in the engine connection), and learn. Start with SqlAlchemy and play around with the ORM (Object Relational Mapper). So by all means, start with SQLite, learn a lot, and try other databases later (I would recommend PostgreSQL).Ībout Python/C++: if you start, Python is a lot easier to work with than C++. When using good libraries (such as SqlAlchemy) the cost of migration can even be (close to) zero. Migration is generally easy when you stick to standard SQL queries and data types. SQL, modelling, JOIN queries, transactions etc. Apart from that, relational databases are very much alike. The big difference with MySQL is that MySQL is a database server, like almost every other database. It is a full-blown relational database, just an embedded one. Just jump in!ĭon't be fooled by SQLite, it's present everywhere: in your browser, in your phone, in applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |