Comments (4)
Hi! Well, in general opening a Database is synonym of opening an existing data file of an application (a SQLite3 *.db3 file). Some application have only one central db3 file, others use many of them.
Thus, in those cases there is no meaning of a "default" Database...
If what you want is "open the unique Database once and use this unique connection everywhere", then you could, for instance, use the design pattern "Singleton" to share the connection across your whole application (a Singleton gives you a unique instance with a static interface).
But sometimes you don't really want to open a file, then you can open a "in memory" Database, but then you still can name it as you like, so there is no real "default one".
Is this clear enough?
Cheers!
from sqlitecpp.
Thanks.
from sqlitecpp.
@SRombauts how can I create a "in memory" database?
from sqlitecpp.
I found in your example01
...thanks!
from sqlitecpp.
Related Issues (20)
- query.bind ???
- getFilename() -Error HOT 9
- Problem with link SqliteCpp with my lib HOT 2
- First time build fails on Windows with MSVC due to carriage return characters HOT 2
- Private members to Protected to enable inheritance
- loop inert and delete, the Active(file) of memory will Abnormal increase
- MinGW cannot find library HOT 2
- Build Error HOT 2
- MSVC: Unresolved symbol SQLite::assertion_failed for example1
- On ORIN: Example1 run error.
- cannot bind to long long (64 bit signed integer)? HOT 4
- it can be shared library? HOT 2
- Issue regarding the overloading of SQLite::Statement::bind
- If the provided filename contains directories or path segments, the database will not be created. HOT 1
- can we add bindBlob(int, const std::string &)? HOT 1
- Is math function possible? HOT 1
- Adding std::optional to bind
- When will the .db-journal file be generated when I don't have any operational database in my project? HOT 1
- LNK2001: unresolved external symbol "SQLite::OPEN_READONLY" HOT 3
- cmake build warning: `cmake --help-policy CMP0148` 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 sqlitecpp.