dalgo2firestore

package module
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 20 Imported by: 2

README

strongo/dalgo-firestore

Bridge to Firebase Firestore API for github.com/dal-go/dalgo interface.

Our approach to development

We build with our own tooling:

  • SpecScore — specify requirements as SpecScore.md artifacts
  • SpecStudio — author & manage specs across their lifecycle
  • inGitDB — store structured data in Git where applicable
  • DALgo — data access layer for Go
  • cover100.dev — drive toward 100% test coverage
  • DataTug — query & explore data

Transaction queries

Query readers created by a read-only or read-write transaction use that exact Firestore transaction, including its snapshot and read-after-write protection. Use the callback's context and consume and close readers before the transaction callback returns. Closing a reader stops its Firestore document iterator. Ordinary database queries retain their nontransactional behavior.

End-to-end tests

All dalgo drivers have to pass dalgo's end-to-end tests.

Setup of end-to-end tests for Firestore driver has few specifics.

Documentation

Index

Constants

View Source
const Version = "0.0.1"

Version indicates package version

Variables

View Source
var Debugf func(ctx context.Context, format string, args ...interface{}) = nil

Functions

func GetFirestoreCollectionRef added in v0.6.28

func GetFirestoreCollectionRef(colRef *dal.CollectionRef, client *firestore.Client) (fsCollectionRef *firestore.CollectionRef)

func NewDatabase

func NewDatabase(id string, client *firestore.Client) (db dal.DB)

NewDatabase creates new instance of dalgo interface to Firestore

func PathFromKey

func PathFromKey(key *record.Key) string

PathFromKey generates a full path of a key

Types

This section is empty.

Jump to

Keyboard shortcuts

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