Skip to content

Commit

Permalink
Update SQL table creation fields
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Sep 1, 2021
1 parent 7037a70 commit 296368b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions java/src/org/openqa/selenium/grid/commands/sessionmaps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,29 @@ java -jar selenium.jar \

The `JdbcBackedSessionMap` uses JDBC to talk to use any supported database for session map store.

The table name used to store sessions is: `sessions_map` It consists of three columns of string datatype: `session_ids`, `session_caps`, `session_uri`
The table name used to store sessions is: `sessions_map`.
It consists of three columns of string datatype: `session_ids`, `session_caps`, `session_uri`, `session_stereotype`, `session_start`

Prerequisites

1. Ensure the appropriate JDBC driver jar is downloaded on the host machine.

2. Ensure the "sessions_map" table with varchar "session_ids", "session_caps" and "session_uri" columns is created in the database.
2. Ensure the "sessions_map" table with varchar "session_ids", "session_caps", "session_uri", "session_stereotype" and "session_start" columns is created in the database.

You can create the required table using something similar to:

```
CREATE TABLE sessions_map(
session_ids varchar(256),
session_caps varchar(1000),
session_uri varchar(256)
session_uri varchar(256),
session_stereotype varchar(1000),
session_start varchar(256)
);
```

Here the size of each column is an arbitrary number. Ensure the datatype and limit matches the selected database. Also, the limit for varchar type should be able to accommodate the
capabilities json stored in "sessions_caps".
capabilities json stored in "session_caps" and stereotype json stored in "session_stereotype".

To start the `JdbcBackedSessionMap`:

Expand Down

0 comments on commit 296368b

Please sign in to comment.