Documentation ¶
Index ¶
- func AddStartWith(q firestore.Query, key string, word string) firestore.Query
- func CommitWriteBatch(ctx context.Context) (context.Context, error)
- func Create(ctx context.Context, colRef *firestore.CollectionRef, src interface{}) error
- func Delete(ctx context.Context, docRef *firestore.DocumentRef) error
- func GenerateDocumentRef(client *firestore.Client, docRefs []*DocRef) *firestore.DocumentRef
- func Get(ctx context.Context, docRef *firestore.DocumentRef, dst interface{}) (bool, error)
- func GetByQuery(ctx context.Context, query firestore.Query, dst interface{}) (bool, error)
- func GetMulti(ctx context.Context, client *firestore.Client, ...) error
- func ListByQuery(ctx context.Context, query firestore.Query, dsts interface{}) error
- func ListByQueryCursor(ctx context.Context, query firestore.Query, limit int, ...) (*firestore.DocumentSnapshot, error)
- func NewClient(projectID string) *firestore.Client
- func RunTransaction(ctx context.Context, client *firestore.Client, ...) error
- func RunWriteBatch(ctx context.Context, client *firestore.Client) context.Context
- func Set(ctx context.Context, docRef *firestore.DocumentRef, src interface{}) error
- func Update(ctx context.Context, docRef *firestore.DocumentRef, kv map[string]interface{}) error
- type DocRef
- type SummaryDocRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStartWith ¶
AddStartWith ... 前方一致クエリを追加する
func CommitWriteBatch ¶ added in v1.0.6
func Create ¶
func Create(ctx context.Context, colRef *firestore.CollectionRef, src interface{}) error
Create ... 作成する(tx, bt対応)
func Delete ¶
func Delete(ctx context.Context, docRef *firestore.DocumentRef) error
Delete ... 削除する(tx, bt対応)
func GenerateDocumentRef ¶
func GenerateDocumentRef(client *firestore.Client, docRefs []*DocRef) *firestore.DocumentRef
GenerateDocumentRef ... ドキュメント参照を作成する
func GetByQuery ¶
GetByQuery ... クエリで単体取得する(tx対応)
func GetMulti ¶
func GetMulti(ctx context.Context, client *firestore.Client, docRefs []*firestore.DocumentRef, dsts interface{}) error
GetMulti ... 複数取得する(tx対応)
func ListByQuery ¶
ListByQuery ... クエリで複数取得する
func ListByQueryCursor ¶
func ListByQueryCursor(ctx context.Context, query firestore.Query, limit int, cursor *firestore.DocumentSnapshot, dsts interface{}) (*firestore.DocumentSnapshot, error)
ListByQueryCursor ... クエリで複数取得する(ページング)
func RunTransaction ¶ added in v1.0.6
func RunWriteBatch ¶ added in v1.0.6
Types ¶
type SummaryDocRef ¶
SummaryDocRef ... 最小のドキュメント参照(フロントに返せる)
func GenerateSummaryDocRef ¶
func GenerateSummaryDocRef(docRef *firestore.DocumentRef, rootCollectionPath string) *SummaryDocRef
GenerateSummaryDocRef ... 最小のドキュメント参照を取得する
Click to show internal directories.
Click to hide internal directories.