Comments (6)
well, I put that sample quickly and so its a bug. I will have a look into it, but also PR is appreciated
from wxdatabase.
On the other hand if this is a bug, then perhaps it would be worth thinking about using some of the wxWidgets smart pointers here. Also for result sets because it would avoid having to close them each time, they would simply go out of focus and be deleted.
Thinking about this a bit more, for the examples it is probably unnecessary. Instead we can just declare the objects locally on the stack.
I still think a smart pointer (i.e. wxScopedPtr) typedef'd to something would be useful for things like transactions and possibly resultsets that can be passed around methods.
from wxdatabase.
Thinking about this a bit more, for the examples it is probably unnecessary. Instead we can just declare the objects locally on the stack.
Yeah that will be better, can you test that and make a PR? I currently work on adding ODBC support so I'm a bit tight (I work on "free time")I still think a smart pointer (i.e. wxScopedPtr) typedef'd to something would be useful for things like transactions and possibly resultsets that can be passed around methods.
Can you open new Issue on specific things that you want me to add (eg transaction, explaining your solution)?
from wxdatabase.
I will open until this bug is fixed (its simple .. but bug anyway ;))
from wxdatabase.
Sorry, closed by accident!
I will look into a concrete scheme for this while I am working on the Firebird backend, so it may take some time.
from wxdatabase.
from wxdatabase.
Related Issues (20)
- CMake does not find MySQL Connector C 32-bit on 64-bit system HOT 5
- Redefinition of struct timespec (PostgreSQL vs mingw-w64) HOT 1
- Add Firebird backend HOT 3
- Update Readme to Reflect current status
- CMake can't find PostgreSQL headers on Ubuntu/Debian HOT 1
- Remove Exceptions HOT 2
- Online docs missing? HOT 2
- SQLite3 WHERE with Like does not work HOT 1
- wxDatabaseException does not derive from std::exception HOT 1
- Use Smart Pointers and avoid as much use of raw pointers as possible
- wxDatabase and WXwidget 3.0.5 HOT 26
- Update Bundled SQLite to 3.36.0 HOT 1
- wxWidgets 3.1.5 and wxDatabase and ODBC HOT 6
- Working with ODBC with a graphical interface. HOT 6
- Add Support for ODBC in CMake HOT 3
- add wxDatabase C'tors that doe not have Database in them HOT 2
- PGS: Fix Perfomance issue HOT 1
- PGS: Replace PQsetdbLogin with PQconnectdb HOT 1
- Implement ChangeDatabase for all backend HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wxdatabase.