基盤となるデータベースの詳細にWebサービスを作成したいと思います。
<cffunction name="getDBSchema" output="false" returnType="query" access="remote">
<cfquery name="local.qryPlugin" cachedwithin="#CreateTimeSpan(1,0,0,0)#">
SELECT column_name, data_type, character_maximum_length, kcu.TABLE_SCHEMA,
kcu.table_name,ordinal_position, is_nullable
FROM information_schema.COLUMNS kcu
ORDER BY table_name, ordinal_position
</cfquery>
<cfreturn local.qryPlugin>
cachedwithinを1日に設定しても、dbを強く叩く可能性があるのではないかと心配しています。また、脆弱性を導入しているのではないかと心配しています。DBスキーマ情報自体は機密情報ではありません