Files
Parag Jain 833c4677af Merged PR 1655313: [Cleanup] Removing Insert dead code for old implementation of $out
### 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 -->
2025-04-30 14:57:09 +08:00

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