singlestoredb.connection.Connection.enable_data_api¶
- Connection.enable_data_api(port: int | None = None) int ¶
Enable the data API in the server.
Use of this method requires privileges that allow setting global variables and starting the HTTP proxy.
- Parameters:
port (int, optional) – The port number that the HTTP server should run on. If this value is not specified, the current value of the
http_proxy_port
is used.
See also
- Returns:
port number of the HTTP server
- Return type: