All Questions
Tagged with database object-oriented
46 questions
2
votes
0
answers
43
views
Barebones Qt/QML app that generates a list of dishes and then a shopping list with ingredients
I have written a simple app that generates a menu in the form of a list of recipes.
It furthermore generates a shopping list, given a menu, consisting of the (unique) ingredients in the recipes that ...
2
votes
1
answer
91
views
Database buffer class
I designed the following DataBaseBuffer class, to be used by different threads that generate queries and need to send them to the database. It was inspired by ...
-2
votes
1
answer
196
views
Insert row into database using static or non-static method [closed]
I would like to know if there are any benefits of one of the following 2 methods which insert an object into a database
The first function calls the Model method statically, creating a new instance of ...
10
votes
6
answers
4k
views
Console Library System in C++
I'm a beginner and came up with this simple project in C++. Any feedback would be very much appreciated.
GitHub Repo
Note: I'm using a file called "db.txt" as a database.
main.cpp
...
2
votes
0
answers
424
views
SQLite C/ADO VBA library with reflection
SQLite C/ADO VBA library with reflection
The SQLiteCAdo library is a VBA middleware facilitating access to SQLite databases. Its two subpackages provide alternative connectivity options: via ADODB/...
7
votes
2
answers
229
views
Connect to MYSQL database in PHP with prepared statements
I have recently learned about using the functions exposed by the PDO extension. I created a db class which can handle common actions like create, update, delete and select. Is this method a correct ...
2
votes
0
answers
97
views
Extending the SecureADODB library
SecureADODB is a very instructive VBA OOP demo. I have played with SecureADODB for a while and plan to integrate it into the prototype of my database manager application. In my previous post, I showed ...
1
vote
2
answers
134
views
Repeated DB connection at max user connections
I am trying to create class with connect to mysql database. And if there is max number of connections I want to wait and try it again. I figured out, how it can works, but I am not sure, if its the ...
1
vote
0
answers
169
views
Database connector in Python
I've been trying to build an ORM. I started with the connector layer, which is responsible for the database server connections and executes raw SQL as the code below shows.
I have built the ...
3
votes
3
answers
2k
views
Dynamic PHP PDO insert method
This is my attempt at making a class for dynamic PDO queries in PHP.
The code works, but I would like the hear what I can improve to make it more secure and readable.
...
6
votes
1
answer
193
views
Polymorphic Data Socket Factory with Query Contingency Protocols in Python
I work on a small data team where we developed this tool when we began experiencing several job failures on our legacy big data systems. We have several data lakes, each with their own API, and until ...
0
votes
2
answers
1k
views
Fetching data from your database in a constructor
I have this item (an item is an object linked to a xml view), to build it I need 2 things, get labels from codes, and get text from the strings.xml android file.
please ignore the long to int and int ...
2
votes
1
answer
316
views
Connecting 2 databases: one for admins and one for customers
I am working with 2 databases.
One for admins ('backoffice') and one for users.
Account managers: Use the 'backoffice' database to manage customer accounts.
Customers: Whenever a users connects ...
1
vote
2
answers
235
views
Synchronizer for importing XML files into a database when folder content changes
I have created a Synchronizer, the purpose of which is to read data from an XML source file and store the result in a DB.
I have different source types, for example Student.XML, School.XML, etc. ...
2
votes
2
answers
230
views
Class to provide access to various database sources
I'm struggling to understand how to implement principles of encapsulation, inheritance and polymorphism to break this code into logical parts. My background is in VBS/Classic ASP and database ...