singlestoredb.connection.Connection.enable_data_api

Connection.enable_data_api(port: Optional[int] = 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.

Returns

port number of the HTTP server

Return type

int