Versions in this module Expand all Collapse all v0 v0.2.0 Jan 15, 2024 v0.1.0 Mar 26, 2023 Changes in this version + type Connection struct + APIKey string + Server string + VerifyServerCert bool + func New(key string) (Connection, error) + func (c *Connection) ChangeAPIKey(k string) + func (c *Connection) ChangeServer(s string) + func (c *Connection) ChangeVerifyServerCert(b bool) + func (c Connection) Branches(dbOwner, dbName string) (branches map[string]com.BranchEntry, defaultBranch string, err error) + func (c Connection) Columns(dbOwner, dbName string, ident Identifier, table string) (columns []com.APIJSONColumn, err error) + func (c Connection) Commits(dbOwner, dbName string) (commits map[string]com.CommitEntry, err error) + func (c Connection) Databases() (databases []string, err error) + func (c Connection) DatabasesLive() (databases []string, err error) + func (c Connection) Delete(dbName string) (err error) + func (c Connection) Diff(dbOwnerA, dbNameA string, identA Identifier, dbOwnerB, dbNameB string, ...) (diffs com.Diffs, err error) + func (c Connection) Download(dbOwner, dbName string, ident Identifier) (db io.ReadCloser, err error) + func (c Connection) Execute(dbOwner, dbName string, sql string) (rowsChanged int, err error) + func (c Connection) Indexes(dbOwner, dbName string, ident Identifier) (idx []com.APIJSONIndex, err error) + func (c Connection) Metadata(dbOwner, dbName string) (meta com.MetadataResponseContainer, err error) + func (c Connection) PrepareVals(dbOwner, dbName string, ident Identifier) (data url.Values) + func (c Connection) Query(dbOwner, dbName string, ident Identifier, blobBase64 bool, sql string) (out Results, err error) + func (c Connection) Releases(dbOwner, dbName string) (releases map[string]com.ReleaseEntry, err error) + func (c Connection) Tables(dbOwner, dbName string, ident Identifier) (tbl []string, err error) + func (c Connection) Tags(dbOwner, dbName string) (tags map[string]com.TagEntry, err error) + func (c Connection) Upload(dbName string, info UploadInformation, dbBytes *[]byte) (err error) + func (c Connection) UploadLive(dbName string, dbBytes *[]byte) (err error) + func (c Connection) Views(dbOwner, dbName string, ident Identifier) (views []string, err error) + func (c Connection) Webpage(dbOwner, dbName string) (webPage com.WebpageResponseContainer, err error) + type Identifier struct + Branch string + CommitID string + Release string + Tag string + type JSONError struct + Msg string + type MergeStrategy int + const NewPkMerge + const NoMerge + const PreservePkMerge + type ResultRow struct + Fields []string + type Results struct + Rows []ResultRow + type UploadInformation struct + AuthorEmail string + AuthorName string + CommitMsg string + CommitTimestamp time.Time + CommitterEmail string + CommitterName string + Force bool + Ident Identifier + LastModified time.Time + Licence string + OtherParents string + Public string + ShaSum string + SourceURL string