Added store_mysql_fake persistence solution, to compile a ROC CMS system with mysql interface, but no real mysql driver.
This is mainly during dev using sqlite, to include the mysql interfaces without depending on related C .lib files that are not always compiled.
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
note
|
||||||
|
description: "Summary description for {CMS_STORAGE_STORE_MYSQL}."
|
||||||
|
date: "$Date$"
|
||||||
|
revision: "$Revision$"
|
||||||
|
|
||||||
|
class
|
||||||
|
CMS_STORAGE_STORE_MYSQL
|
||||||
|
|
||||||
|
inherit
|
||||||
|
CMS_STORAGE_NULL
|
||||||
|
|
||||||
|
create
|
||||||
|
make
|
||||||
|
|
||||||
|
feature
|
||||||
|
|
||||||
|
make
|
||||||
|
do
|
||||||
|
default_create
|
||||||
|
end
|
||||||
|
|
||||||
|
end -- class CMS_STORAGE_STORE_MYSQL
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
note
|
||||||
|
description: "[
|
||||||
|
Interface responsible to instantiate CMS_STORAGE_STORE_MYSQL object.
|
||||||
|
]"
|
||||||
|
author: "$Author$"
|
||||||
|
date: "$Date$"
|
||||||
|
revision: "$Revision$"
|
||||||
|
|
||||||
|
class
|
||||||
|
CMS_STORAGE_STORE_MYSQL_BUILDER
|
||||||
|
|
||||||
|
inherit
|
||||||
|
CMS_STORAGE_NULL_BUILDER
|
||||||
|
redefine
|
||||||
|
storage
|
||||||
|
end
|
||||||
|
|
||||||
|
create
|
||||||
|
make
|
||||||
|
|
||||||
|
feature {NONE}
|
||||||
|
|
||||||
|
make
|
||||||
|
do
|
||||||
|
end
|
||||||
|
|
||||||
|
feature
|
||||||
|
|
||||||
|
storage (a_setup: CMS_SETUP; a_error_handler: ERROR_HANDLER): detachable CMS_STORAGE_NULL
|
||||||
|
-- CMS Storage object based on CMS setup `a_setup`.
|
||||||
|
do
|
||||||
|
a_error_handler.add_custom_error (0, "Could not connect to the MySQL storage", Void)
|
||||||
|
end
|
||||||
|
|
||||||
|
end -- class CMS_STORAGE_STORE_MYSQL_BUILDER
|
||||||
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
<redirection xmlns="http://www.eiffel.com/developers/xml/configuration-1-16-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-16-0 http://www.eiffel.com/developers/xml/configuration-1-16-0.xsd" uuid="F79448C5-95FA-4BAD-9194-A6142F9EE041" message="Obsolete: use store_mysql.ecf !" location="store_mysql.ecf">
|
||||||
|
</redirection>
|
||||||
26
library/persistence/store_mysql_fake/store_mysql.ecf
Normal file
26
library/persistence/store_mysql_fake/store_mysql.ecf
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||||
|
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-16-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-16-0 http://www.eiffel.com/developers/xml/configuration-1-16-0.xsd" name="store_mysql_fake" uuid="F79448C5-95FA-4BAD-9194-A6142F9EE041" library_target="store_mysql_fake">
|
||||||
|
<description>CMS Eiffel Store MySQL persistence solution FAKE!!!</description>
|
||||||
|
<target name="store_mysql_fake">
|
||||||
|
<root all_classes="true"/>
|
||||||
|
<option warning="true">
|
||||||
|
</option>
|
||||||
|
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
|
||||||
|
<library name="cms" location="..\..\..\cms.ecf" readonly="false"/>
|
||||||
|
<library name="cms_app_env" location="..\..\app_env\app_env.ecf"/>
|
||||||
|
<library name="crypto" location="$ISE_LIBRARY\unstable\library\text\encryption\crypto\crypto.ecf"/>
|
||||||
|
<library name="encoder" location="$ISE_LIBRARY\contrib\library\web\framework\ewf\text\encoder\encoder.ecf"/>
|
||||||
|
<library name="error" location="$ISE_LIBRARY\contrib\library\utility\general\error\error.ecf"/>
|
||||||
|
<library name="json" location="$ISE_LIBRARY\contrib\library\text\parser\json\library\json.ecf" readonly="false"/>
|
||||||
|
<library name="logging" location="$ISE_LIBRARY\library\runtime\logging\logging.ecf"/>
|
||||||
|
<library name="model" location="..\..\model\cms_model.ecf"/>
|
||||||
|
<library name="time" location="$ISE_LIBRARY\library\time\time.ecf"/>
|
||||||
|
<cluster name="persistence_store_mysql_fake" location=".\src\" recursive="true">
|
||||||
|
<file_rule>
|
||||||
|
<exclude>/.svn$</exclude>
|
||||||
|
<exclude>/CVS$</exclude>
|
||||||
|
<exclude>/EIFGENs$</exclude>
|
||||||
|
</file_rule>
|
||||||
|
</cluster>
|
||||||
|
</target>
|
||||||
|
</system>
|
||||||
Reference in New Issue
Block a user