Trouble with Database(EDS)

new topic     » topic index » view thread      » older message » newer message

So I am trying to create myself a little database using the EDS database. However I keep getting errors like database cannot be created, or out of bounds error. And type_check failure errors. I'm using Windows 7 Ultimate. I'll post the code I've written so far. Maybe I'm missing something or putting the code in the wrong order?

include std/eds.e 
include std/get.e 
--include std/misc.e 
 
--without type_check 
 
--namespace eds 
 
if db_create("GameDatabase",DB_LOCK_SHARED,5,5) = DB_OK then 
	puts(1,"Couldn't create database!\n") 
	abort(1) 
end if 
 
if db_create_table("gametable") = DB_OK then 
	puts(1,"Failed to create table!\n") 
end if 
 
if db_insert("Uncharted",{"Naughty Dog",50}) then 
	puts(1,"Failed to insert data!\n") 
end if 
new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu