DROP TABLE IF EXISTS users;
SET NAMES utf8mb4;
CREATE TABLE users (
id int PRIMARY KEY
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
ALTER TABLE users
ADD COLUMN 名前 text,
ADD FULLTEXT INDEX (名前);
INSERT INTO users VALUES (1, "やまだ");
INSERT INTO users VALUES (2, "たなか");
INSERT INTO users VALUES (3, "すずき");
SELECT * FROM users;
id	名前
1	やまだ
2	たなか
3	すずき
SELECT * FROM users
WHERE MATCH (名前) AGAINST ('+たなか' IN BOOLEAN MODE);
id	名前
2	たなか
SELECT mroonga_command("dump --dump_plugins no --dump_records no");
mroonga_command("dump --dump_plugins no --dump_records no")
table_create mroonga_operations TABLE_NO_KEY
column_create mroonga_operations record COLUMN_SCALAR UInt32
column_create mroonga_operations table COLUMN_SCALAR ShortText
column_create mroonga_operations type COLUMN_SCALAR ShortText

table_create users TABLE_PAT_KEY Int32
column_create users @540d@524d COLUMN_SCALAR LongText
column_create users id COLUMN_SCALAR Int32

table_create users#@540d@524d TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerMySQLUnicodeCI

column_create users#@540d@524d index COLUMN_INDEX|WITH_POSITION users @540d@524d
DROP TABLE users;
