Comments (2)
While compiler warning about unused variables are harmless, the last one about vedisExportBuiltinVfs()
does mean that no suitable VFS layer were found for the architecture you are targeting; In which case, Vedis cannot save anything to disk, nor create files, only in-memory operations are allowed. If the architecture you are targeting is a POSIX-Like, then define UNIXES as a global compile directive to build the library with the UNIX VFS.
from vedis.
Ok well what I am writting to is a simple SPI Flash FAT file system on an Espresif System on a chip ESP32-PICO in Espressif's on build system. Not really unix not really an OS at all.
https://www.espressif.com/en/products/socs/esp32
If I compile the library as is I get
../main/vedis.c:3076:73: error: parameter 'pUserData' set but not used [-Werror=unused-but-set-parameter]
static sxi32 vedisTokenizeInput(SyStream *pStream,SyToken *pToken,void *pUserData,void *pCtxData)
~~~~~~^~~~~~~~~
../main/vedis.c:3076:89: error: parameter 'pCtxData' set but not used [-Werror=unused-but-set-parameter]
static sxi32 vedisTokenizeInput(SyStream *pStream,SyToken *pToken,void *pUserData,void *pCtxData)
~~~~~~^~~~~~~~
In file included from ../main/vedis.c:7298:
/home/g/esp/esp-idf/components/newlib/platform_include/sys/uio.h: At top level:
/home/g/esp/esp-idf/components/newlib/platform_include/sys/uio.h:17:32: warning: 'struct iovec' declared inside parameter list will not be visible outside of this definition or declaration
int writev(int s, const struct iovec *iov, int iovcnt);
^~~~~
/home/g/esp/esp-idf/components/newlib/platform_include/sys/uio.h:19:36: warning: 'struct iovec' declared inside parameter list will not be visible outside of this definition or declaration
ssize_t readv(int fd, const struct iovec *iov, int iovcnt);
^~~~~
../main/vedis.c:7300:10: fatal error: sys/mman.h: No such file or directory
#include <sys/mman.h>
^~~~~~~~~~~~
cc1: some warnings being treated as errors
compilation terminated.
I am fairly new to this environment but people have had sqlite running on it and also the nodemcu system uses Redis going on the same chip.
I will eventually find the right way to implement the mmap functions It must be in there somewhere but my personal requirements can be satisfied with a simple csv. So maybe personally I will just stick with that for now.
I think there is a good place for a small lightweight database for these SOC chips though they are growing in size and popularity.
I am just not the man for that job.
Thanks heaps for your reply.
:) Greg
from vedis.
Related Issues (13)
- vedis contains all C source code in one file.it is not easy to read. HOT 1
- Bug in defragment page HOT 2
- question on vedis cluster HOT 3
- Database file format HOT 2
- Get all keys HOT 2
- Incomplete vedis.c file. & dbsize command HOT 1
- File descriptor leak HOT 1
- "OSError: b'IO error while opening journal file:", "OSError: b'IO error while opening the target database file:"
- Random store failures without any error reported HOT 9
- HASH and LIST with On-Disk DB not work on OPENWRT HOT 4
- missing command LRANGE HOT 6
- command "LINDEX" not working!
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 vedis.