design doco, some more .. classes is the wrong word... so is packages really... lets...
[goDBhammer.git] / src / dbibridge.go
index 0b9b97a..4c72f2f 100644 (file)
@@ -8,7 +8,7 @@ import (
        "unsafe";
 )
 
-type DBConnection struct {
+type DBIConnection struct {
        dbconn C.dbi_conn;
        dbinit bool;
 }
@@ -23,9 +23,9 @@ func DBICreate()(connection *DBConnection)
        return dbCon;
 }
 
-//func (thisDBConn *DBConnection)DBIConnect(dbtype string, host string, username string, password string, database string)
+//func (thisDBConn *DBIConnection)DBIConnect(dbtype string, host string, username string, password string, database string)
 // for some reason, the above doesnt work how i'd expect..
-func DBIConnect(thisDBConn *DBConnection, dbtype string, host string, username string, password string, database string)
+func DBIConnect(thisDBConn *DBIConnection, dbtype string, host string, username string, password string, database string)
 {
        C.dbi_initialize(nil);
        
@@ -40,12 +40,12 @@ func DBIConnect(thisDBConn *DBConnection, dbtype string, host string, username s
        thisDBConn.dbinit = true;
 }
 
-func ExecSQL(thisDBConn *DBConnection, SQL string)
+func ExecSQL(thisDBConn *DBIConnection, SQL string)
 {
        C.dbi_conn_query((unsafe.Pointer)(thisDBConn.dbconn), C.CString(SQL));
 }
 
-func DBIDisconnect(thisDBConn *DBConnection)
+func DBIDisconnect(thisDBConn *DBIConnection)
 {
        C.dbi_conn_close((unsafe.Pointer)(thisDBConn.dbconn));
 }
\ No newline at end of file