| 734 | } |
| 735 | |
| 736 | AdbcStatusCode AdbcDatabaseSetOption(struct AdbcDatabase *database, const char *key, const char *value, |
| 737 | struct AdbcError *error) { |
| 738 | if (database->private_driver) { |
| 739 | INIT_ERROR(error, database); |
| 740 | return database->private_driver->DatabaseSetOption(database, key, value, error); |
| 741 | } |
| 742 | |
| 743 | TempDatabase *args = reinterpret_cast<TempDatabase *>(database->private_data); |
| 744 | if (std::strcmp(key, "driver") == 0) { |
| 745 | args->driver = value; |
| 746 | } else if (std::strcmp(key, "entrypoint") == 0) { |
| 747 | args->entrypoint = value; |
| 748 | } else { |
| 749 | args->options[key] = value; |
| 750 | } |
| 751 | return ADBC_STATUS_OK; |
| 752 | } |
| 753 | |
| 754 | AdbcStatusCode AdbcDatabaseSetOptionBytes(struct AdbcDatabase *database, const char *key, const uint8_t *value, |
| 755 | size_t length, struct AdbcError *error) { |
no outgoing calls