Better database-support
Posted: Mon Oct 17, 2005 7:21 am
Hi,
I currently work on a mid-size commercial application that needs a MySQL database. I connect using the PB-internal ODBC-methods.
Here are my wishes:
After a call to DatabaseQuery(), the row-cursor should be on the first returned row. I allways have to call NextDatabaseRow() to get the first results. That is unusually.
I need a command to get the number of results! Something like DatabaseRowCount().
There should be more commands to move the row-cursor: DatabaseMoveFirstRow() and DatabaseMoveLastRow() would be verry good.
Something like DatabaseEOF() and DatabaseBOF(). If I use NextDatabaseRow() to verify the end of the results, the cursor moves if I'm not. I want to check this, without moving the cursor (like in other languages like VB using ADO EOF() and BOF()).
A way to filter the results again! Something like the Filter-Flag of ADO: Filterstring.s = "Value > 500": DatabaseFilter(Filterstring.s)
I need a direct way to reach values in a row. Something like GetDatabaseString("ColumnName") instead of heaving to know the column-number. If I query with SELECT * FROM... I really not know the right column in many cases.
I miss the possibility of selecting, if the cursor is server-side or client-side. Maybe this is possible in ODBC or do I have to select this in the User-DSN on windows?
Ok, this have been my wishes for using databases.
Kukulkan
I currently work on a mid-size commercial application that needs a MySQL database. I connect using the PB-internal ODBC-methods.
Here are my wishes:
After a call to DatabaseQuery(), the row-cursor should be on the first returned row. I allways have to call NextDatabaseRow() to get the first results. That is unusually.
I need a command to get the number of results! Something like DatabaseRowCount().
There should be more commands to move the row-cursor: DatabaseMoveFirstRow() and DatabaseMoveLastRow() would be verry good.
Something like DatabaseEOF() and DatabaseBOF(). If I use NextDatabaseRow() to verify the end of the results, the cursor moves if I'm not. I want to check this, without moving the cursor (like in other languages like VB using ADO EOF() and BOF()).
A way to filter the results again! Something like the Filter-Flag of ADO: Filterstring.s = "Value > 500": DatabaseFilter(Filterstring.s)
I need a direct way to reach values in a row. Something like GetDatabaseString("ColumnName") instead of heaving to know the column-number. If I query with SELECT * FROM... I really not know the right column in many cases.
I miss the possibility of selecting, if the cursor is server-side or client-side. Maybe this is possible in ODBC or do I have to select this in the User-DSN on windows?
Ok, this have been my wishes for using databases.
Kukulkan