summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/App_Data/mysql4-sqlmap.xml
diff options
context:
space:
mode:
authorwei <>2006-12-20 03:15:04 +0000
committerwei <>2006-12-20 03:15:04 +0000
commit2c221ea67d0512961beea8fbcb30b23865c16bb0 (patch)
treeaba7901f8e286d0b4101fc9022247897881bd5c1 /demos/time-tracker/protected/App_Data/mysql4-sqlmap.xml
parent2570226fbac3e26b1e94896b50d1db4bc1aa3308 (diff)
Add quickstart docs for Active Record and SqlMap
Diffstat (limited to 'demos/time-tracker/protected/App_Data/mysql4-sqlmap.xml')
-rw-r--r--demos/time-tracker/protected/App_Data/mysql4-sqlmap.xml36
1 files changed, 12 insertions, 24 deletions
diff --git a/demos/time-tracker/protected/App_Data/mysql4-sqlmap.xml b/demos/time-tracker/protected/App_Data/mysql4-sqlmap.xml
index 84468044..ff7f636e 100644
--- a/demos/time-tracker/protected/App_Data/mysql4-sqlmap.xml
+++ b/demos/time-tracker/protected/App_Data/mysql4-sqlmap.xml
@@ -1,29 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<sqlMapConfig>
-
- <typeHandlers>
- <typeHandler type="TimeTrackerUser"
- callback="TimeTrackerUserTypeHandler"/>
- <typeHandler type="DateTime"
- callback="DateTimeTypeHandler" />
- </typeHandlers>
+
+ <typeHandler type="TimeTrackerUser" class="TimeTrackerUserTypeHandler"/>
+ <typeHandler type="DateTime" class="DateTimeTypeHandler" />
-
- <provider class="TAdodb">
- <datasource
- driver="mysql"
- username="time-tracker"
- password="prado"
- host="localhost"
- database="time-tracker" />
- </provider>
-
- <sqlMaps>
- <sqlMap resource="MySQL4/users.xml"/>
- <sqlMap resource="MySQL4/projects.xml"/>
- <sqlMap resource="MySQL4/category.xml" />
- <sqlMap resource="MySQL4/time-entry.xml" />
- <sqlMap resource="MySQL4/reports.xml" />
- </sqlMaps>
+ <connection class="TDbConnection"
+ ConnectionString="mysql:host=localhost;dbname=time-tracker"
+ Username="time-tracker" Password="prado" />
+
+ <sqlMap resource="MySQL4/users.xml"/>
+ <sqlMap resource="MySQL4/projects.xml"/>
+ <sqlMap resource="MySQL4/category.xml" />
+ <sqlMap resource="MySQL4/time-entry.xml" />
+ <sqlMap resource="MySQL4/reports.xml" />
</sqlMapConfig> \ No newline at end of file