Documentation ¶
Index ¶
- Variables
- func ProvideDatabase(ctx context.Context, db *Database, single ExtensionDeps, deps DatabaseDeps) (*postgres.DB, error)
- type Database
- func (*Database) Descriptor() ([]byte, []int)deprecated
- func (x *Database) GetHostedAt() *postgres.Database_Endpoint
- func (x *Database) GetName() string
- func (x *Database) GetSchemaFile() *types.Resource
- func (*Database) ProtoMessage()
- func (x *Database) ProtoReflect() protoreflect.Message
- func (x *Database) Reset()
- func (x *Database) String() string
- type DatabaseDeps
- type ExtensionDeps
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Package__pj9age = &core.Package{ PackageName: "namespacelabs.dev/foundation/universe/db/postgres/opaque", } Provider__pj9age = core.Provider{ Package: Package__pj9age, Instantiate: makeDeps__pj9age, } Provider__pj9age__Database = core.Provider{ Package: Package__pj9age, Typename: "Database", Instantiate: makeDeps__pj9age__Database, } )
View Source
var File_universe_db_postgres_opaque_provider_proto protoreflect.FileDescriptor
Functions ¶
func ProvideDatabase ¶
func ProvideDatabase(ctx context.Context, db *Database, single ExtensionDeps, deps DatabaseDeps) (*postgres.DB, error)
Types ¶
type Database ¶
type Database struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` SchemaFile *types.Resource `protobuf:"bytes,2,opt,name=schema_file,json=schemaFile,proto3" json:"schema_file,omitempty"` HostedAt *postgres.Database_Endpoint `protobuf:"bytes,3,opt,name=hosted_at,json=hostedAt,proto3" json:"hosted_at,omitempty"` // contains filtered or unexported fields }
func (*Database) Descriptor
deprecated
func (*Database) GetHostedAt ¶
func (x *Database) GetHostedAt() *postgres.Database_Endpoint
func (*Database) GetSchemaFile ¶
func (*Database) ProtoMessage ¶
func (*Database) ProtoMessage()
func (*Database) ProtoReflect ¶
func (x *Database) ProtoReflect() protoreflect.Message
type DatabaseDeps ¶
Scoped dependencies that are instantiated for each call to ProvideDatabase.
type ExtensionDeps ¶
type ExtensionDeps struct {
Wire base.WireDatabase
}
Dependencies that are instantiated once for the lifetime of the extension.
Click to show internal directories.
Click to hide internal directories.