跳转到内容

Fatworm 2014:Specification

来自ACM Class Wiki

JDBC Specification

Your JDBC driver should at least implement the methods listed here:

class java.sql.Connection:

   Statement createStatement();
   void close();
   // void commit();
   // void setAutoCommit(boolean autoCommit);

class java.sql.Statement:

   boolean  execute(String sql);
   ResultSet  getResultSet();

class java.sql.ResultSet:

   ResultSetMetaData  getMetaData();
   void  beforeFirst();
   Object getObject(int columnIndex);
   boolean  next();

class java.sql.ResultSetMetaData:

   int  getColumnCount();
   int  getColumnType(int columnIndex);

java.sql.DriverManager.getConnection(String jdbcURL) will be used to create connections. The general form of the connection url is:

   jdbc:fatworm://absolute/path/to/your/db/[;property=value[;property=value]]


Your driver class should be fatworm.driver.Driver, since the client will call

   Class.forName("fatworm.driver.Driver")

to initialize your driver.

Syntax of FwSQL

Note: the syntax of FwSQL(Fatworm-SQL)is a simplified version of MySQL. Please go to http://dev.mysql.com/doc/ for more details.

Currently, the syntax is the same as before, please check it at the bottom of Page [1]