A semantic search engine for source code https://bitshift.benkurtovic.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223
  1. CREATE DATABASE bitshift DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
  2. USE `bitshift`;
  3. CREATE TABLE codelets (
  4. `codelet_id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
  5. `codelet_name` VARCHAR(512) NOT NULL,
  6. `codelet_code_id` BIGINT UNSIGNED NOT NULL,
  7. `codelet_lang` SMALLINT UNSIGNED DEFAULT NULL,
  8. `codelet_origin` TINYINT UNSIGNED DEFAULT NULL,
  9. `codelet_url` VARCHAR(512) NOT NULL,
  10. `codelet_date_created` DATETIME DEFAULT NULL,
  11. `codelet_date_modified` DATETIME DEFAULT NULL,
  12. PRIMARY KEY (`codelet_id`)
  13. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  14. CREATE TABLE code (
  15. `code_id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE,
  16. `code_hash` BIGINT NOT NULL,
  17. `code_code` MEDIUMTEXT NOT NULL,
  18. PRIMARY KEY (`code_id`)
  19. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  20. -- separate tables: authors, symbols, caches, search indices