Documentation
¶
Index ¶
- func MetadataBool(value any) bool
- func MetadataColumns(value any) []string
- func MetadataInt(value any) int
- func MetadataString(value any) string
- func NullableComment(value any) any
- type BaseProcessor
- func (p *BaseProcessor) ProcessColumns(results []Row, sql ...string) []Row
- func (p *BaseProcessor) ProcessForeignKeys(results []Row) []Row
- func (p *BaseProcessor) ProcessIndexes(results []Row) []Row
- func (p *BaseProcessor) ProcessInsertGetID(connection Connection, statement string, values []any, sequence string) (any, error)
- func (p *BaseProcessor) ProcessSchemas(results []Row) []Row
- func (p *BaseProcessor) ProcessSelect(results any) any
- func (p *BaseProcessor) ProcessTables(results []Row) []Row
- func (p *BaseProcessor) ProcessTypes(results []Row) []Row
- func (p *BaseProcessor) ProcessViews(results []Row) []Row
- type Connection
- type Processor
- type Row
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataBool ¶
MetadataBool preserves the truthiness of scalar values returned by metadata queries.
func MetadataColumns ¶
MetadataColumns normalizes catalog column lists for external processors.
func MetadataInt ¶
MetadataInt normalizes a scalar catalog value for external processors.
func MetadataString ¶
MetadataString converts a database metadata scalar to text, including byte slices.
func NullableComment ¶
NullableComment normalizes absent or empty metadata comments.
Types ¶
type BaseProcessor ¶
type BaseProcessor struct{}
BaseProcessor ports Illuminate\Database\Query\Processors\Processor's insert-ID path.
func (*BaseProcessor) ProcessColumns ¶
func (p *BaseProcessor) ProcessColumns(results []Row, sql ...string) []Row
ProcessColumns ports the base processor's identity transformation.
func (*BaseProcessor) ProcessForeignKeys ¶
func (p *BaseProcessor) ProcessForeignKeys(results []Row) []Row
func (*BaseProcessor) ProcessIndexes ¶
func (p *BaseProcessor) ProcessIndexes(results []Row) []Row
func (*BaseProcessor) ProcessInsertGetID ¶
func (p *BaseProcessor) ProcessInsertGetID(connection Connection, statement string, values []any, sequence string) (any, error)
func (*BaseProcessor) ProcessSchemas ¶
func (p *BaseProcessor) ProcessSchemas(results []Row) []Row
func (*BaseProcessor) ProcessSelect ¶
func (p *BaseProcessor) ProcessSelect(results any) any
func (*BaseProcessor) ProcessTables ¶
func (p *BaseProcessor) ProcessTables(results []Row) []Row
func (*BaseProcessor) ProcessTypes ¶
func (p *BaseProcessor) ProcessTypes(results []Row) []Row
func (*BaseProcessor) ProcessViews ¶
func (p *BaseProcessor) ProcessViews(results []Row) []Row
type Connection ¶
type Connection = contractsquery.Connection
type Processor ¶
type Processor = contractsquery.Processor
Click to show internal directories.
Click to hide internal directories.