| |
- calcsize(...)
- Return size of C struct described by format string fmt.
- connect_to_server(ip, port, name, passwd)
- the fuction connect to db's server.
paramater ip, the server's ip.
paramater port, the server's port.
paramater name, the user's name.
paramater passwd, the user's password.
return value, login successful return 1, login failed return 0.
- exec_sql(sql)
- the fuction execute sql string to db's server.
paramater sql, the string will be executed to server.
return value, return the dataset executed.
- exit_to_server()
- the fuction exit to db's server.
- pack(...)
- Return string containing values v1, v2, ... packed according to fmt.
- pack_into(...)
- Pack the values v1, v2, ... according to fmt.
Write the packed bytes into the writable buffer buf starting at offset.
- parse_val(rd, vi, vis, i)
- parse_vi(rd, vi, vis, i)
- unpack(...)
- Unpack the string containing packed C structure data, according to fmt.
Requires len(string) == calcsize(fmt).
- unpack_from(...)
- Unpack the buffer, containing packed C structure data, according to
fmt, starting at offset. Requires len(buffer[offset:]) >= calcsize(fmt).
|