Особенности ZConnection.Parameters в Zeosdbo

Модератор: Модераторы

Ответить
Ism
энтузиаст
Сообщения: 908
Зарегистрирован: 06.04.2007 17:36:08

Особенности ZConnection.Parameters в Zeosdbo

Сообщение Ism »

У ZConnection.Parameters есть интересная фишка, там можно прописать любые опции клиентской библиотеки , которые она поддерживает
Например

ZConnection.Parameters.Add('codepage=utf8')
ZConnection.Parameters.Add('MYSQL_OPT_RECONNECT=1')
ZConnection.Parameters.Add('MYSQL_SET_CHARSET_NAME=UTF8')

Опции отсюда http://dev.mysql.com/doc/refman/5.1/en/ ... tions.html

То есть можно напрямую издеваться с параметрами подключения.
alezy
незнакомец
Сообщения: 1
Зарегистрирован: 04.01.2014 10:25:32

Сообщение alezy »

AppThread - stream file created ExtP_Toolkit. Actually, then, for what, and puts the whole package ExtP_Toolkit. Updated every time you compile, if added a new shape, which creates some inconvenience. Just need to bring to mind CurrentThread function
Lourencohen
незнакомец
Сообщения: 1
Зарегистрирован: 18.03.2014 11:56:11

Сообщение Lourencohen »

I am new to this forum and have no idea about the ZConnection parameters. As I a m a beginner here, I am totally confused with the codes you are given here. Can you just share the basic info about ZConnection and how this works? Thanks in advance.






Thanks
Lourene
Vadim
долгожитель
Сообщения: 4112
Зарегистрирован: 05.10.2006 08:52:59
Откуда: Красноярск

Сообщение Vadim »

Lourencohen
The following properties are usually sufficient ZConnection:
- Protocol - used here is chosen database type;
- Database - the name of the database (database server) or a file path to it (eg, SQLite);
- Hostname - the name (IP) of the server where the database resides;
- User - the user name;
- Password - the user password.

"Parameters" property is used to specify a specific to a particular database server option, without which you can not properly connect to an server.
Ответить