Slide 10.4: Palm OS databases (cont.) Slide 10.6: Palm OS databases (cont.) Home |
DmCreateDatabase( dbCard, DBName, CreatorID, DBType, false )
DmFindDatabase( dbCard, "MyCoolestDB" )
DmOpenDatabase( dbCard, dbID, mode )
DmOpenDatabaseByTypeCreator( DBType, CreatorID, ... )
DmCloseDatabase( db )
DmOpenDatabaseInfo( db, &dbID, NULL, NULL, &dbCard, NULL )
DmDatabaseInfo( dbCard, dbID, NULL, &attributes, NULL, ... )
DmSetDatabaseInfo( dbCard, dbID, NULL, &attributes, ... )
DmDatabaseSize(dbCard, dbID, NULL, &totalBytes, &dataBytes)
DmNumRecords( db )
DmGetDatabaseLockState( db, NULL, NULL, &locks )
DmDatabaseProtect(dbCard, dbID, (locks > 0) ? false : true)
DmGetLastErr( )
DmQueryRecord( db, index)
DmGetRecord(db, index)
DmNewRecord( db, &index, sizeof( DBRecordType ) )
DmWrite( recP, 0, &dbRecord, sizeof( DBRecordType ) )
DmRemoveRecord( db, curRec )
DmReleaseRecord( db, index, true )
DmRecordInfo( db, index, &attr, &uniqueID, NULL )
DmSetRecordInfo( db, index, &attr, NULL )