This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'} |