@@ -283,6 +283,12 @@ impl Env {
283
283
/// Opens a typed database that already exists in this environment.
284
284
///
285
285
/// If the database was previously opened in this program run, types will be checked.
286
+ ///
287
+ /// ## Important Information
288
+ ///
289
+ /// LMDB have an important restriction on the unnamed database when named ones are opened,
290
+ /// the names of the named databases are stored as keys in the unnamed one and are immutable,
291
+ /// these keys can only be read and not written.
286
292
pub fn open_database < KC , DC > (
287
293
& self ,
288
294
rtxn : & RoTxn ,
@@ -303,6 +309,12 @@ impl Env {
303
309
/// Opens an untyped database that already exists in this environment.
304
310
///
305
311
/// If the database was previously opened as a typed one, an error will be returned.
312
+ ///
313
+ /// ## Important Information
314
+ ///
315
+ /// LMDB have an important restriction on the unnamed database when named ones are opened,
316
+ /// the names of the named databases are stored as keys in the unnamed one and are immutable,
317
+ /// these keys can only be read and not written.
306
318
pub fn open_poly_database (
307
319
& self ,
308
320
rtxn : & RoTxn ,
@@ -318,6 +330,12 @@ impl Env {
318
330
/// Creates a typed database that can already exist in this environment.
319
331
///
320
332
/// If the database was previously opened in this program run, types will be checked.
333
+ ///
334
+ /// ## Important Information
335
+ ///
336
+ /// LMDB have an important restriction on the unnamed database when named ones are opened,
337
+ /// the names of the named databases are stored as keys in the unnamed one and are immutable,
338
+ /// these keys can only be read and not written.
321
339
pub fn create_database < KC , DC > (
322
340
& self ,
323
341
wtxn : & mut RwTxn ,
@@ -337,6 +355,12 @@ impl Env {
337
355
/// Creates a typed database that can already exist in this environment.
338
356
///
339
357
/// If the database was previously opened as a typed one, an error will be returned.
358
+ ///
359
+ /// ## Important Information
360
+ ///
361
+ /// LMDB have an important restriction on the unnamed database when named ones are opened,
362
+ /// the names of the named databases are stored as keys in the unnamed one and are immutable,
363
+ /// these keys can only be read and not written.
340
364
pub fn create_poly_database (
341
365
& self ,
342
366
wtxn : & mut RwTxn ,
0 commit comments