database_sql

command
v0.0.0-...-9a6bae3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

Basic example via database/sql driver

Basic example demonstrates the possibilities of YDB with database/sql driver:

  • create/drop tables with scheme query mode
  • upsert data with data query mode
  • select with data query mode (unary request ExecuteDataQuery in native ydb-go-sdk)
  • select with scan query mode (streaming request StreamExecuteScanQuery in native ydb-go-sdk)
  • explain query mode for getting AST and Plan of query processing
  • modify transaction control
  • different types of query args:
    • multiple sql.NamedArg (uniform database/sql arg)
    • multiple native (for ydb-go-sdk) table.ParameterOption which constructs from table.ValueParam("name", value)
    • single native (for ydb-go-sdk) *table.QueryParameters which constructs from table.NewQueryParameters(parameterOptions...)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL