# Library idrow or id as function

**URL:** https://community.mp3tag.de/t/library-idrow-or-id-as-function/66370
**Category:** General Discussion
**Created:** [October 28, 2024, 1:52pm UTC](https://community.mp3tag.de/t/library-idrow-or-id-as-function/66370 "2024-10-28T13:52:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kliclick](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/4da419/32.png) [@kliclick](https://community.mp3tag.de/u/kliclick)
#### Post date: [October 28, 2024, 1:52pm UTC](https://community.mp3tag.de/t/library-idrow-or-id-as-function/66370/1 "2024-10-28T13:52:52Z")

</div>

Hi, I've just looked at the "library" option and saw that it is an SQLite database. I think that maybe it could be nice to get a key value from library available as a function (that we can use to tag a file), for example the "rowid" or "id" fields in the "mtfile" table (not sure that this is the "right" table).  
This could be very usefull to import tags from a text file just using this key value as identifier and not have to worry about the sequential order, or a more "absolute" link than `%_filename_ext%` or `%_path%` (if you changed or renamed the files between operations).  
Great program (very happy with, monthly contributor).

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [October 28, 2024, 2:31pm UTC](https://community.mp3tag.de/t/library-idrow-or-id-as-function/66370/2 "2024-10-28T14:31:48Z")

</div>

> [@kliclick](#):
>
> This could be very usefull to import tags from a text file just using this key value as identifier

This would also mean that the function to import from text files has to be changed as right now it either uses the sequence of records or the filename but no database id which would not be there if you have switched off the library function.
