Documentation ¶
Index ¶
- Constants
- Variables
- func BillingPortalForStripeId(client *turso.Client, stripeCustomerId string) error
- func Execute()
- func GetSelectPlanInfo(client *turso.Client) (plans []turso.Plan, current turso.Subscription, hasPaymentMethod bool, ...)
- func IsUnderHomebrew() bool
- func PaymentMethodHelper(client *turso.Client, selected string) (bool, error)
- func PaymentMethodHelperOverages(client *turso.Client) (bool, error)
- func PaymentMethodHelperWithStripeId(client *turso.Client, stripeId, orgName string) (bool, error)
- func Update() error
- type Error
- type ErrorResponse
- type QueryRequest
- type QueryResult
- type ResultSet
- type Row
Constants ¶
View Source
const ( DB_CACHE_KEY = "database_names" DB_CACHE_TTL_SECONDS = 30 * 60 )
View Source
const ( REGIONS_CACHE_KEY = "locations" REGIONS_CACHE_TTL_SECONDS = 8 * 60 * 60 )
View Source
const ( ORG_CACHE_KEY = "organizations" GROUP_CACHE_KEY = "groups" GROUP_CACHE_TTL_SECONDS = 30 * 60 )
View Source
const ( ORGS_CACHE_KEY = "organizations" ORGS_CACHE_TTL_SECONDS = 30 * 60 )
View Source
const ( PLANS_CACHE_KEY = "plans" PLANS_CACHE_TTL = 60 )
View Source
const CLOSEST_LOCATION_CACHE_KEY = "closestLocation"
View Source
const DATABASE_TOKEN_KEY_PREFIX = "database_token."
View Source
const ENV_ACCESS_TOKEN = "TURSO_API_TOKEN"
View Source
const MaxDumpFileSizeBytes = 8 << 30
View Source
const TOKEN_VALID_CACHE_KEY_PREFIX = "token_valid."
Variables ¶
View Source
var LOGIN_HTML string
Functions ¶
func GetSelectPlanInfo ¶
func IsUnderHomebrew ¶
func IsUnderHomebrew() bool
func PaymentMethodHelper ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"error"`
}
type QueryRequest ¶
type QueryRequest struct {
Statements []string `json:"statements"`
}
type QueryResult ¶
Source Files ¶
- account.go
- account_bookmeeting.go
- account_feedback.go
- auth.go
- auth_createapitokens.go
- auth_listapitokens.go
- auth_revokeapitokens.go
- cache.go
- canary_flag.go
- cobra_utils.go
- config.go
- db.go
- db_attach.go
- db_config.go
- db_create.go
- db_destroy.go
- db_generatetoken.go
- db_inspect.go
- db_invalidatetokens.go
- db_list.go
- db_locations.go
- db_replicate.go
- db_shell.go
- db_show.go
- db_tokens.go
- db_transfer.go
- db_update.go
- db_wakeup.go
- dev.go
- dev_file.go
- dev_port_flag.go
- dev_sqld_version.go
- enable_extensions_flag.go
- flags.go
- from_csv_flag.go
- from_dump_flag.go
- from_file_flag.go
- group.go
- group_flag.go
- group_locations.go
- group_tokens.go
- group_transfer.go
- group_update.go
- instance_flag.go
- invoice.go
- invoice_configure.go
- invoice_info.go
- invoice_list.go
- latencies.go
- location_flag.go
- org.go
- plan.go
- quickstart.go
- random.go
- relax.go
- root.go
- schema_flag.go
- type_flag.go
- update.go
- utils.go
- verbose_flag.go
- version_dev.go
- wait_flag.go
- yes_flag.go
Click to show internal directories.
Click to hide internal directories.