Documentation
¶
Overview ¶
Package oceanbase adapts an OceanBase database (MySQL protocol) to the core interfaces. It reuses the mysql provider's Adapter and Introspector, and implements its own EXPLAIN parser (OceanBase's plan JSON differs from MySQL, and varies by version; the parser degrades to ScanUnknown on any surprise rather than panicking).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialect ¶
type Dialect struct{}
Dialect is the OceanBase dialect. OceanBase speaks the MySQL wire protocol and reuses its quoting/placeholder rules. Distributed plans make estimates harder to trust, so the gate relies on ob_query_timeout + max_read_size (a runtime scan-row hard cap independent of estimates) + tenant resource isolation.
func (Dialect) Capabilities ¶
func (Dialect) Capabilities() dialect.Capabilities
func (Dialect) ExplainSQL ¶
func (Dialect) Placeholder ¶
func (Dialect) QuoteIdent ¶
type Provider ¶
Provider adapts an OceanBase database to the core interfaces.
func NewWithTimeout ¶
NewWithTimeout opens OceanBase with a DB-native query timeout.
func (*Provider) Introspector ¶
func (p *Provider) Introspector() introspect.Introspector
Introspector returns the schema introspector (reuses mysql's).