mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-21 07:45:01 +02:00
added explicit connector registration
This commit is contained in:
@@ -37,8 +37,10 @@
|
||||
#include "Poco/Data/RowFormatter.h"
|
||||
#include "Poco/Data/RecordSet.h"
|
||||
#include "Poco/Data/SQLite/Notifier.h"
|
||||
#include "Poco/Data/SQLite/Connector.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
using Poco::delegate;
|
||||
using Poco::Timespan;
|
||||
using Poco::Exception;
|
||||
@@ -368,6 +370,9 @@ void doShell(DBEventHandler& dbEventHandler)
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
// register SQLite connector
|
||||
Poco::Data::SQLite::Connector::registerConnector();
|
||||
|
||||
// HTTPServer instance
|
||||
RequestHandlerFactory* pFactory = new RequestHandlerFactory;
|
||||
HTTPServer srv(pFactory, 9980);
|
||||
|
Reference in New Issue
Block a user