Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1043,8 +1043,7 @@ propagate bidirectionally between Python and the Portal UI.

### Server Tools (`singlestoredb/server/`)

Utilities for managing SingleStore server instances, including Docker helpers and
free tier management.
Utilities for managing SingleStore server instances in Docker.

#### Docker Server (`singlestoredb/server/docker.py`)

Expand Down Expand Up @@ -1079,25 +1078,6 @@ with docker.start(password='my_password') as server:
# Server is stopped automatically on exit
```

#### Free Tier Server (`singlestoredb/server/free_tier.py`)

Start a free tier SingleStore server instance:

```python
from singlestoredb.server import free_tier

# Start the free tier server (no configuration required)
server = free_tier.start()

# Connect to the server
conn = server.connect()

# Use as a context manager
with free_tier.start() as server:
conn = server.connect()
# ... use connection ...
```

---

## Appendices
Expand Down
45 changes: 2 additions & 43 deletions docs/src/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -695,9 +695,8 @@ calls to the currently selected portal services.
Server Tools
------------

It is possible to start a SingleStoreDB server from the Python SDK in a
couple of ways: Docker or Cloud Free Tier. Both of these methods are
described below.
It is possible to start a SingleStoreDB server from the Python SDK
using Docker, as described below.

Docker
......
Expand Down Expand Up @@ -761,46 +760,6 @@ down when the Python process exits.
SingleStoreDB.stop


Cloud Free Tier
...............

The Cloud Free Tier interface works much in the same way as the Docker
interface, although it doesn't support as many features. To start a
server in the Cloud Free Tier, you use the following:

.. sourcecode:: python


from singlestoredb.server import free_tier

s2db = free_tier.start()

with s2db.connect() as conn:
with conn.cursor() as cur:
cur.execute('SHOW DATABASES')
for line in cur:
print(line)

s2db.stop()

Just as with the Docker interface, you can also use a Python
context manager to automatically shut down your connection.

.. currentmodule:: singlestoredb.server.free_tier

.. autosummary::
:toctree: generated/

start
SingleStoreDB.connect
SingleStoreDB.connection_url
SingleStoreDB.http_connection_url
SingleStoreDB.kai_url
SingleStoreDB.open_shell
SingleStoreDB.open_mongosh
SingleStoreDB.stop


Configuration
-------------

Expand Down
267 changes: 0 additions & 267 deletions singlestoredb/server/free_tier.py

This file was deleted.

Loading