📄 readme
字号:
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.-->This branch of the Demo subtree contains sample table functions.To build the code, invoke the vti-demo build target in thetop level build script. To build the javadoc, invoke the demodocstarget in the top level build script.Two sql scripts are provided to test-drive these table functions.Use Derby's ij tool to run these scripts:1) sql/demoFileVtis.sql2) sql/demoForeignDbmsVtis.sql1) The first script needs to be customized as explained in thescript's header.This first script exercises the following table functions:a) PropertyFileVTI - a table function for presenting a property fileas a table.b) XmlVTI - a table function for presenting an arbitrary XML file asa table.c) ApacheServerLogVTI - an example of an XmlVTI which makes a tableout of an Apache web server log.d) DerbyJiraReportVTI - an example of an XmlVTI which makes a tableout of a JIRA report.e) SubversionLogVTI - a table function for making a table from theoutput of the "svn log" command.2) The second script runs table functions against the sample MySQLdatabase called "world". To run this script, you must be running aMySQL server which manages the world database. You will also needto customize this script as its header explains. The second scriptexercises the following machinery:a) A table function which queries the CountryLanguage table in theMySQL database.b) A parameterized subscription from several tables in the MySQLdatabase. This subscription is defined by an annotated class calledWorldDBSnapshot.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -