DBMS
RDBMSはWebフレームワークのデータストアとしての基礎機能にとどまらず、高度な機能が多数実装されています。
DBアクセスの基礎SQL
テーブル作成以降はアプリケーションフレームワークがカバーするケースも多くありますが、ロール作成、DB作成、アクセス許可はSQL操作が必要になります。
-
CREATE USER
PASSWORD句を指定して接続ユーザーを作成
- CREATE DATABASE
-
GRANT
- アクセス許可対象として
TABLE,DATABASE,SCHEMAなどを指定可能
- アクセス許可対象として
Photo by Giammarco Boscaro
Articles
sqldef is a CLI tool to maintain RDBMS schema along with corresponding configs.
It is a ridgepole …
While PL/pgSQL has LOOP flow for recursive operations, SQL or psql doesn’t have one.
If you want to …
DBMS has the unique index feature that protects against INSERTing duplicate records, and at a …
The standard database definition tool for Ruby on Rails is ActiveRecord’s Migration. It allows …