nosql_lib
index

 
Modules
       
datetime
socket
time

 
Classes
       
builtins.object
col
dataset4col
val_info

 
class col(builtins.object)
    the col provide the column about with more value.
the column has a name, val_info, and more values.
 
  Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class dataset4col(builtins.object)
     Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
at(self, r, c)
the fuction get the cell's value at dataset.
 
paramater r, the row's index.
paramater c, the column's index.
 
return value, return the cell at(r,c)'s value.
col_count(self)
the fuction get the columns at dataset.
 
return value, return the column's count of the dataset.
col_name(self, c)
the fuction get the column's at dataset.
paramater c, the column's index.
 
return value, return the column's name of the dataset.
cout(self)
the fuction output all dataset to console.
row_count(self)
the fuction get the rows at dataset.
 
return value, return the row's count of the dataset.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
class val_info(builtins.object)
    val_info(type, sign, size)
 
the val_info provide the information about a cell's value.
such as the value's type, size, sign or the length(named sz) when it is string.
 
  Methods defined here:
__init__(self, type, sign, size)
the fuction construct a val_info.
 
paramater type, must be dt_int/dt_float/dt_str/dt_date/dt_time/dt_datetime/dt_un. 
        dt_un is default as unknow type.
paramater sign, must be ds_sign/ds_usgn/ds_un. 
        ds_un is default as unknow type.
paramater size, db_un is default as unknow type.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
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.

 
Data
        db_s1 = 0
db_s2 = 1
db_s4 = 2
db_s8 = 3
db_un = 11
ds_sign = 0
ds_un = 2
ds_usgn = 1
dt_date = 3
dt_datetime = 5
dt_float = 1
dt_int = 0
dt_str = 2
dt_time = 4
dt_un = 6
exec_f = 1
exec_s = 0
exit_f = 4294967295
sk = <socket.socket fd=396, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>