dingmaotu / mql-sqlite3 Goto Github PK
View Code? Open in Web Editor NEWSQLite3 binding for the MQL language (both 32bit MT4 and 64bit MT5)
License: MIT License
SQLite3 binding for the MQL language (both 32bit MT4 and 64bit MT5)
License: MIT License
how solve error database is locked,
pls help me
@dingmaotu
Hi Ding,
Great work! ๐ฅ
Do you think you can also add an example script or EA to put live ticks into the SQLite3 DB?
2020.01.05 21:18:46.845 TestSQLite3 AUDUSDm#,H4: unresolved import function call
2020.01.05 21:18:46.845 Cannot call 'sqlite3.dll::sqlite3_initialize', DLL is not allowed
2020.01.05 21:18:46.844 TestSQLite3 AUDUSDm#,H4: initialized
You say in the readme that the DLL should go into the Library
directory, but you don't say where that is ocated.
MT4 only has a Libraries
directory located under:
"C:\Users\<Username>\AppData\Roaming\MetaQuotes\Terminal\<hash>\MQL4\Libraries\
.
So what is it?
I am using build 1280 of mt4 and I ran into this wierd problem, im not sure if its just me or it will effect others but i wanted to post my (dodgy) fix if anyone else runs into it. Any time i used getColumn on a table field that was larger than around 120characters or used getExtendedSql and the query was over 120 chars long i was getting a blank return value. Im no c programer but i dug around and worked out a dodgy fix just to get me out, I made a single line addition to StringFromUtf8Pointer in Common.mqh after the second call to MultiByteToWideChar.
string StringFromUtf8Pointer(intptr_t psz,int len)
{
if(len < 0) return NULL;
string res;
int required=MultiByteToWideChar(CP_UTF8,0,psz,len,res,0);
StringInit(res,required);
int resLength = MultiByteToWideChar(CP_UTF8,0,psz,len,res,required);
res = StringFormat("%s",res);
if(resLength != required)
{
return NULL;
}
else
{
return res;
}
}
Im no C programer and i have very little idea of what im doing so im unsure what caused this (maybe the copied string in memory doesnt quite jazz with mt4 perfectly) but my hack seems to have fixed it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.