You are not logged in.
I think that this could be done using ZEOS:
Zeos7.2-beta branches_ testing_Revision 3628:
http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.2/
(Firebird/InterBase, MariaDB/MySQL, PostgreSQL, SQLite, Oracle, Sybase, MSSQL, ADO(Windows); Lazarus, Delphi, CodeTyphon; 32/64-bit).
Zeos7.3-beta branches_ testing_Revision 3632(test version):
http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.3/
(Firebird/InterBase, MariaDB/MySQL, PostgreSQL, SQLite, Oracle, Sybase, MSSQL, ADO(Windows), OLE DB-MSSQL(Windows); Lazarus, Delphi, CodeTyphon; 32/64-bit).
http://zeoslib.sourceforge.net/viewtopi … &start=338
Arnaud, could you try to create such Universal MVC-Server Demo?
Michal
From what I see CodeTyphon current version(5.30), release date 29-Apr-2015:
http://www.pilotlogic.com/sitejoom/inde … codetyphon
includes the latest version of ZEOS 7.2 beta r3619(r3627).
Michal
Update ZEOS in CodeTyphon involves replacing the contents from the "C:\codetyphon\typhon\components\pl_ZeosDBO\source\*"
on contents of the current Revision from directory "src\*" and rebuild of the entire CodeTyphon.
Michal
@Thomas-Acia,
Use the version:
Zeos7.2-beta branches_ testing_Revision 3619(3627):
http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.2/
I have not encountered significant problems in all my tests:
http://zeoslib.sourceforge.net/viewtopi … 664#p38406
Michal
And what about with PDFCreator?:
http://www.pdfforge.org/pdfcreator
Michal
Thank you,
Now and in Windows 10 is fine.
Michal
Arnaud,
Whence can take these errors on Windows 10-64 build 10049 ?:
2.9. External database:
- TQuery: 2,003 assertions passed 18.61ms
! External database - SynDBRemote
! Exception ESQLDBRemote raised with messsage:
! TSQLDBServerHttpApi.Create: administrator rights needed to register URI root on port 888
- DB properties persistence: 7 assertions passed 3.60ms
- External records: 2 assertions passed 778us
- Auto adapt SQL: 708 assertions passed 70.84ms
- Crypted database: 253,275 assertions passed 299.01ms
- External via REST: 170,354 assertions passed 916.66ms
- External via virtual table: 170,354 assertions passed 1.53s
- External via REST with change tracking: 180,454 assertions passed 2.47s
- JET database: 7,007 assertions passed 885.14ms
Total failed: 0 / 799,211 - External database PASSED 6.68sOn Windows 7-64 and 8.1-64 is all right.
Delphi XE2-32.
mORMot 1.18.1242
Michal
Arnaud,
Maybe it was not a problem SQLite, but there was something wrong in TestSQL3.
It looks like that now (in 1.18.1197) is well.
Michal
Arnaud,
SQLite drastically slowed down in writing (TestSQL3.exe, 15 - External DB performance)
It looks like it works in 'synchronous = FULL' mode?
(Delphi XE2-32).
Michal
@wloochacz, @ab,
In my Delphi XE2-32 it looks so:
requires
rtl,
vcl,
xmlrtl,
dbrtl,
AnyDAC_Phys_D16,
AnyDAC_ComI_D16,
AnyDAC_PhysIB_D16,
AnyDAC_Comp_D16;and it works.
Michal
With interesting from the world of databases:
http://blogs.enterprisedb.com/2014/09/2 … r-reality/
Michal
Wesołych Świąt Bożego Narodzenia i szczęśliwego Nowego Roku 2015.
Michał
@ab, All
According to my knowledge ZEOS always starts transaction after Connect and Commit/Rollback(at the lowest level).
so
(in AutoCommit mode (Default))
ExecSQL;
ExecSQL;
or
AutoCommit := false;
ExecSQL;
ExecSQL;
Commit/Rollback
StartTransaction - disables (temporarily) AutoCommit mode and starts an additional
transaction then Commit/Rollback refers to the current transaction.
So
StartTransaction;
ExecSQL;
ExecSQL;
Commit/Rollback;
is acceptable.
Michal
@ab
1.18.610
Remained just good old error on Windows 8/10-64
! - TPdfDocument: 1 / 2 FAILED 67.73ms
Michal
@ab,
For this you do not need an MSDN account.
Just create an account on the outlook.com.
Michal
@ab
You may try on Windows 10-64 (Build 9879).
For now, it's free.
...
! - TSynTableStatement: 6 / 205 FAILED 1.45ms
...
! - TPdfDocument: 1 / 2 FAILED 19.64ms
...
Synopse framework used: 1.18.605
Running on wEight_64 with code page 1252
SQlite3 engine used: 3.8.7.2
Generated with: Delphi XE2 compiler
Time elapsed for all tests: 78.55s
Tests performed at 2014-12-03 11:24:51
Total assertions failed for all test suits: 7 / 17,584,116
! Some tests FAILED: please correct the code.
Done - Press ENTER to ExitMichal
@ab
Recently widened the pool of errors in TestSQL3: (1.18.601)
For Windows7-64 is:
! - TSynTableStatement: 6 / 205 FAILED 1.12ms
and for Windows8.1-64:
! - TSynTable: 187 / 875 FAILED 12.39ms
! - TSynTableStatement: 6 / 205 FAILED 415us
and old
! - TPdfDocument: 1 / 2 FAILED 72.43ms
Michal
@AntonE,
Nice, but could you use the convention?
ATypeInfo^.TypeData^.ClassType => GetTypeData(ATypeInfo).ClassType
BInfo.CDS.RecNo.ToString => IntToStr(BInfo.CDS.RecNo)
Older Delphi (eg. XE2) does not compile this.
Michal
@ab,
All the time I have a problem with the 30 - MVC Server for Oracle and ZEOS (FireDAC).
Do not rename the reserved names and do not INSERT.
Oracle-ZEOS test passes:
http://zeoslib.sourceforge.net/viewtopi … 628#p35628
Michal
@alpinistbg
Firebird Embedded "server" supports only one localhost connection(to specified database).
http://www.firebirdsql.org/manual/fbmet … edded.html
Michal
There is one important limitation.
If you use fbembed.dll (instead fbclient.dll) to localhost , the database is not a multi-user.
(The server is bypassed).
And it is not especially more performance, but easier to simple installations.
I think the same is with Embedded MySQL.
Michal
@danielkuettner, @ab,
Perhaps wrong is selected (set) TransactIsolationLevel?
http://www.devrace.com/en/fibplus/articles/479.php
http://www.devrace.com/en/fibplus/articles/3292.php
Currently in ZEOS is:
Params.Add('isc_tpb_version3');
case TransactIsolationLevel of
tiReadCommitted:
begin
Params.Add('isc_tpb_read_committed');
Params.Add('isc_tpb_rec_version');
Params.Add('isc_tpb_nowait');
end;
tiRepeatableRead:
begin
Params.Add('isc_tpb_concurrency');
Params.Add('isc_tpb_nowait');
end;
tiSerializable:
begin
Params.Add('isc_tpb_consistency');
end;
else
begin
{ Add user defined parameters for transaction }
Params.Clear;
Params.AddStrings(Info);
end;
end;The default is tiNone(else).
Michal
@danielkuettner
Could you try ZEOS 7.2 and Firebird with enabled 'hard_commit=TRUE'?
Michal
@ab,
ZEOS MySQL reading By one, was corrected a few days ago by Michael in svn ZEOS 7.2:
http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.2/
Now result is approx. 10 thousand per sec.
Similar to PostgreSQL or Oracle connected locally by ZEOS.
Michal
@ab,
firebird-2.5:
postgresql:
mysql://SERVER
database
username
password
FreeTDS_MsSQL>=2005://MSSERVER
database
username
password
oracle:SERVER
username
password
sqlite:Full Path Filename
ado:Connection String
Useful will be yet Edit for LibraryLocation ![]()
Michal
@ab,
I check.
SynDBExplorer using ZEOS works with:
oracle:
firebird-2.5:
mysql:
postgresql:
sqlite:
FreeTDS_MsSQL>=2005:
ado: (jet,sqlncli)
And work as HTTP server(Remote HTTP) those databases. ![]()
mORMot 1.18.552;
ZEOS 7.2.0-beta r3501 http://zeoslib.sourceforge.net/viewtopi … 354#p35354
Delphi XE2-32.
Michal
@ab,
Thanks.
Now better, although it was useful to refresh the (TableName) list without restarting the application.
Michal
@ab,
After 1.18.548:
VirtualTableExternalRegisterAll(aModel,aExternalDB,[regDoNotRegisterUserGroupTables, regMapAutoKeywordFields]);
still does not work (Oracle) even for SynDBOracle.
Only manually rename Comment allows run 30 - MVC.. .
Michal
@ab,
For me this error (! - TPdfDocument: 1 / 4 FAILED) occurs on:
Windows 8.1-64 and Windows 10-64.
On Windows 7-32 and 7-64 All is OK.
Michal
@ab,
But the "Remote HTTP" can be join in the various databases on the SynDBExplorer-HTTP-server.
Besides, the database can also be changed between restarts SynDBExplorer.
Could you add (button) cache(Table List) refresh?
Michal
@ab,
Thanks,
SynDBExplorer now working with ZEOS too(Firebird, Oracle).
Such a little thing:
In the case of "Remote HTTP" list of metadata(Table Name) is not cleaned and refreshed.
In general, the list of tables is probably unnecessarily cached in SynDBExplorer.config.
select * from ARTICLE
is slow in ZEOS-Oracle too. ![]()
Michal
@ab,
Why are these your connections in SynDBExplorer to Oracle are so slow, and for some of the tables do not work at all?
Could you integrate ZEOS into SynDBExplorer?
Michal
@ab,
It works. ![]()
And if you could add a remote HTTP-SQLite3 server, to which connects the SynDBExplorer? ![]()
ADD: Oh, it probably already added. (1.18.536)
Michal
@ab,
ZEOS still has a problem with INSERT statement in Oracle.
Both the sample data and Add Comment.
SynDBOracle not have this problem.
mORMot 1.18.536; ZEOS 7.2.0-beta r3494.
Michal
@Arnaud
Could you write demo to test the performance of this solution?
Please.
Michal
@ab
With SynDBOracle work but only in a version with Comment1 !!!.
ZEOS and AnyDAC has apparently problem with INSERT.
Any feedback about how to install Oracle XE?
In Windows, you download and install:
http://www.oracle.com/technetwork/datab … index.html
in Linux I have no experience.
Michal
@ab,
I have not tried the SynDBOracle yet, but just as ZEOS behaving AnyDAC/FireDAC (with Oracle).
Michal
@ab,
With the Oracle is not too good.
VirtualTableExternalRegisterAll(aModel,aExternalDB,[regDoNotRegisterUserGroupTables, regMapAutoKeywordFields]);
not helping base is not created and server does not start.
(I do not know whether to emphasize before the name can be used in Oracle?)
However, after replacing Comment on Comment1 database is generated but not all the tables are filled with data(ARTICLE, COMMENT1).
Could you look into Oracle? maybe I missed something.
This may come in handy:
drop table ARTICLE;
drop table ARTICLESEARCH;
drop table AUTHOR;
drop table BLOGINFO;
drop table TAG;
-- drop table COMMENT;
-- drop table COMMENT1;
-- drop table _COMMENT;
mORMot 1.18.525; ZEOS 7.2.0-beta r3489; Delphi XE2-32; W7-64; remote Oracle XE 11.2g.
Michal
@ab,
In all cases, there is now an overloaded URI() method for setting the expected protocol.
Thanks ![]()
By the way, it turned out that the name COMMENT used in Example 30 - MVC... is reserved in Oracle:
https://docs.oracle.com/cd/B19306_01/em … _words.htm
https://docs.oracle.com/cd/B28359_01/se … SQLRF01109
Michal
@ab,
UpperCase should remain in (new) line 558 SynDBZEOS.pas:
L558: SQLSplitTableName(UpperCase(aTablename), Schema,TableName);
(There is a problem with Oracle)
mORMot 1.18.520; ZEOS ZEOS 7.2.0-beta r3489; Delphi XE2-32
Michal
Arnaud,
Where(how) in the case of ZEOS I define (differentiate) connection by?:
- Mssql,
- FreeTDS,
- Ado-SQLNCLI.
Michal
@ab
After last changes:
12 - SynDB Explorer
Error: TSQLConnection.Database field name conflicts with a SQL keyword
on startup.
mORMotr 1.18.496 Delphi XE2-32
Michal
@ab
17 - TClientDataset use
AV on startup.
Delphi XE2-32 (Windows 7-64)
Michal
@All
I would recommend ZEOSLIB 7.2 Revision 3470:
http://zeoslib.sourceforge.net/viewtopi … 064#p35064
Michal
@moctes
By me FB3 is slightly slower than FB2.53 (with a simple single access),
but from what I read it have a lot of interesting extensions.
Michal
@ab
30 - MVC Server from today(ZEOSLIB 7.2 Revision 3465), also works with Firebird 3.0 ![]()
Michal
@ab,
30 - MVC Server
works for me with PostgreSQL 9.3 too.
Currently:
mORMot 2014-11-03 19:54:47 1.18.467
and
ZEOS 7.2 2014-11-04 Revision 3465.
Michal
@corchi72,
Maybe you have old tables:
drop table article;
drop table articlesearch;
drop table author;
drop table bloginfo;
drop table comment;
drop table tag;
Or the old ZEOS or old mORMot?
Michal
@ab
Thanks.
Well, now it works.
Now you can type numerical poppycock. ![]()
Michal