1# *************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20# *************************************************************
21
22How to write my own sdbc driver
23
24Pre implementation steps
25- search all occurances of skeleton and replace them to a name which you prefer
26
271. Implement a class called driver or modify the existing skeleton	-> have a look at SDriver.?xx
282. Implement a class called connection					-> have a look at SConnection.?xx
293. Have a look at the DatabaseMetaData					-> see SDatabaseMetaData.cxx
30	The methods which should be implemented at least are
31		- getTableTypes
32		- getTables
33		- getTypeInfo
34		- getColumns
35
364. You need a statement to show/access some data				-> have a look at SStatement.cxx
37										-> especially executeQuery()
38
395. The ResultSet: without you see nothing					-> look at SResultSet.cxx
406. The ResultSetMetaData needed to get some information about what are waiting for us
41										-> look at SResultSetMetaData.cxx
42
437. The prepared statement is the last class we have to implement now
44	-> you have to allow statements like "SELECT * FROM table WHERE id = ?"
45
468. congratulations you have now implement your own driver :-)
47