rev 338 - trunk/modules/SQLite

SVN User <[email protected]>
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
Author: mark
Date: 2004-04-13 03:05:27 -0400 (Tue, 13 Apr 2004)
New Revision: 338

Modified:
   trunk/modules/SQLite/SQLite.c
   trunk/modules/SQLite/SQLite.vcproj
Log:
SQLite module in and tested

Modified: trunk/modules/SQLite/SQLite.c
===================================================================
--- trunk/modules/SQLite/SQLite.c	2004-04-13 06:36:15 UTC (rev 337)
+++ trunk/modules/SQLite/SQLite.c	2004-04-13 07:05:27 UTC (rev 338)
@@ -107,6 +107,7 @@
 	CHECK_TYPE_EXC(parms[1], OBJ(STRING_PROTO), "string");
 	filename = strch(parms[1]);
 	conn_obj = new_object(ist, Connection_OBJ);
+	add_doc_to_obj(ist, conn_obj, "SQLite connection");
 	conn_obj->unclonable = TRUE;
 	set_obj_rdacc(conn_obj, ACC_USER1);
 	conn_obj->data_type = DATA_TYPE_DATAPTR;
@@ -122,6 +123,7 @@
 	if (self->data.ptr) {
 		cursor_p cursorp;
 		obj_p curs_obj = new_object(ist, Cursor_OBJ);
+		add_doc_to_obj(ist, curs_obj, "SQLite cursor");
 		curs_obj->data_type = DATA_TYPE_DATAPTR;
 		cursorp = curs_obj->data.ptr  = pr_malloc(sizeof(cursor_t));
 		cursorp->ist	  = ist;
@@ -280,5 +282,10 @@
 	MODULE_ADD_SYM(Connection, close);
 	MODULE_ADD_SYM(Connection, __objlist__);
 
+	MODULE_ADD_SYM(Cursor, execute);
+	MODULE_ADD_SYM(Cursor, fetchone);
+	MODULE_ADD_SYM(Cursor, fetchmany);
+	MODULE_ADD_SYM(Cursor, fetchall);
+	MODULE_ADD_SYM(Cursor, rowcount);
 	MODULE_ADD_SYM(Cursor, __objlist__);
 }

Modified: trunk/modules/SQLite/SQLite.vcproj
===================================================================
--- trunk/modules/SQLite/SQLite.vcproj	2004-04-13 06:36:15 UTC (rev 337)
+++ trunk/modules/SQLite/SQLite.vcproj	2004-04-13 07:05:27 UTC (rev 338)
@@ -33,8 +33,10 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLinkerTool"
+				AdditionalDependencies="SQLiteC.lib"
 				OutputFile="$(OutDir)/SQLite.dll"
 				LinkIncremental="2"
+				AdditionalLibraryDirectories="C:\Prothon\SQLiteC\Debug"
 				GenerateDebugInformation="TRUE"
 				ProgramDatabaseFile="$(OutDir)/SQLite.pdb"
 				SubSystem="2"
@@ -79,8 +81,10 @@
 				Name="VCCustomBuildTool"/>
 			<Tool
 				Name="VCLinkerTool"
+				AdditionalDependencies="SQLiteC.lib"
 				OutputFile="$(OutDir)/SQLite.dll"
 				LinkIncremental="1"
+				AdditionalLibraryDirectories="C:\Prothon\SQLiteC\Release"
 				GenerateDebugInformation="TRUE"
 				SubSystem="2"
 				OptimizeReferences="2"
@@ -117,7 +121,7 @@
 			Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
 			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
 			<File
-				RelativePath="..\SQLLite\SQLite.c">
+				RelativePath=".\SQLite.c">
 			</File>
 		</Filter>
 		<Filter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.