MCPcopy
hub / github.com/upper/db

github.com/upper/db @v4.10.0 sqlite

repository ↗ · DeepWiki ↗ · release v4.10.0 ↗
2,077 symbols 7,711 edges 196 files 741 documented · 36%
README

upper/db unit tests status

upper/db

upper/db is a productive data access layer (DAL) for Go that provides agnostic tools to work with different data sources, such as:

See upper.io/v4 for documentation and code samples.

The tour

tour

Take the tour to see real live examples in your browser.

License

Licensed under MIT License

Contributors

See the list of contributors.

Extension points exported contracts — how you extend this code

SQLPreparer (Interface)
SQLPreparer provides the Prepare and PrepareContext methods for creating prepared statements. [6 implementers]
sql.go
ConnectionURL (Interface)
ConnectionURL represents a data source name (DSN). [18 implementers]
connection_url.go
Hashable (Interface)
Hashable types must implement a method that returns a key. This key will be associated with a cached value. [21 implementers]
internal/cache/interface.go
CollectionAdapter (Interface)
CollectionAdapter defines methods to be implemented by SQL adapters. [9 implementers]
internal/sqladapter/collection.go
Immutable (Interface)
Immutable represents an immutable chain that, if passed to FastForward, applies Fn() to every element of a chain, the fi [8 …
internal/immutable/immutable.go
ResultMapper (Interface)
ResultMapper defined methods for a result mapper. [5 implementers]
clauses.go
Record (Interface)
Record is the equivalence between concrete database schemas and Go values. [4 implementers]
record.go
StoreDeleter (Interface)
StoreDeleter is an interface for data stores that defines a Delete method that has the task of removing a record. [4 implementers]
store.go

Core symbols most depended-on inside this repo

String
called by 423
result.go
Where
called by 219
clauses.go
Find
called by 192
internal/sqladapter/collection.go
From
called by 170
clauses.go
Collection
called by 143
internal/sqladapter/session.go
Select
called by 132
sql.go
SQL
called by 127
internal/sqladapter/session.go
NewValue
called by 116
internal/sqladapter/exql/value.go

Shape

Method 1,201
Function 483
Struct 228
Interface 91
TypeAlias 74

Languages

Go100%

Modules by API surface

internal/sqladapter/session.go107 symbols
clauses.go64 symbols
internal/sqlbuilder/builder.go60 symbols
logger.go57 symbols
adapter/postgresql/postgresql_test.go53 symbols
internal/testsuite/sql_suite.go49 symbols
internal/sqlbuilder/select.go49 symbols
adapter/cockroachdb/cockroachdb_test.go48 symbols
internal/sqladapter/result.go41 symbols
adapter/mongo/result.go39 symbols
sql.go38 symbols
internal/sqladapter/exql/statement_test.go34 symbols

Dependencies from manifests, versioned

filippo.io/edwards25519v1.1.0 · 1×
github.com/edsrzf/mmap-gov1.2.0 · 1×
github.com/golang-sql/civilv0.0.0-2022022313231 · 1×
github.com/golang-sql/sqlexpv0.1.0 · 1×
github.com/golang/snappyv0.0.4 · 1×
github.com/ipfs/go-detect-racev0.0.1 · 1×
github.com/jackc/pgiov1.0.0 · 1×
github.com/jackc/pgpassfilev1.0.0 · 1×

Datastores touched

artistCollection · 1 repos
birthdaysCollection · 1 repos
CaSe_TesTCollection · 1 repos
array_typesCollection · 1 repos
data_typesCollection · 1 repos
fibonacciCollection · 1 repos
helloCollection · 1 repos
is_evenCollection · 1 repos

For agents

$ claude mcp add db \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact