mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-07 11:32:47 -05:00
### Does this PR have any customer impact? ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) ### Are you introducing any new config? If yes, do you have tests with and without them being set? ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description Removing Insert dead code ---- #### AI description (iteration 1) #### PR Classification Code cleanup #### PR Summary This pull request removes dead code related to the `TryInsertOne` function, which is no longer needed in the codebase. - Removed the `TryInsertOne` function from `src/commands/insert.c`. - Deleted the `TryInsertOne` function declaration from `include/commands/insert.h`. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->
25 lines
812 B
C
25 lines
812 B
C
/*-------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
*
|
|
* include/commands/insert.h
|
|
*
|
|
* Functions for inserting documents.
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef COMMANDS_INSERT_H
|
|
#define COMMANDS_INSERT_H
|
|
|
|
#include <io/bson_core.h>
|
|
#include "commands/commands_common.h"
|
|
|
|
MongoCollection * CreateCollectionForInsert(Datum databaseNameDatum,
|
|
Datum collectionNameDatum);
|
|
bool InsertDocument(uint64 collectionId, const char *shardTableName, int64 shardKeyValue,
|
|
pgbson *objectId, pgbson *document);
|
|
|
|
bool InsertOrReplaceDocument(uint64 collectionId, const char *shardTableName, int64
|
|
shardKeyValue,
|
|
pgbson *objectId, pgbson *document);
|
|
#endif
|