[Ruby] Ruby & dbf

Dmitry Morozhnikov dmiceman at mail.ru
Thu Feb 6 13:23:11 MSK 2003


On Thu, 6 Feb 2003, Nicolay A. Vasiliev wrote:

??>> ну не знаю. я бы за ради портабельности  слишком  себе  работу  не
??>> усложнял бы..
NAV> Ну, может быть, Вы и правы, подумаю.

ну дык  вон  народ  в  ruby-talk  аутглюком  рулит  --  нешто  dfb
разрулить сложнее? а вот писать враппер -- это да, это  не  только
сложно (и подразумевает _хорошее_ знание C &  CPP),  но  и  просто
нудно.

??>> ээ.. а БДЕ как в dbf ходит?
NAV> Своими низкоуровневыми функциями. Ну вот, например

:-) ну нет. я писать это дело не буду.

NAV>   pszDriverType     Type: pCHAR     (Input)
NAV> Pointer to the driver type. Optional. pszDriverType can be one
NAV> of the following values: szDBASE, szMSACCESS, szPARADOX, or
NAV> szASCII (for importing or exporting data to/from text files; see
NAV> the Usage section). For Paradox, FoxPro, and dBASE tables, this
NAV> parameter is required if pszTableName has no extension, or if
NAV> the client application wants to overwrite the default file
NAV> extension, including the situation where pszTableName is
NAV> terminated with a period(.). If pszTableName does not supply the
NAV> default extension, and pszDriverType is NULL, DbiOpenTable tries
NAV> to open the table with the default file extension of all file-
NAV> based drivers listed in the configuration file in the order that
NAV> the drivers are listed.

то есть вопрос в том -- есть ли в винде стандартный  odbc  драйвер
для dbf-ок. если есть -- смотри ruby-odbc  и  ruby-dbi.  есть  еще
такая штука как ADO, с темой связано, но я даже приблизительно  не
представляю что это  такое.  как  last-resort  --  смотри  на  эти
Delphi-евские  драйвера  про  которые  в  квотинге  упоминается --
откуда они такие растут.

то есть я бы думал в такой последовательности :-)

-- 
DM, Dmitry Morozhnikov, PGPKEY 0xB6C14D95




More information about the Ruby mailing list