packages/midd-session-mysql-store/src/index.js
function dbName(str) {
  if (!str) return str;
  str = str.replace(/[A-Z]/g, $0 => `_${$0.toLowerCase()}`);
  if (str[0] === '_') return str.slice(1);
  return str;
}
function dbName(str) {
  if (!str) return str;
  str = str.replace(/[A-Z]/g, $0 => `_${$0.toLowerCase()}`);
  if (str[0] === '_') return str.slice(1);
  return str;
}
function dbName ( str ) { if ( ! str ) return str ; str = str . replace ( / [A-Z] / g , $0 => ` ${ $0 . toLowerCase ( ) } ` ) ; if ( str [ 0 ] === '_' ) return str . slice ( 1 ) ; return str ; }
convert the string to a underline-delimited string which will used in database
convert the string to a underline - delimited string which will used in database