Skip to content

a chrome extension (v3) which injects a "Copy" button into phpMyAdmin to copy the table as a C# class to your clipboard.

Notifications You must be signed in to change notification settings

jason-snell/phpmyadmin-csharp-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

phpmyadmin-csharp-class

a simple chrome v3 extension which injects a "Copy" button into phpMyAdmin to copy the mysql table as a C# class to your clipboard.

load as an unpacked extension

the button

# manifest.json

// your domain here, or all
"matches": [
     "https://jsnell.dev/*"
]
# foreground.js

// add new types here, everything before the last index is converted to the last index.
const typeMap = [
    ["varchar", "text", "string"], // varchar, text convert to string
    ["timestamp", "date", "time", "DateTime"], // timestamp, date, time convert to DateTime
    ["currency", "decimal"],
    ["tinyint", "byte"],
    ["enum", "int"]
];

...

// output
let outputText = `public class ${tableName}\n{\n`;

About

a chrome extension (v3) which injects a "Copy" button into phpMyAdmin to copy the table as a C# class to your clipboard.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published