Join Sheeri Cabral for an in-depth discussion in this video Getting file information in the database, part of Understanding MariaDB for MySQL Users.
- View Offline
…One of the most interesting features of the Connect storage engine,…is the ability to query a virtual table that has information about files on disk.…For example, you can have a table that looks in a directory, and…be able to query file names and file sizes.…This type of table is called DIR, D-I-R, which stands for directory listing.…And it relies on flags to figure out which fields contain what information.…Here's a list of the information we can use to make our…table with their corresponding flags.…
The first flag, flag=0 is the windows disk drive like C or D.…Each filename has three different parts and that goes into three different flags.…The first one is the path, which is the directory the file lives in.…The file name itself is the second flag,…minus the extension, like .exe, .zip, .ibd.…The file type is the extension, or…flag 3, which includes the period at the beginning of the extension.…
So this field would have values like .ibd, .zip.…Flag 4 is the file attribute.…Which is a fancy way of saying permissions.…
- Why use dynamic columns?
- Creating, updating, and querying dynamic columns
- Installing the CONNECT storage engine
- Connecting to remote data
- Connecting to CSV, INI, and XML files
- Using PIVOT tables
- Accessing database metadata
- Working with the Cassandra storage engine