View vttablet-up.sh
#!/bin/bash | |
# This is an example script that creates a single shard vttablet deployment. | |
set -e | |
cell='test' | |
keyspace='test_keyspace' | |
shard=${SHARD:-'0'} | |
uid_base=${UID_BASE:-'100'} |
View dbschema.sql
CREATE TABLE `user` ( | |
`tenant_id` binary(16) NOT NULL, | |
`provider_id` binary(16) NOT NULL, | |
`user_id` binary(16) NOT NULL, | |
`external_org_unit_id` varchar(128) COLLATE utf8_bin DEFAULT NULL, | |
`external_user_id` varchar(128) COLLATE utf8_bin NOT NULL, | |
`external_user_hash` binary(16) NOT NULL, | |
`display_name` varchar(300) COLLATE utf8_bin DEFAULT NULL, | |
`last_name` varchar(64) COLLATE utf8_bin DEFAULT NULL, | |
`first_name` varchar(64) COLLATE utf8_bin DEFAULT NULL, |
View client.py
#!/usr/bin/env python | |
"""Sample Vitess client in Python. | |
This is a sample for using the Python Vitess client. | |
It's a script that inserts some random messages on random pages of the | |
guestbook sample app. | |
Before running this, start up a local example cluster as described in the | |
README.md file. |