code stringlengths 3 6.57k |
|---|
conn.close() |
super() |
get_property_value(name) |
set_property_value(self, name, value, dry_run=False) |
DAVResource.set_property_value() |
MySQLBrowserProvider(DAVProvider) |
__init__(self, host, user, passwd, db) |
super() |
__init__() |
__repr__(self) |
_split_path(self, path) |
Return (tableName, primaryKey) |
path.strip() |
in (None, "", "/") |
return (None, None) |
util.save_split(path.strip("/") |
_logger.debug("'%s' -> ('%s', '%s') |
return (tableName, primKey) |
_init_connection(self) |
_get_field_list(self, conn, table_name) |
conn.cursor(MySQLdb.cursors.DictCursor) |
cursor.execute("DESCRIBE " + table_name) |
cursor.fetchall() |
retlist.append(row["Field"]) |
cursor.close() |
_is_data_type_numeric(self, datatype) |
datatype.upper() |
datatype.startswith(numtype) |
_exists_record_by_primary_key(self, conn, table_name, pri_key_value) |
conn.cursor(MySQLdb.cursors.DictCursor) |
cursor.execute("DESCRIBE " + table_name) |
cursor.fetchall() |
cursor.close() |
self._is_data_type_numeric(pri_field_type) |
conn.cursor(MySQLdb.cursors.DictCursor) |
cursor.fetchone() |
cursor.close() |
cursor.close() |
_get_field_by_primary_key(self, conn, table_name, pri_key_value, field_name) |
conn.cursor(MySQLdb.cursors.DictCursor) |
cursor.execute("DESCRIBE " + table_name) |
cursor.fetchall() |
cursor.close() |
self._is_data_type_numeric(pri_field_type) |
conn.cursor(MySQLdb.cursors.DictCursor) |
cursor.fetchone() |
cursor.close() |
util.to_str(row[field_name]) |
cursor.close() |
_get_record_by_primary_key(self, conn, table_name, pri_key_value) |
conn.cursor(MySQLdb.cursors.DictCursor) |
cursor.execute("DESCRIBE " + table_name) |
cursor.fetchall() |
cursor.close() |
self._is_data_type_numeric(pri_field_type) |
conn.cursor(MySQLdb.cursors.DictCursor) |
cursor.fetchone() |
cursor.close() |
row.keys() |
util.to_str(row[fname]) |
cursor.close() |
_find_primary_key(self, conn, table_name) |
conn.cursor(MySQLdb.cursors.DictCursor) |
cursor.execute("DESCRIBE " + table_name) |
cursor.fetchall() |
cursor.close() |
_list_fields(self, conn, table_name, field_name) |
conn.cursor(MySQLdb.cursors.DictCursor) |
cursor.execute("SELECT " + field_name + " FROM " + self._db + "." + table_name) |
cursor.fetchall() |
retlist.append(util.to_str(row[field_name]) |
cursor.close() |
_list_tables(self, conn) |
conn.cursor() |
cursor.execute("SHOW TABLES") |
cursor.fetchall() |
retlist.append("%s" % (row[0]) |
cursor.close() |
get_resource_inst(self, path, environ) |
get_resource_inst() |
exists() |
self.exists(path, environ) |
self._split_path(path) |
MySQLBrowserResource(self, path, is_collection, environ) |
exists(self, path, environ) |
self._split_path(path) |
self._init_connection() |
self._list_tables(conn) |
self._exists_record_by_primary_key(conn, tableName, primKey) |
conn.close() |
is_collection(self, path, environ) |
self._split_path(path) |
self.exists(path, environ) |
v2.0 ( https://apimatic.io ) |
SwitchProfilePortModel(object) |
profile (string) |
port_id (string) |
number (Ex: "8") |
dictionary (dictionary) |
dictionary.get('profile') |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.