File tree Expand file tree Collapse file tree
entity-store/src/main/kotlin/jetbrains/exodus/entitystore/orientdb Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright ${inceptionYear} - ${year} ${owner}
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License");
5+ * you may not use this file except in compliance with the License.
6+ * You may obtain a copy of the License at
7+ *
8+ * https://www.apache.org/licenses/LICENSE-2.0
9+ *
10+ * Unless required by applicable law or agreed to in writing, software
11+ * distributed under the License is distributed on an "AS IS" BASIS,
12+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ * See the License for the specific language governing permissions and
14+ * limitations under the License.
15+ */
16+
117package jetbrains.exodus.entitystore.orientdb
218
319import com.orientechnologies.orient.core.db.ODatabaseType
@@ -18,6 +34,7 @@ class ODatabaseConfig private constructor(
1834 return Builder ()
1935 }
2036 }
37+
2138 @Suppress(" unused" )
2239 class Builder internal constructor() {
2340 var databaseName: String = " "
@@ -42,6 +59,7 @@ class ODatabaseConfig private constructor(
4259 require(cipherKey == null ) { " Cipher is already initialized" }
4360 cipherKey = hexStringToByteArray(key) + longToByteArray(IV )
4461 }
62+
4563 fun tweakConfig (tweakConfig : OrientDBConfigBuilder .() -> Unit ) = apply { this .tweakConfig = tweakConfig }
4664
4765 fun build () = ODatabaseConfig (
You can’t perform that action at this time.
0 commit comments