| |
- calcsize(format, /)
- Return size in bytes of the struct described by the format string.
- connect_to_server(ip, port, name, pwd)
- 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 pwd, the user's password.
return value, login successful return 1, login failed return 0.
- exec(cmd)
- the fuction execute cmd string to db's server.
paramater cmd, the command's string will be executed to server.
return value, return the dataset executed.
- exit_to_server()
- the fuction exit to db's server.
- iter_unpack(format, buffer, /)
- Return an iterator yielding tuples unpacked from the given bytes.
The bytes are unpacked according to the format string, like
a repeated invocation of unpack_from().
Requires that the bytes length be a multiple of the format struct size.
- pack(...)
- pack(format, v1, v2, ...) -> bytes
Return a bytes object containing the values v1, v2, ... packed according
to the format string. See help(struct) for more on format strings.
- pack_into(...)
- pack_into(format, buffer, offset, v1, v2, ...)
Pack the values v1, v2, ... according to the format string and write
the packed bytes into the writable buffer buf starting at offset. Note
that the offset is a required argument. See help(struct) for more
on format strings.
- parse_col(rd, cs, i)
- parse_val(rd, vi, vis, i)
- parse_vi(rd, vi, i)
- unpack(format, buffer, /)
- Return a tuple containing values unpacked according to the format string.
The buffer's size in bytes must be calcsize(format).
See help(struct) for more on format strings.
- unpack_from(format, /, buffer, offset=0)
- Return a tuple containing values unpacked according to the format string.
The buffer's size, minus offset, must be at least calcsize(format).
See help(struct) for more on format strings.
|